{expr3[0]['expr3' + '3']}
\ No newline at end of file diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/expression-complex/compatibility/directive-if/template-expression/ast.json b/packages/@lwc/template-compiler/src/__tests__/fixtures/expression-complex/compatibility/directive-if/template-expression/ast.json index c5ea53b27b..02313ea19c 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/expression-complex/compatibility/directive-if/template-expression/ast.json +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/expression-complex/compatibility/directive-if/template-expression/ast.json @@ -112,39 +112,41 @@ "raw": "{foo}", "value": { "type": "Identifier", - "start": 80, - "end": 83, - "loc": { - "start": { - "line": 4, - "column": 13 - }, - "end": { - "line": 4, - "column": 16 - } - }, - "range": [ - 80, - 83 - ], + "start": 1, + "end": 4, "name": "foo", "location": { - "startLine": 4, - "startColumn": 13, - "endLine": 5, - "endColumn": 13, - "start": 79, - "end": 97 + "startLine": 3, + "startColumn": 42, + "endLine": 6, + "endColumn": 9, + "start": 66, + "end": 111 } }, "location": { - "startLine": 4, - "startColumn": 13, - "endLine": 5, - "endColumn": 13, - "start": 79, - "end": 97 + "startLine": 3, + "startColumn": 42, + "endLine": 6, + "endColumn": 9, + "start": 66, + "end": 111 + } + }, + { + "type": "Text", + "raw": " ", + "value": { + "type": "Literal", + "value": " " + }, + "location": { + "startLine": 3, + "startColumn": 42, + "endLine": 6, + "endColumn": 9, + "start": 66, + "end": 111 } }, { @@ -152,38 +154,24 @@ "raw": "{bar}", "value": { "type": "Identifier", - "start": 98, - "end": 101, - "loc": { - "start": { - "line": 5, - "column": 13 - }, - "end": { - "line": 5, - "column": 16 - } - }, - "range": [ - 98, - 101 - ], + "start": 7, + "end": 10, "name": "bar", "location": { - "startLine": 5, - "startColumn": 13, + "startLine": 3, + "startColumn": 42, "endLine": 6, "endColumn": 9, - "start": 97, + "start": 66, "end": 111 } }, "location": { - "startLine": 5, - "startColumn": 13, + "startLine": 3, + "startColumn": 42, "endLine": 6, "endColumn": 9, - "start": 97, + "start": 66, "end": 111 } } diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/expression-complex/compatibility/directive-if/template-expression/expected.js b/packages/@lwc/template-compiler/src/__tests__/fixtures/expression-complex/compatibility/directive-if/template-expression/expected.js index 7486a6129e..3d0477e12e 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/expression-complex/compatibility/directive-if/template-expression/expected.js +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/expression-complex/compatibility/directive-if/template-expression/expected.js @@ -9,7 +9,9 @@ function tmpl($api, $cmp, $slotset, $ctx) { return [ api_element("section", stc0, [ $cmp.state.isTrue - ? api_text(api_dynamic_text($cmp.foo) + api_dynamic_text($cmp.bar)) + ? api_text( + api_dynamic_text($cmp.foo) + " " + api_dynamic_text($cmp.bar) + ) : null, ]), ]; diff --git a/packages/@lwc/template-compiler/src/__tests__/fixtures/expression-complex/invalid/arrow-function-async/actual.html b/packages/@lwc/template-compiler/src/__tests__/fixtures/expression-complex/invalid/arrow-function-async/actual.html index 7b9d86cc8b..98c17f9430 100644 --- a/packages/@lwc/template-compiler/src/__tests__/fixtures/expression-complex/invalid/arrow-function-async/actual.html +++ b/packages/@lwc/template-compiler/src/__tests__/fixtures/expression-complex/invalid/arrow-function-async/actual.html @@ -1,5 +1,5 @@