@@ -671,7 +671,7 @@ protected Object isAutoload(RubyModule module, Object nameObject, Object maybeIn
671
671
@ Cached BooleanCastWithDefaultNode booleanCastWithDefaultNode ,
672
672
@ Cached NameToJavaStringNode nameToJavaStringNode ) {
673
673
final var name = nameToJavaStringNode .execute (this , nameObject );
674
- final var inherit = booleanCastWithDefaultNode .execute (maybeInherit , true );
674
+ final var inherit = booleanCastWithDefaultNode .execute (this , maybeInherit , true );
675
675
final ConstantLookupResult constant = ModuleOperations .lookupConstantWithInherit (
676
676
getContext (),
677
677
module ,
@@ -895,7 +895,7 @@ public abstract static class ClassVariablesNode extends CoreMethodNode {
895
895
@ Specialization
896
896
protected RubyArray getClassVariables (RubyModule module , Object maybeInherit ,
897
897
@ Cached BooleanCastWithDefaultNode booleanCastWithDefaultNode ) {
898
- final boolean inherit = booleanCastWithDefaultNode .execute (maybeInherit , true );
898
+ final boolean inherit = booleanCastWithDefaultNode .execute (this , maybeInherit , true );
899
899
final Set <Object > variables = new LinkedHashSet <>();
900
900
901
901
ModuleOperations .classVariableLookup (module , inherit , m -> {
@@ -919,7 +919,7 @@ public abstract static class ConstantsNode extends CoreMethodNode {
919
919
@ Specialization
920
920
protected RubyArray constants (RubyModule module , Object maybeInherit ,
921
921
@ Cached BooleanCastWithDefaultNode booleanCastWithDefaultNode ) {
922
- final boolean inherit = booleanCastWithDefaultNode .execute (maybeInherit , true );
922
+ final boolean inherit = booleanCastWithDefaultNode .execute (this , maybeInherit , true );
923
923
final List <RubySymbol > constantsArray = new ArrayList <>();
924
924
925
925
final Iterable <Entry <String , ConstantEntry >> constants ;
@@ -951,7 +951,7 @@ protected boolean isConstDefined(
951
951
@ Cached BooleanCastWithDefaultNode booleanCastWithDefaultNode ,
952
952
@ Cached NameToJavaStringNode nameToJavaStringNode ) {
953
953
final var fullName = nameToJavaStringNode .execute (this , fullNameObject );
954
- final boolean inherit = booleanCastWithDefaultNode .execute (inheritObject , true );
954
+ final boolean inherit = booleanCastWithDefaultNode .execute (this , inheritObject , true );
955
955
final ConstantLookupResult constant = ModuleOperations
956
956
.lookupScopedConstant (getContext (), module , fullName , inherit , this , checkName );
957
957
return constant .isFound ();
@@ -1144,7 +1144,7 @@ protected Object constSourceLocation(RubyModule module, Object nameObject, Objec
1144
1144
@ Cached ConstSourceLocationNode constSourceLocationNode ,
1145
1145
@ Cached BooleanCastWithDefaultNode booleanCastWithDefaultNode ,
1146
1146
@ Cached ToStringOrSymbolNode toStringOrSymbolNode ) {
1147
- final boolean inherit = booleanCastWithDefaultNode .execute (maybeInherit , true );
1147
+ final boolean inherit = booleanCastWithDefaultNode .execute (this , maybeInherit , true );
1148
1148
final var name = toStringOrSymbolNode .execute (nameObject );
1149
1149
return constSourceLocationNode .execute (this , module , name , inherit );
1150
1150
}
@@ -1605,7 +1605,7 @@ protected boolean isMethodDefined(RubyModule module, Object nameObject, Object m
1605
1605
@ Cached BooleanCastWithDefaultNode booleanCastWithDefaultNode ,
1606
1606
@ Cached NameToJavaStringNode nameToJavaStringNode ) {
1607
1607
final var name = nameToJavaStringNode .execute (this , nameObject );
1608
- final var inherit = booleanCastWithDefaultNode .execute (maybeInherit , true );
1608
+ final var inherit = booleanCastWithDefaultNode .execute (this , maybeInherit , true );
1609
1609
final InternalMethod method ;
1610
1610
if (inherit ) {
1611
1611
method = ModuleOperations .lookupMethodUncached (module , name , null );
@@ -1854,7 +1854,7 @@ public AbstractInstanceMethodsNode(Visibility visibility) {
1854
1854
@ TruffleBoundary
1855
1855
protected RubyArray getInstanceMethods (RubyModule module , Object maybeIncludeAncestors ,
1856
1856
@ Cached BooleanCastWithDefaultNode booleanCastWithDefaultNode ) {
1857
- final boolean includeAncestors = booleanCastWithDefaultNode .execute (maybeIncludeAncestors , true );
1857
+ final boolean includeAncestors = booleanCastWithDefaultNode .execute (this , maybeIncludeAncestors , true );
1858
1858
Object [] objects = module .fields
1859
1859
.filterMethods (getLanguage (), includeAncestors , MethodFilter .by (visibility ))
1860
1860
.toArray ();
@@ -1909,7 +1909,7 @@ protected boolean isMethodDefined(RubyModule module, Object nameObject, Object m
1909
1909
@ Cached BooleanCastWithDefaultNode booleanCastWithDefaultNode ,
1910
1910
@ Cached NameToJavaStringNode nameToJavaStringNode ,
1911
1911
@ Cached InlinedConditionProfile inheritProfile ) {
1912
- final var inherit = booleanCastWithDefaultNode .execute (maybeInheritObject , true );
1912
+ final var inherit = booleanCastWithDefaultNode .execute (this , maybeInheritObject , true );
1913
1913
final var name = nameToJavaStringNode .execute (this , nameObject );
1914
1914
final InternalMethod method ;
1915
1915
if (inheritProfile .profile (this , inherit )) {
@@ -1953,7 +1953,7 @@ public abstract static class InstanceMethodsNode extends CoreMethodNode {
1953
1953
@ Specialization
1954
1954
protected RubyArray instanceMethods (RubyModule module , Object maybeIncludeAncestors ,
1955
1955
@ Cached BooleanCastWithDefaultNode booleanCastWithDefaultNode ) {
1956
- final boolean includeAncestors = booleanCastWithDefaultNode .execute (maybeIncludeAncestors , true );
1956
+ final boolean includeAncestors = booleanCastWithDefaultNode .execute (this , maybeIncludeAncestors , true );
1957
1957
Object [] objects = module .fields
1958
1958
.filterMethods (getLanguage (), includeAncestors , MethodFilter .PUBLIC_PROTECTED )
1959
1959
.toArray ();
0 commit comments