You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python/src/com/oracle/graal/python/compiler/bytecode_dsl/RootNodeCompiler.java
+31-37Lines changed: 31 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -788,20 +788,12 @@ boolean beginSourceSection(SourceRange sourceRange, Builder b) {
788
788
SourceRangeoldSourceRange = this.currentLocation;
789
789
this.currentLocation = sourceRange;
790
790
791
-
if (ctx.source.hasCharacters()) {
792
-
intstartOffset = getStartOffset(sourceRange);
793
-
intendOffset = getEndOffset(sourceRange);
794
-
intlength = endOffset - startOffset;
795
-
if (length == 0) {
796
-
startOffset = 0;
797
-
}
798
-
b.beginSourceSection(startOffset, length);
791
+
beginSourceSectionInner(b, sourceRange);
799
792
800
-
if (oldSourceRange == null || oldSourceRange.startLine != sourceRange.startLine) {
801
-
b.beginTag(StatementTag.class);
802
-
b.beginBlock();
803
-
returntrue;
804
-
}
793
+
if (oldSourceRange == null || oldSourceRange.startLine != sourceRange.startLine) {
794
+
b.beginTag(StatementTag.class);
795
+
b.beginBlock();
796
+
returntrue;
805
797
}
806
798
returnfalse;
807
799
}
@@ -820,39 +812,41 @@ void beginRootSourceSection(SSTNode node, Builder b) {
0 commit comments