@@ -20,7 +20,7 @@ const valid_after_heredoc_73 = valid_after_heredoc.concat([
20
20
] ) ;
21
21
22
22
module . exports = {
23
- T_CONSTANT_ENCAPSED_STRING : function ( ) {
23
+ T_CONSTANT_ENCAPSED_STRING ( ) {
24
24
let ch ;
25
25
while ( this . offset < this . size ) {
26
26
ch = this . input ( ) ;
@@ -33,7 +33,7 @@ module.exports = {
33
33
return this . tok . T_CONSTANT_ENCAPSED_STRING ;
34
34
} ,
35
35
// check if matching a HEREDOC state
36
- is_HEREDOC : function ( ) {
36
+ is_HEREDOC ( ) {
37
37
const revert = this . offset ;
38
38
if (
39
39
this . _input [ this . offset - 1 ] === "<" &&
@@ -97,7 +97,7 @@ module.exports = {
97
97
this . offset = revert ;
98
98
return false ;
99
99
} ,
100
- ST_DOUBLE_QUOTES : function ( ) {
100
+ ST_DOUBLE_QUOTES ( ) {
101
101
let ch ;
102
102
while ( this . offset < this . size ) {
103
103
ch = this . input ( ) ;
@@ -141,7 +141,7 @@ module.exports = {
141
141
} ,
142
142
143
143
// check if its a DOC end sequence
144
- isDOC_MATCH : function ( offset , consumeLeadingSpaces ) {
144
+ isDOC_MATCH ( offset , consumeLeadingSpaces ) {
145
145
// @fixme : check if out of text limits
146
146
147
147
// consumeLeadingSpaces is false happen DOC prematch END HEREDOC stage.
@@ -222,7 +222,7 @@ module.exports = {
222
222
* Prematch the end of HEREDOC/NOWDOC end tag to preset the
223
223
* context of this.heredoc_label
224
224
*/
225
- prematch_ENDOFDOC : function ( ) {
225
+ prematch_ENDOFDOC ( ) {
226
226
// reset heredoc
227
227
this . heredoc_label . indentation_uses_spaces = false ;
228
228
this . heredoc_label . indentation = 0 ;
@@ -249,7 +249,7 @@ module.exports = {
249
249
}
250
250
} ,
251
251
252
- matchST_NOWDOC : function ( ) {
252
+ matchST_NOWDOC ( ) {
253
253
// edge case : empty now doc
254
254
if ( this . isDOC_MATCH ( this . offset , true ) ) {
255
255
// @fixme : never reached (may be caused by quotes)
@@ -275,7 +275,7 @@ module.exports = {
275
275
return this . tok . T_ENCAPSED_AND_WHITESPACE ;
276
276
} ,
277
277
278
- matchST_HEREDOC : function ( ) {
278
+ matchST_HEREDOC ( ) {
279
279
// edge case : empty here doc
280
280
let ch = this . input ( ) ;
281
281
if ( this . isDOC_MATCH ( this . offset , true ) ) {
@@ -347,7 +347,7 @@ module.exports = {
347
347
return this . tok . T_ENCAPSED_AND_WHITESPACE ;
348
348
} ,
349
349
350
- consume_VARIABLE : function ( ) {
350
+ consume_VARIABLE ( ) {
351
351
this . consume_LABEL ( ) ;
352
352
const ch = this . input ( ) ;
353
353
if ( ch == "[" ) {
@@ -371,7 +371,7 @@ module.exports = {
371
371
return this . tok . T_VARIABLE ;
372
372
} ,
373
373
// HANDLES BACKQUOTES
374
- matchST_BACKQUOTE : function ( ) {
374
+ matchST_BACKQUOTE ( ) {
375
375
let ch = this . input ( ) ;
376
376
if ( ch === "$" ) {
377
377
ch = this . input ( ) ;
@@ -446,7 +446,7 @@ module.exports = {
446
446
return this . tok . T_ENCAPSED_AND_WHITESPACE ;
447
447
} ,
448
448
449
- matchST_DOUBLE_QUOTES : function ( ) {
449
+ matchST_DOUBLE_QUOTES ( ) {
450
450
let ch = this . input ( ) ;
451
451
if ( ch === "$" ) {
452
452
ch = this . input ( ) ;
0 commit comments