File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
src/main/java/org/truffleruby/language Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -89,20 +89,17 @@ public void unsafeSetSourceSection(SourceIndexLength sourceIndexLength) {
89
89
assert !hasSource ();
90
90
91
91
if (sourceIndexLength != null ) {
92
- setSourceCharIndex (sourceIndexLength .getCharIndex ());
93
- setSourceLength (sourceIndexLength .getLength ());
92
+ unsafeSetSourceSection (sourceIndexLength .getCharIndex (), sourceIndexLength .getLength ());
94
93
}
95
94
}
96
95
97
96
public void unsafeSetSourceSection (SourceSection sourceSection ) {
98
97
assert !hasSource ();
99
98
100
99
if (sourceSection .isAvailable ()) {
101
- setSourceCharIndex (sourceSection .getCharIndex ());
102
- setSourceLength (sourceSection .getCharLength ());
100
+ unsafeSetSourceSection (sourceSection .getCharIndex (), sourceSection .getCharLength ());
103
101
} else {
104
- setSourceCharIndex (0 );
105
- setSourceLength (SourceIndexLength .UNAVAILABLE );
102
+ unsafeSetSourceSection (0 , SourceIndexLength .UNAVAILABLE );
106
103
}
107
104
}
108
105
@@ -115,8 +112,7 @@ public void unsafeSetSourceSection(int charIndex, int sourceLength) {
115
112
116
113
public RubyNode copySourceSection (RubyNode from ) {
117
114
if (from .hasSource ()) {
118
- setSourceCharIndex (from .getSourceCharIndex ());
119
- setSourceLength (from .getSourceLength ());
115
+ unsafeSetSourceSection (from .getSourceCharIndex (), from .getSourceLength ());
120
116
}
121
117
return this ;
122
118
}
You can’t perform that action at this time.
0 commit comments