@@ -44,6 +44,7 @@ class IntegerLiteral extends NumericLiteral instanceof IntegerLiteralImpl {
44
44
/** Gets the numerical value of this integer literal. */
45
45
final int getValue ( ) { result = super .getValue ( ) }
46
46
47
+ overlay [ global]
47
48
final override ConstantValue:: ConstantIntegerValue getConstantValue ( ) {
48
49
result = NumericLiteral .super .getConstantValue ( )
49
50
}
@@ -60,6 +61,7 @@ class IntegerLiteral extends NumericLiteral instanceof IntegerLiteralImpl {
60
61
* ```
61
62
*/
62
63
class FloatLiteral extends NumericLiteral instanceof FloatLiteralImpl {
64
+ overlay [ global]
63
65
final override ConstantValue:: ConstantFloatValue getConstantValue ( ) {
64
66
result = NumericLiteral .super .getConstantValue ( )
65
67
}
@@ -75,6 +77,7 @@ class FloatLiteral extends NumericLiteral instanceof FloatLiteralImpl {
75
77
* ```
76
78
*/
77
79
class RationalLiteral extends NumericLiteral instanceof RationalLiteralImpl {
80
+ overlay [ global]
78
81
final override ConstantValue:: ConstantRationalValue getConstantValue ( ) {
79
82
result = NumericLiteral .super .getConstantValue ( )
80
83
}
@@ -90,6 +93,7 @@ class RationalLiteral extends NumericLiteral instanceof RationalLiteralImpl {
90
93
* ```
91
94
*/
92
95
class ComplexLiteral extends NumericLiteral instanceof ComplexLiteralImpl {
96
+ overlay [ global]
93
97
final override ConstantValue:: ConstantComplexValue getConstantValue ( ) {
94
98
result = NumericLiteral .super .getConstantValue ( )
95
99
}
@@ -99,6 +103,7 @@ class ComplexLiteral extends NumericLiteral instanceof ComplexLiteralImpl {
99
103
100
104
/** A `nil` literal. */
101
105
class NilLiteral extends Literal instanceof NilLiteralImpl {
106
+ overlay [ global]
102
107
final override ConstantValue:: ConstantNilValue getConstantValue ( ) { result = TNil ( ) }
103
108
104
109
final override string getAPrimaryQlClass ( ) { result = "NilLiteral" }
@@ -125,6 +130,7 @@ class BooleanLiteral extends Literal instanceof BooleanLiteralImpl {
125
130
/** Gets the value of this Boolean literal. */
126
131
boolean getValue ( ) { result = super .getValue ( ) }
127
132
133
+ overlay [ global]
128
134
final override ConstantValue:: ConstantBooleanValue getConstantValue ( ) {
129
135
result = Literal .super .getConstantValue ( )
130
136
}
@@ -136,6 +142,7 @@ class BooleanLiteral extends Literal instanceof BooleanLiteralImpl {
136
142
class EncodingLiteral extends Literal instanceof EncodingLiteralImpl {
137
143
final override string getAPrimaryQlClass ( ) { result = "EncodingLiteral" }
138
144
145
+ overlay [ global]
139
146
final override ConstantValue:: ConstantStringValue getConstantValue ( ) {
140
147
result = Literal .super .getConstantValue ( )
141
148
}
@@ -147,6 +154,7 @@ class EncodingLiteral extends Literal instanceof EncodingLiteralImpl {
147
154
class LineLiteral extends Literal instanceof LineLiteralImpl {
148
155
final override string getAPrimaryQlClass ( ) { result = "LineLiteral" }
149
156
157
+ overlay [ global]
150
158
final override ConstantValue:: ConstantIntegerValue getConstantValue ( ) {
151
159
result = Literal .super .getConstantValue ( )
152
160
}
@@ -158,6 +166,7 @@ class LineLiteral extends Literal instanceof LineLiteralImpl {
158
166
class FileLiteral extends Literal instanceof FileLiteralImpl {
159
167
final override string getAPrimaryQlClass ( ) { result = "FileLiteral" }
160
168
169
+ overlay [ global]
161
170
final override ConstantValue:: ConstantStringValue getConstantValue ( ) {
162
171
result = Literal .super .getConstantValue ( )
163
172
}
@@ -169,6 +178,7 @@ class FileLiteral extends Literal instanceof FileLiteralImpl {
169
178
*/
170
179
class StringComponent extends AstNode instanceof StringComponentImpl {
171
180
/** Gets the constant value of this string component, if any. */
181
+ overlay [ global]
172
182
ConstantValue:: ConstantStringValue getConstantValue ( ) { result = TString ( super .getValue ( ) ) }
173
183
}
174
184
@@ -213,6 +223,7 @@ class StringInterpolationComponent extends StringComponent, StmtSequence instanc
213
223
214
224
final override Stmt getStmt ( int n ) { toGenerated ( result ) = g .getChild ( n ) }
215
225
226
+ overlay [ global]
216
227
final override ConstantValue:: ConstantStringValue getConstantValue ( ) {
217
228
result = StmtSequence .super .getConstantValue ( )
218
229
}
@@ -260,6 +271,7 @@ class RegExpInterpolationComponent extends RegExpComponent, StmtSequence instanc
260
271
261
272
final override Stmt getStmt ( int n ) { toGenerated ( result ) = g .getChild ( n ) }
262
273
274
+ overlay [ global]
263
275
final override ConstantValue:: ConstantStringValue getConstantValue ( ) {
264
276
result = StmtSequence .super .getConstantValue ( )
265
277
}
@@ -408,6 +420,7 @@ class SymbolLiteral extends StringlikeLiteral instanceof SymbolLiteralImpl {
408
420
not this instanceof MethodName and result = "SymbolLiteral"
409
421
}
410
422
423
+ overlay [ global]
411
424
final override ConstantValue:: ConstantSymbolValue getConstantValue ( ) {
412
425
result = StringlikeLiteral .super .getConstantValue ( )
413
426
}
@@ -440,6 +453,7 @@ class SubshellLiteral extends StringlikeLiteral instanceof SubshellLiteralImpl {
440
453
class CharacterLiteral extends Literal instanceof CharacterLiteralImpl {
441
454
final override string getAPrimaryQlClass ( ) { result = "CharacterLiteral" }
442
455
456
+ overlay [ global]
443
457
final override ConstantValue:: ConstantStringValue getConstantValue ( ) {
444
458
result = Literal .super .getConstantValue ( )
445
459
}
0 commit comments