Skip to content

Commit 9047eca

Browse files
committed
remove dead code (old method scan method)
1 parent 4dcc871 commit 9047eca

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/parser/expr.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -405,19 +405,6 @@ module.exports = {
405405
}
406406
} else if (this.is('SCALAR')) {
407407
expr = this.read_scalar();
408-
// handle dereferencable
409-
while(this.token !== this.EOF) {
410-
if (this.token === this.tok.T_OBJECT_OPERATOR) {
411-
expr = this.recursive_variable_chain_scan(expr, false);
412-
} else if (this.token === this.tok.T_CURLY_OPEN || this.token === '[') {
413-
expr = this.read_dereferencable(expr);
414-
} else if (this.token === '(') {
415-
// https://github.com/php/php-src/blob/master/Zend/zend_language_parser.y#L1118
416-
expr = this.node('call')(expr, this.read_function_argument_list());
417-
} else {
418-
return expr;
419-
}
420-
}
421408
} else {
422409
this.error('EXPR');
423410
this.next();

0 commit comments

Comments
 (0)