@@ -201,7 +201,7 @@ public RubyNode visitCallNode(Nodes.CallNode node) {
201
201
var arguments = node .arguments .arguments ;
202
202
203
203
if (arguments == null ) {
204
- arguments = new Nodes .Node []{} ;
204
+ arguments = Nodes .Node . EMPTY_ARRAY ;
205
205
}
206
206
207
207
var translatedArguments = new RubyNode [arguments .length ];
@@ -784,7 +784,7 @@ public RubyNode visitSplatNode(Nodes.SplatNode node) {
784
784
}
785
785
786
786
public RubyNode visitStatementsNode (Nodes .StatementsNode node ) {
787
- var location = new SourceIndexLength (node .startOffset , node .length () );
787
+ var location = new SourceIndexLength (node .startOffset , node .length );
788
788
789
789
var body = node .body ;
790
790
var translated = new RubyNode [body .length ];
@@ -933,11 +933,11 @@ protected RubyContextSourceNode createCallNode(RubyNode receiver, String method,
933
933
}
934
934
935
935
private String toString (Nodes .Location location ) {
936
- return new String (sourceBytes , location .startOffset , location .length () , StandardCharsets .US_ASCII );
936
+ return new String (sourceBytes , location .startOffset , location .length , StandardCharsets .US_ASCII );
937
937
}
938
938
939
939
private String toString (Nodes .Node node ) {
940
- return new String (sourceBytes , node .startOffset , node .length () , StandardCharsets .US_ASCII );
940
+ return new String (sourceBytes , node .startOffset , node .length , StandardCharsets .US_ASCII );
941
941
}
942
942
943
943
private String toString (Nodes .SymbolNode node ) {
0 commit comments