Skip to content

Commit 3dc4bb5

Browse files
committed
Adopt introducing an offset parsing option
1 parent 5ab0931 commit 3dc4bb5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,8 @@ public static ParseResult parseToYARPAST(RubySource rubySource, String sourcePat
401401
scopes = new byte[0][][];
402402
}
403403

404-
byte[] parsingOptions = ParsingOptions.serialize(filepath, line, encoding, frozenStringLiteral, commandline,
405-
version,
406-
scopes);
404+
byte[] parsingOptions = ParsingOptions.serialize(filepath, line, 0, encoding, frozenStringLiteral, commandline,
405+
version, scopes);
407406
byte[] serializedBytes = Parser.parseAndSerialize(sourceBytes, parsingOptions);
408407

409408
return YARPLoader.load(serializedBytes, sourceBytes, rubySource);

0 commit comments

Comments
 (0)