Skip to content

Commit c862867

Browse files
committed
Format code
1 parent 8c0a021 commit c862867

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/main/java/org/truffleruby/language/loader/ByteBasedCharSequence.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
import org.truffleruby.core.encoding.RubyEncoding;
1515
import org.truffleruby.core.string.TStringWithEncoding;
1616

17-
/** YARP gives us byte offsets but Truffle wants a CharSequence, this tries to integrate both as much as possible.
18-
* Using a java.lang.String instead would mean computing char offsets, which is prohibitively expensive. */
17+
/** YARP gives us byte offsets but Truffle wants a CharSequence, this tries to integrate both as much as possible. Using
18+
* a java.lang.String instead would mean computing char offsets, which is prohibitively expensive. */
1919
public final class ByteBasedCharSequence implements CharSequence {
2020

2121
private final byte[] bytes;

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,11 +873,13 @@ protected RubyContextSourceNode createCallNode(RubyNode receiver, String method,
873873
}
874874

875875
private String toString(Nodes.Location location) {
876-
return TStringUtils.toJavaStringOrThrow(TruffleString.fromByteArrayUncached(sourceBytes, location.startOffset, location.length, sourceEncoding.tencoding, false), sourceEncoding);
876+
return TStringUtils.toJavaStringOrThrow(TruffleString.fromByteArrayUncached(sourceBytes, location.startOffset,
877+
location.length, sourceEncoding.tencoding, false), sourceEncoding);
877878
}
878879

879880
private String toString(Nodes.Node node) {
880-
return TStringUtils.toJavaStringOrThrow(TruffleString.fromByteArrayUncached(sourceBytes, node.startOffset, node.length, sourceEncoding.tencoding, false), sourceEncoding);
881+
return TStringUtils.toJavaStringOrThrow(TruffleString.fromByteArrayUncached(sourceBytes, node.startOffset,
882+
node.length, sourceEncoding.tencoding, false), sourceEncoding);
881883
}
882884

883885
private SourceSection getSourceSection(Nodes.Node yarpNode) {

0 commit comments

Comments
 (0)