Skip to content

Commit 666ea84

Browse files
chore: add comments
1 parent cbbddf5 commit 666ea84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/@lwc/template-compiler/src/parser/expression.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ function validateExpression(
3636
config: NormalizedConfig
3737
): asserts node is Expression {
3838
const isValidNode = t.isIdentifier(node) || t.isMemberExpression(node);
39+
// INVALID_XYZ_COMPLEX provides additional context to the user if CTE is enabled.
40+
// The author may not have delimited the CTE with quotes, resulting in it being parsed
41+
// as a legacy expression.
3942
invariant(
4043
isValidNode,
4144
config.experimentalComplexExpressions

0 commit comments

Comments
 (0)