Skip to content

Commit 7f54115

Browse files
committed
Break up some long lines
1 parent d2d33bc commit 7f54115

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

src/main/java/org/truffleruby/language/RubyInlineParsingRequestNode.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,13 @@ public Object execute(VirtualFrame frame) {
6464

6565
// We use the current frame as the lexical scope to parse, but then we may run with a new frame in the future
6666

67-
final RubyRootNode rootNode = translator.parse(new RubySource(source), ParserContext.INLINE, null, currentFrame, false, null);
67+
final RubyRootNode rootNode = translator.parse(
68+
new RubySource(source),
69+
ParserContext.INLINE,
70+
null,
71+
currentFrame,
72+
false,
73+
null);
6874

6975
final RootCallTarget callTarget = Truffle.getRuntime().createCallTarget(rootNode);
7076

src/main/java/org/truffleruby/language/RubyParsingRequestNode.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@ public Object execute(VirtualFrame frame) {
6666

6767
final TranslatorDriver translator = new TranslatorDriver(context);
6868

69-
final RubyRootNode rootNode = translator.parse(new RubySource(source), ParserContext.TOP_LEVEL, argumentNames, null, true, null);
69+
final RubyRootNode rootNode = translator.parse(
70+
new RubySource(source),
71+
ParserContext.TOP_LEVEL,
72+
argumentNames,
73+
null,
74+
true,
75+
null);
7076

7177
final RootCallTarget callTarget = Truffle.getRuntime().createCallTarget(rootNode);
7278

@@ -80,15 +86,14 @@ public Object execute(VirtualFrame frame) {
8086
sharedMethodInfo.getName(), context.getCoreLibrary().getObjectClass(), Visibility.PUBLIC, callTarget);
8187
}
8288

83-
Object[] arguments = RubyArguments.pack(
89+
final Object value = callNode.call(RubyArguments.pack(
8490
null,
8591
null,
8692
method,
8793
null,
8894
mainObject,
8995
null,
90-
frame.getArguments());
91-
final Object value = callNode.call(arguments);
96+
frame.getArguments()));
9297

9398
// The return value will be leaked to Java, so share it if the Context API is used.
9499
// We share conditionally on EMBEDDED to avoid sharing return values used in RubyLauncher.

0 commit comments

Comments
 (0)