diff --git a/lib/prop_parser.js b/lib/prop_parser.js index 76903e9..320b23b 100644 --- a/lib/prop_parser.js +++ b/lib/prop_parser.js @@ -30,7 +30,7 @@ * * @return {{name: string, keywords: Object.}} */ -exports.parse = function ( prop ) +exports.parseKeywords = function ( prop ) { var name = prop, keywords = [], diff --git a/lib/util.js b/lib/util.js index 4ea2904..f0a6397 100644 --- a/lib/util.js +++ b/lib/util.js @@ -22,7 +22,7 @@ * @package core */ -var propParse = require( './prop_parser' ).parse; +var propParseKeywords = require( './prop_parser' ).parseKeywords; /** @@ -156,7 +156,7 @@ exports.propParse = function( data, options ) callback_method = options.method || fvoid, callback_getter = options.getter || fvoid, callback_setter = options.setter || fvoid, - keyword_parser = options.keywordParser || propParse, + keyword_parser = options.keywordParser || propParseKeywords, hasOwn = Object.prototype.hasOwnProperty, diff --git a/test/test-prop_parser-parse.js b/test/test-prop_parser-parse-keywords.js similarity index 95% rename from test/test-prop_parser-parse.js rename to test/test-prop_parser-parse-keywords.js index 4ba07bb..3595bf8 100644 --- a/test/test-prop_parser-parse.js +++ b/test/test-prop_parser-parse-keywords.js @@ -24,7 +24,7 @@ var common = require( './common' ), assert = require( 'assert' ), - parse = common.require( 'prop_parser' ).parse; + parse = common.require( 'prop_parser' ).parseKeywords; var data = parse( 'final static abstract foo' ),