@@ -381,7 +381,7 @@ private module Cached {
381381 predicate forceCachingInSameStage ( ) { any ( ) }
382382
383383 cached
384- predicate forceCachingBackref ( ) { exists ( any ( ConstRef const ) .getConst ( _) ) }
384+ predicate forceCachingBackref ( ) { exists ( any ( ConstRef const ) .getConstant ( _) ) }
385385}
386386
387387private import Cached
@@ -1135,7 +1135,7 @@ class ArrayLiteralNode extends LocalSourceNode, ExprNode {
11351135/**
11361136 * An access to a constant, such as `C`, `C::D`, or a class or module declaration.
11371137 *
1138- * See `DataFlow::getConst ` for usage example.
1138+ * See `DataFlow::getConstant ` for usage example.
11391139 */
11401140class ConstRef extends LocalSourceNode {
11411141 private ConstantAccess access ;
@@ -1215,7 +1215,7 @@ class ConstRef extends LocalSourceNode {
12151215 * Gets the scope expression, or the immediately enclosing `Namespace` (skipping over singleton classes).
12161216 *
12171217 * Top-levels are not included, since this is only needed for nested constant lookup, and unqualified constants
1218- * at the top-level are handled by `DataFlow::getConst `, never `ConstRef.getConst `.
1218+ * at the top-level are handled by `DataFlow::getConstant `, never `ConstRef.getConstant `.
12191219 */
12201220 private TConstLookupScope getLookupScope ( ) {
12211221 result = MkQualifiedLookup ( access .getScopeExpr ( ) )
@@ -1248,7 +1248,7 @@ class ConstRef extends LocalSourceNode {
12481248 /**
12491249 * Gets a constant reference that may resolve to a member of this node.
12501250 *
1251- * For example `DataFlow::getConst ("A").getConst ("B")` finds the following:
1251+ * For example `DataFlow::getConstant ("A").getConstant ("B")` finds the following:
12521252 * ```rb
12531253 * A::B # simple reference
12541254 *
@@ -1270,7 +1270,7 @@ class ConstRef extends LocalSourceNode {
12701270 * ```
12711271 */
12721272 pragma [ inline]
1273- ConstRef getConst ( string name ) {
1273+ ConstRef getConstant ( string name ) {
12741274 exists ( TConstLookupScope scope |
12751275 pragma [ only_bind_into ] ( scope ) = pragma [ only_bind_out ] ( this ) .getATargetScope ( ) and
12761276 result .accesses ( pragma [ only_bind_out ] ( scope ) , name )
@@ -1281,7 +1281,7 @@ class ConstRef extends LocalSourceNode {
12811281 * Gets a module that transitively subclasses, includes, or prepends the module referred to by
12821282 * this constant.
12831283 *
1284- * For example, `DataFlow::getConst ("A").getADescendentModule()` finds `B`, `C`, and `E`:
1284+ * For example, `DataFlow::getConstant ("A").getADescendentModule()` finds `B`, `C`, and `E`:
12851285 * ```rb
12861286 * class B < A
12871287 * end
@@ -1300,9 +1300,9 @@ class ConstRef extends LocalSourceNode {
13001300/**
13011301 * Gets a constant reference that may resolve to the top-level constant `name`.
13021302 *
1303- * To get nested constants, call `getConst ()` one or more times on the result.
1303+ * To get nested constants, call `getConstant ()` one or more times on the result.
13041304 *
1305- * For example `DataFlow::getConst ("A").getConst ("B")` finds the following:
1305+ * For example `DataFlow::getConstant ("A").getConstant ("B")` finds the following:
13061306 * ```rb
13071307 * A::B # simple reference
13081308 *
@@ -1324,7 +1324,7 @@ class ConstRef extends LocalSourceNode {
13241324 * ```
13251325 */
13261326pragma [ nomagic]
1327- ConstRef getConst ( string name ) {
1327+ ConstRef getConstant ( string name ) {
13281328 result .getName ( ) = name and
13291329 result .isPossiblyGlobal ( )
13301330}
0 commit comments