Skip to content

Commit 3d4456f

Browse files
committed
Fix bad merge
1 parent 0311659 commit 3d4456f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/compiler/src/ml_parser/ast.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export type Node =
2626
| ExpansionCase
2727
| Text
2828
| Block
29-
| BlockParameter;
29+
| BlockParameter
30+
| LetDeclaration;
3031

3132
export abstract class NodeWithI18n implements BaseNode {
3233
constructor(

packages/compiler/src/ml_parser/parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ class _TreeBuilder {
670670
const span = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);
671671
// Create a separate `startSpan` because `span` will be modified when there is an `end` span.
672672
const startSpan = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);
673-
const block = new html.Block(token.parts[0], parameters, [], span, startSpan);
673+
const block = new html.Block(token.parts[0], parameters, [], span, token.sourceSpan, startSpan);
674674
this._pushContainer(block, false);
675675
}
676676

@@ -700,7 +700,7 @@ class _TreeBuilder {
700700
const span = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);
701701
// Create a separate `startSpan` because `span` will be modified when there is an `end` span.
702702
const startSpan = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);
703-
const block = new html.Block(token.parts[0], parameters, [], span, startSpan);
703+
const block = new html.Block(token.parts[0], parameters, [], span, token.sourceSpan, startSpan);
704704
this._pushContainer(block, false);
705705

706706
// Incomplete blocks don't have children so we close them immediately and report an error.

0 commit comments

Comments
 (0)