Now implicitly adding abstract keyword for interface method declarations
parent
bdc32906e7
commit
ba28f0a753
|
@ -299,6 +299,9 @@ exports.propParse = function( data, options )
|
|||
|
||||
if ( options.assumeAbstract || keywords[ 'abstract' ] )
|
||||
{
|
||||
// may not be set if assumeAbstract is given
|
||||
keywords[ 'abstract' ] = true;
|
||||
|
||||
if ( !( value instanceof Array ) )
|
||||
{
|
||||
throw TypeError(
|
||||
|
|
|
@ -31,12 +31,13 @@ var common = require( './common' ),
|
|||
;
|
||||
|
||||
|
||||
// test with and without abstract keyword
|
||||
var Type = Interface.extend( {
|
||||
'abstract foo': [],
|
||||
}),
|
||||
|
||||
Type2 = Interface.extend( {
|
||||
'abstract foo2': [],
|
||||
foo2: [],
|
||||
}),
|
||||
|
||||
Foo = {},
|
||||
|
|
Loading…
Reference in New Issue