File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/main/java/org/truffleruby/language/methods Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,10 @@ public int getArityNumber(ProcType type) {
130
130
return type == ProcType .PROC ? procArityNumber : arityNumber ;
131
131
}
132
132
133
+ public int getMethodArityNumber () {
134
+ return arityNumber ;
135
+ }
136
+
133
137
public String [] getKeywordArguments () {
134
138
return keywordArguments ;
135
139
}
Original file line number Diff line number Diff line change 14
14
import org .truffleruby .RubyContext ;
15
15
import org .truffleruby .core .klass .RubyClass ;
16
16
import org .truffleruby .core .module .RubyModule ;
17
- import org .truffleruby .core .proc .ProcType ;
18
17
import org .truffleruby .core .proc .RubyProc ;
19
18
import org .truffleruby .language .LexicalScope ;
20
19
import org .truffleruby .language .Visibility ;
@@ -184,7 +183,7 @@ public boolean isBuiltIn() {
184
183
}
185
184
186
185
public int getArityNumber () {
187
- return sharedMethodInfo .getArity ().getArityNumber ( ProcType . LAMBDA );
186
+ return sharedMethodInfo .getArity ().getMethodArityNumber ( );
188
187
}
189
188
190
189
public RootCallTarget getCallTarget () {
You can’t perform that action at this time.
0 commit comments