Skip to content

Commit

Permalink
fix boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
arvyy committed May 12, 2024
1 parent 96e9b03 commit 8005808
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.github.arvyy.islisp.parser;

import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.source.SourceSection;

/**
Expand All @@ -22,6 +23,7 @@ public ParsingException(SourceSection sourceSection, String reason) {
this.reason = reason;
}

@CompilerDirectives.TruffleBoundary
private static String makeMessage(SourceSection sourceSection, String reason) {
if (sourceSection == null) {
return String.format("Failed to parse (source information unavailable). %s", reason);
Expand Down

0 comments on commit 8005808

Please sign in to comment.