@@ -44,6 +44,7 @@ class IntegerLiteral extends NumericLiteral instanceof IntegerLiteralImpl {
4444 /** Gets the numerical value of this integer literal. */
4545 final int getValue ( ) { result = super .getValue ( ) }
4646
47+ overlay [ global]
4748 final override ConstantValue:: ConstantIntegerValue getConstantValue ( ) {
4849 result = NumericLiteral .super .getConstantValue ( )
4950 }
@@ -60,6 +61,7 @@ class IntegerLiteral extends NumericLiteral instanceof IntegerLiteralImpl {
6061 * ```
6162 */
6263class FloatLiteral extends NumericLiteral instanceof FloatLiteralImpl {
64+ overlay [ global]
6365 final override ConstantValue:: ConstantFloatValue getConstantValue ( ) {
6466 result = NumericLiteral .super .getConstantValue ( )
6567 }
@@ -75,6 +77,7 @@ class FloatLiteral extends NumericLiteral instanceof FloatLiteralImpl {
7577 * ```
7678 */
7779class RationalLiteral extends NumericLiteral instanceof RationalLiteralImpl {
80+ overlay [ global]
7881 final override ConstantValue:: ConstantRationalValue getConstantValue ( ) {
7982 result = NumericLiteral .super .getConstantValue ( )
8083 }
@@ -90,6 +93,7 @@ class RationalLiteral extends NumericLiteral instanceof RationalLiteralImpl {
9093 * ```
9194 */
9295class ComplexLiteral extends NumericLiteral instanceof ComplexLiteralImpl {
96+ overlay [ global]
9397 final override ConstantValue:: ConstantComplexValue getConstantValue ( ) {
9498 result = NumericLiteral .super .getConstantValue ( )
9599 }
@@ -99,6 +103,7 @@ class ComplexLiteral extends NumericLiteral instanceof ComplexLiteralImpl {
99103
100104/** A `nil` literal. */
101105class NilLiteral extends Literal instanceof NilLiteralImpl {
106+ overlay [ global]
102107 final override ConstantValue:: ConstantNilValue getConstantValue ( ) { result = TNil ( ) }
103108
104109 final override string getAPrimaryQlClass ( ) { result = "NilLiteral" }
@@ -125,6 +130,7 @@ class BooleanLiteral extends Literal instanceof BooleanLiteralImpl {
125130 /** Gets the value of this Boolean literal. */
126131 boolean getValue ( ) { result = super .getValue ( ) }
127132
133+ overlay [ global]
128134 final override ConstantValue:: ConstantBooleanValue getConstantValue ( ) {
129135 result = Literal .super .getConstantValue ( )
130136 }
@@ -136,6 +142,7 @@ class BooleanLiteral extends Literal instanceof BooleanLiteralImpl {
136142class EncodingLiteral extends Literal instanceof EncodingLiteralImpl {
137143 final override string getAPrimaryQlClass ( ) { result = "EncodingLiteral" }
138144
145+ overlay [ global]
139146 final override ConstantValue:: ConstantStringValue getConstantValue ( ) {
140147 result = Literal .super .getConstantValue ( )
141148 }
@@ -147,6 +154,7 @@ class EncodingLiteral extends Literal instanceof EncodingLiteralImpl {
147154class LineLiteral extends Literal instanceof LineLiteralImpl {
148155 final override string getAPrimaryQlClass ( ) { result = "LineLiteral" }
149156
157+ overlay [ global]
150158 final override ConstantValue:: ConstantIntegerValue getConstantValue ( ) {
151159 result = Literal .super .getConstantValue ( )
152160 }
@@ -158,6 +166,7 @@ class LineLiteral extends Literal instanceof LineLiteralImpl {
158166class FileLiteral extends Literal instanceof FileLiteralImpl {
159167 final override string getAPrimaryQlClass ( ) { result = "FileLiteral" }
160168
169+ overlay [ global]
161170 final override ConstantValue:: ConstantStringValue getConstantValue ( ) {
162171 result = Literal .super .getConstantValue ( )
163172 }
@@ -169,6 +178,7 @@ class FileLiteral extends Literal instanceof FileLiteralImpl {
169178 */
170179class StringComponent extends AstNode instanceof StringComponentImpl {
171180 /** Gets the constant value of this string component, if any. */
181+ overlay [ global]
172182 ConstantValue:: ConstantStringValue getConstantValue ( ) { result = TString ( super .getValue ( ) ) }
173183}
174184
@@ -213,6 +223,7 @@ class StringInterpolationComponent extends StringComponent, StmtSequence instanc
213223
214224 final override Stmt getStmt ( int n ) { toGenerated ( result ) = g .getChild ( n ) }
215225
226+ overlay [ global]
216227 final override ConstantValue:: ConstantStringValue getConstantValue ( ) {
217228 result = StmtSequence .super .getConstantValue ( )
218229 }
@@ -260,6 +271,7 @@ class RegExpInterpolationComponent extends RegExpComponent, StmtSequence instanc
260271
261272 final override Stmt getStmt ( int n ) { toGenerated ( result ) = g .getChild ( n ) }
262273
274+ overlay [ global]
263275 final override ConstantValue:: ConstantStringValue getConstantValue ( ) {
264276 result = StmtSequence .super .getConstantValue ( )
265277 }
@@ -408,6 +420,7 @@ class SymbolLiteral extends StringlikeLiteral instanceof SymbolLiteralImpl {
408420 not this instanceof MethodName and result = "SymbolLiteral"
409421 }
410422
423+ overlay [ global]
411424 final override ConstantValue:: ConstantSymbolValue getConstantValue ( ) {
412425 result = StringlikeLiteral .super .getConstantValue ( )
413426 }
@@ -440,6 +453,7 @@ class SubshellLiteral extends StringlikeLiteral instanceof SubshellLiteralImpl {
440453class CharacterLiteral extends Literal instanceof CharacterLiteralImpl {
441454 final override string getAPrimaryQlClass ( ) { result = "CharacterLiteral" }
442455
456+ overlay [ global]
443457 final override ConstantValue:: ConstantStringValue getConstantValue ( ) {
444458 result = Literal .super .getConstantValue ( )
445459 }
0 commit comments