We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef70ddd commit 6863c60Copy full SHA for 6863c60
1 file changed
src/slang-nodes/SlangNode.ts
@@ -134,7 +134,7 @@ export class SlangNode {
134
135
if (start - leadingOffset === loc.start) {
136
loc.leadingOffset = leadingOffset;
137
- loc.start += leadingOffset;
+ loc.start = start;
138
break;
139
}
140
@@ -147,7 +147,7 @@ export class SlangNode {
147
148
if (end + trailingOffset === loc.end) {
149
loc.trailingOffset = trailingOffset;
150
- loc.end -= trailingOffset;
+ loc.end = end;
151
152
153
0 commit comments