File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,19 +51,19 @@ module.exports = {
51
51
* function_declaration ::= T_FUNCTION '&'? T_STRING '(' parameter_list ')'
52
52
* </ebnf>
53
53
*/
54
- , read_function_declaration : function ( annonymous ) {
54
+ , read_function_declaration : function ( closure ) {
55
55
var result = this . node ( 'function' ) ;
56
56
this . expect ( this . tok . T_FUNCTION ) ;
57
57
var isRef = this . next ( ) . is_reference ( ) ;
58
58
var name = false , use = [ ] , returnType = false ;
59
- if ( ! annonymous ) {
59
+ if ( ! closure ) {
60
60
name = this . expect ( this . tok . T_STRING ) . text ( ) ;
61
61
this . next ( ) ;
62
62
}
63
63
this . expect ( '(' ) . next ( ) ;
64
64
var params = this . read_parameter_list ( ) ;
65
65
this . expect ( ')' ) . next ( ) ;
66
- if ( this . token === this . tok . T_USE ) {
66
+ if ( closure && this . token === this . tok . T_USE ) {
67
67
use = this . next ( ) . expect ( '(' ) . next ( ) . read_list ( this . read_lexical_var , ',' ) ;
68
68
this . expect ( ')' ) . next ( ) ;
69
69
}
You can’t perform that action at this time.
0 commit comments