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