Skip to content

Commit 3df5692

Browse files
committed
Adopt changing Source constructor signature and adding startLine parameter
1 parent d352b73 commit 3df5692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/truffleruby/parser/YARPTranslatorDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ public static Nodes.Source createYARPSource(byte[] sourceBytes, RubySource rubyS
516516
lineOffsets[line - 1] = source.getLineStartOffset(line);
517517
}
518518

519-
return new Nodes.Source(sourceBytes, lineOffsets);
519+
return new Nodes.Source(sourceBytes, 1, lineOffsets);
520520
}
521521

522522
private TranslatorEnvironment environmentForFrame(RubyContext context, MaterializedFrame frame, int blockDepth) {

0 commit comments

Comments
 (0)