Skip to content

Commit

Permalink
fix some missing token ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Jul 10, 2023
1 parent 3e7dd86 commit 1065837
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dparse/parser.d
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ class Parser
{
node.nonVoidInitializer = allocator.make!NonVoidInitializer;
node.nonVoidInitializer.assignExpression = assignExpression;
node.nonVoidInitializer.tokens = assignExpression.tokens;
}
}
node.tokens = tokens[startIndex .. index];
Expand Down Expand Up @@ -621,6 +622,7 @@ class Parser
brLoop: while (currentIs(tok!"["))
{
AsmBrExp br = allocator.make!AsmBrExp(); // huehuehuehue
node.tokens = tokens[startIndex .. index];
br.asmBrExp = node;
br.line = current().line;
br.column = current().column;
Expand Down Expand Up @@ -8800,6 +8802,7 @@ protected: final:
advance();
n.left = node;
mixin (parseNodeQ!(`n.right`, ExpressionPartType.stringof));
n.tokens = tokens[startIndex .. index];
node = n;
}
node.tokens = tokens[startIndex .. index];
Expand Down

0 comments on commit 1065837

Please sign in to comment.