File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
ruby/ql/lib/codeql/ruby/ast Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -172,22 +172,22 @@ module ConstantValue {
172
172
class ConstantNilValue extends ConstantValue , TNil { }
173
173
174
174
/** Gets the integer constant `x`. */
175
- ConstantValue getInt ( int x ) { result .getInt ( ) = x }
175
+ ConstantValue fromInt ( int x ) { result .getInt ( ) = x }
176
176
177
177
/** Gets the float constant `x`. */
178
- ConstantValue getFloat ( float x ) { result .getFloat ( ) = x }
178
+ ConstantValue fromFloat ( float x ) { result .getFloat ( ) = x }
179
179
180
180
/** Gets the string constant `x`. */
181
- ConstantValue getString ( string x ) { result .getString ( ) = x }
181
+ ConstantValue fromString ( string x ) { result .getString ( ) = x }
182
182
183
183
/** Gets the symbol constant `x`. */
184
- ConstantValue getSymbol ( string x ) { result .getSymbol ( ) = x }
184
+ ConstantValue fromSymbol ( string x ) { result .getSymbol ( ) = x }
185
185
186
186
/** Gets the regexp constant `x`. */
187
- ConstantValue getRegExp ( string x ) { result .getRegExp ( ) = x }
187
+ ConstantValue fromRegExp ( string x ) { result .getRegExp ( ) = x }
188
188
189
189
/** Gets the string, symbol, or regexp constant `x`. */
190
- ConstantValue getStringlikeValue ( string x ) { result .getStringlikeValue ( ) = x }
190
+ ConstantValue fromStringlikeValue ( string x ) { result .getStringlikeValue ( ) = x }
191
191
}
192
192
193
193
/** An access to a constant. */
You can’t perform that action at this time.
0 commit comments