Skip to content

Commit bd2a065

Browse files
committed
Ruby: rename ConstantValue::getX -> fromX
1 parent 2619f3f commit bd2a065

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ruby/ql/lib/codeql/ruby/ast/Constant.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,22 +172,22 @@ module ConstantValue {
172172
class ConstantNilValue extends ConstantValue, TNil { }
173173

174174
/** Gets the integer constant `x`. */
175-
ConstantValue getInt(int x) { result.getInt() = x }
175+
ConstantValue fromInt(int x) { result.getInt() = x }
176176

177177
/** Gets the float constant `x`. */
178-
ConstantValue getFloat(float x) { result.getFloat() = x }
178+
ConstantValue fromFloat(float x) { result.getFloat() = x }
179179

180180
/** Gets the string constant `x`. */
181-
ConstantValue getString(string x) { result.getString() = x }
181+
ConstantValue fromString(string x) { result.getString() = x }
182182

183183
/** Gets the symbol constant `x`. */
184-
ConstantValue getSymbol(string x) { result.getSymbol() = x }
184+
ConstantValue fromSymbol(string x) { result.getSymbol() = x }
185185

186186
/** Gets the regexp constant `x`. */
187-
ConstantValue getRegExp(string x) { result.getRegExp() = x }
187+
ConstantValue fromRegExp(string x) { result.getRegExp() = x }
188188

189189
/** Gets the string, symbol, or regexp constant `x`. */
190-
ConstantValue getStringlikeValue(string x) { result.getStringlikeValue() = x }
190+
ConstantValue fromStringlikeValue(string x) { result.getStringlikeValue() = x }
191191
}
192192

193193
/** An access to a constant. */

0 commit comments

Comments
 (0)