@@ -178,14 +178,14 @@ PARAM
178178
179179Operator
180180 : ((OperatorCharacter | (' +' | ' -'
181- {checkLA(' -' )} ?)+ (OperatorCharacter | ' /'
182- {checkLA(' *' )} ?) | ' /'
183- {checkLA(' *' )} ?)+ | // special handling for the single-character operators + and -
181+ {this. checkLA(' -' )} ?)+ (OperatorCharacter | ' /'
182+ {this. checkLA(' *' )} ?) | ' /'
183+ {this. checkLA(' *' )} ?)+ | // special handling for the single-character operators + and -
184184 [+-])
185185 // TODO somehow rewrite this part without using Actions
186186
187187 {
188- HandleLessLessGreaterGreater();
188+ this. HandleLessLessGreaterGreater();
189189 }
190190 ;
191191/* This rule handles operators which end with + or -, and sets the token type to Operator. It is comprised of four
@@ -202,9 +202,9 @@ Operator
202202
203203OperatorEndingWithPlusMinus
204204 : (OperatorCharacterNotAllowPlusMinusAtEnd | ' -'
205- {checkLA(' -' )} ? | ' /'
206- {checkLA(' *' )} ?)* OperatorCharacterAllowPlusMinusAtEnd Operator? (' +' | ' -'
207- {checkLA(' -' )} ?)+ -> type (Operator)
205+ {this. checkLA(' -' )} ? | ' /'
206+ {this. checkLA(' *' )} ?)* OperatorCharacterAllowPlusMinusAtEnd Operator? (' +' | ' -'
207+ {this. checkLA(' -' )} ?)+ -> type (Operator)
208208 ;
209209 // Each of the following fragment rules omits the +, -, and / characters, which must always be handled in a special way
210210
@@ -2200,11 +2200,11 @@ fragment IdentifierStartChar
22002200 [\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]
22012201 | // these are the letters above 0xFF which only need a single UTF-16 code unit
22022202 [\u0100-\uD7FF\uE000-\uFFFF]
2203- {charIsLetter()} ?
2203+ {this. charIsLetter()} ?
22042204 | // letters which require multiple UTF-16 code units
22052205 [\uD800-\uDBFF] [\uDC00-\uDFFF]
22062206 {
2207- CheckIfUtf32Letter()
2207+ this. CheckIfUtf32Letter()
22082208 } ?
22092209
22102210 ;
@@ -2315,7 +2315,7 @@ UnterminatedUnicodeEscapeStringConstant
23152315
23162316BeginDollarStringConstant
23172317 : ' $' Tag? ' $'
2318- {pushTag();} -> pushMode (DollarQuotedStringMode)
2318+ {this. pushTag();} -> pushMode (DollarQuotedStringMode)
23192319 ;
23202320/* "The tag, if any, of a dollar-quoted string follows the same rules as an
23212321 * unquoted identifier, except that it cannot contain a dollar sign."
@@ -2366,7 +2366,7 @@ Integral
23662366
23672367NumericFail
23682368 : Digits ' ..'
2369- {HandleNumericFail();}
2369+ {this. HandleNumericFail();}
23702370 ;
23712371
23722372Numeric
@@ -2424,7 +2424,7 @@ UnterminatedBlockComment
24242424 // Optional assertion to make sure this rule is working as intended
24252425
24262426 {
2427- UnterminatedBlockCommentDebugAssert();
2427+ this. UnterminatedBlockCommentDebugAssert();
24282428 }
24292429 ;
24302430 //
@@ -2538,7 +2538,6 @@ DollarText
25382538
25392539EndDollarStringConstant
25402540 : ('$' Tag? '$')
2541- {isTag()}?
2542- {popTag();} -> popMode
2541+ {this. isTag()}?
2542+ {this. popTag();} -> popMode
25432543 ;
2544-
0 commit comments