We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2d23ed commit b3ea5e4Copy full SHA for b3ea5e4
1 file changed
src/slang-nodes/SlangNode.ts
@@ -129,7 +129,7 @@ export abstract class SlangNode {
129
if (childNode === undefined) continue;
130
const { leadingOffset, start } = childNode.loc;
131
132
- if (leadingOffset > 0 && start - leadingOffset === loc.start) {
+ if (start - leadingOffset === loc.start) {
133
loc.leadingOffset = leadingOffset;
134
loc.start = start;
135
break;
@@ -142,7 +142,7 @@ export abstract class SlangNode {
142
143
const { trailingOffset, end } = childNode.loc;
144
145
- if (trailingOffset > 0 && end + trailingOffset === loc.end) {
+ if (end + trailingOffset === loc.end) {
146
loc.trailingOffset = trailingOffset;
147
loc.end = end;
148
0 commit comments