1
0
Fork 0

Now implicitly adding abstract keyword for interface method declarations

closure/master
Mike Gerwitz 2011-11-28 15:10:26 -05:00
parent bdc32906e7
commit ba28f0a753
2 changed files with 6 additions and 2 deletions

View File

@ -297,8 +297,11 @@ exports.propParse = function( data, options )
name = parse_data.name || prop;
keywords = parse_data.keywords || {};
if ( options.assumeAbstract || keywords['abstract'] )
if ( options.assumeAbstract || keywords[ 'abstract' ] )
{
// may not be set if assumeAbstract is given
keywords[ 'abstract' ] = true;
if ( !( value instanceof Array ) )
{
throw TypeError(

View File

@ -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 = {},