From 0f61762e1e8ea16e8ffdc8c93bd85cae001e36ac Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Sat, 15 Jan 2022 09:52:47 +0900 Subject: [PATCH] Add shorthand property to AST Node --- src/ast.ts | 2 + src/parser/converts/attr.ts | 191 +++++++++--------- .../ast/blog/write-less-code01-output.json | 2 + .../parser/ast/class-directive01-output.json | 2 + .../04-comments/02-output.json | 1 + .../02-bind-property/01-output.json | 1 + .../02-bind-property/02-output.json | 3 + .../02-bind-property/03-output.json | 2 + .../02-bind-property/04-output.json | 2 + .../02-bind-property/05-output.json | 1 + .../02-bind-property/06-output.json | 1 + .../02-bind-property/07-output.json | 1 + .../02-bind-property/08-output.json | 1 + .../02-bind-property/09-output.json | 1 + .../02-bind-property/10-output.json | 13 ++ .../02-bind-property/11-output.json | 2 + .../03-bind-group/01-output.json | 1 + .../03-bind-group/02-output.json | 7 + .../04-bind-this/01-output.json | 1 + .../04-bind-this/02-output.json | 1 + .../05-class-name/01-output.json | 2 + .../05-class-name/02-output.json | 5 + .../02-style-props/01-output.json | 1 + .../02-style-props/02-output.json | 1 + .../03-bind-property/01-output.json | 1 + .../03-bind-property/02-output.json | 1 + .../04-bind-this/01-output.json | 1 + .../04-bind-this/02-output.json | 1 + .../16-svelte-window/02-output.json | 1 + .../16-svelte-window/04-output.json | 1 + .../ast/hello/hello-world05-output.json | 1 + .../ast/illegal/dot-in-bind01-output.json | 1 + .../ast/illegal/dot-in-bind02-output.json | 1 + .../parser/ast/store-bindings-output.json | 1 + .../parser/ast/trailing-comment01-output.json | 1 + .../adding-parameters-to-actions-output.json | 1 + ...ding-parameters-to-transitions-output.json | 1 + .../parser/ast/tutorial/bind-this-output.json | 1 + .../ast/tutorial/checkbox-inputs-output.json | 1 + .../ast/tutorial/class-shorthand-output.json | 2 + .../parser/ast/tutorial/classes-output.json | 2 + .../tutorial/component-bindings01-output.json | 1 + .../contenteditable-bindings-output.json | 1 + .../ast/tutorial/context-api02-output.json | 1 + .../custom-css-transitions01-output.json | 1 + .../custom-css-transitions02-output.json | 1 + .../custom-js-transitions-output.json | 1 + .../parser/ast/tutorial/debug01-output.json | 2 + .../parser/ast/tutorial/debug02-output.json | 2 + .../ast/tutorial/dimensions-output.json | 4 + .../tutorial/each-block-bindings-output.json | 3 + .../each-block-bindings-scope-output.json | 3 + .../ast/tutorial/group-inputs-output.json | 4 + .../tutorial/group-inputs-scope-output.json | 1 + .../ast/tutorial/in-and-out-output.json | 1 + .../tutorial/local-transitions-output.json | 2 + .../ast/tutorial/media-elements-output.json | 3 + .../ast/tutorial/module-exports02-output.json | 3 + .../multiple-select-bindings-output.json | 4 + .../ast/tutorial/numeric-inputs02-output.json | 4 + .../ast/tutorial/optional-slots03-output.json | 1 + .../ast/tutorial/select-bindings-output.json | 2 + .../ast/tutorial/sharing-code02-output.json | 3 + .../ast/tutorial/slot-props01-output.json | 1 + .../tutorial/slot-props01-scope-output.json | 1 + .../ast/tutorial/slot-props03-output.json | 1 + .../tutorial/slot-props03-scope-output.json | 1 + .../parser/ast/tutorial/spring-output.json | 2 + .../ast/tutorial/svelte-body-output.json | 1 + .../ast/tutorial/svelte-component-output.json | 1 + .../ast/tutorial/svelte-options02-output.json | 1 + .../ast/tutorial/svelte-options03-output.json | 1 + .../ast/tutorial/svelte-self03-output.json | 1 + .../svelte-window-bindings-output.json | 1 + .../ast/tutorial/text-inputs01-output.json | 1 + .../ast/tutorial/textarea-inputs-output.json | 1 + .../tutorial/transition-events-output.json | 1 + .../ast/tutorial/transition-output.json | 1 + .../parser/ast/tutorial/update-output.json | 1 + 79 files changed, 233 insertions(+), 96 deletions(-) diff --git a/src/ast.ts b/src/ast.ts index 8726c387..f02cc91e 100644 --- a/src/ast.ts +++ b/src/ast.ts @@ -559,10 +559,12 @@ export interface SvelteAnimationDirective extends BaseSvelteDirective { } export interface SvelteBindingDirective extends BaseSvelteDirective { kind: "Binding" + shorthand: boolean expression: null | ESTree.Expression } export interface SvelteClassDirective extends BaseSvelteDirective { kind: "Class" + shorthand: boolean expression: null | ESTree.Expression } export interface SvelteEventHandlerDirective extends BaseSvelteDirective { diff --git a/src/parser/converts/attr.ts b/src/parser/converts/attr.ts index 99a185eb..8b5d2623 100644 --- a/src/parser/converts/attr.ts +++ b/src/parser/converts/attr.ts @@ -228,31 +228,35 @@ function convertBindingDirective( type: "SvelteDirective", kind: "Binding", key: null as any, + shorthand: false, expression: null, parent, ...ctx.getConvertLocation(node), } - processDirective(node, directive, ctx, (expression) => { - return ctx.scriptLet.addExpression( - expression, - directive, - null, - (es, { getInnermostScope }) => { - directive.expression = es - const scope = getInnermostScope(es) - const reference = scope.references.find( - (ref) => ref.identifier === es, - ) - if (reference) { - // The bind directive does read and write. - reference.isWrite = () => true - reference.isWriteOnly = () => false - reference.isReadWrite = () => true - reference.isReadOnly = () => false - reference.isRead = () => true - } - }, - ) + processDirective(node, directive, ctx, { + processExpression(expression, shorthand) { + directive.shorthand = shorthand + return ctx.scriptLet.addExpression( + expression, + directive, + null, + (es, { getInnermostScope }) => { + directive.expression = es + const scope = getInnermostScope(es) + const reference = scope.references.find( + (ref) => ref.identifier === es, + ) + if (reference) { + // The bind directive does read and write. + reference.isWrite = () => true + reference.isWriteOnly = () => false + reference.isReadWrite = () => true + reference.isReadOnly = () => false + reference.isRead = () => true + } + }, + ) + }, }) return directive } @@ -274,18 +278,15 @@ function convertEventHandlerDirective( const isCustomEvent = parent.parent.type === "SvelteElement" && (parent.parent.kind === "component" || parent.parent.kind === "special") - processDirective( - node, - directive, - ctx, - buildProcessExpressionForExpression( + processDirective(node, directive, ctx, { + processExpression: buildProcessExpressionForExpression( directive, ctx, isCustomEvent ? "(e:CustomEvent)=>void" : `(e:'${node.name}' extends keyof HTMLElementEventMap?HTMLElementEventMap['${node.name}']:CustomEvent)=>void`, ), - ) + }) return directive } @@ -299,16 +300,17 @@ function convertClassDirective( type: "SvelteDirective", kind: "Class", key: null as any, + shorthand: false, expression: null, parent, ...ctx.getConvertLocation(node), } - processDirective( - node, - directive, - ctx, - buildProcessExpressionForExpression(directive, ctx, null), - ) + processDirective(node, directive, ctx, { + processExpression(expression, shorthand) { + directive.shorthand = shorthand + return ctx.scriptLet.addExpression(expression, directive) + }, + }) return directive } @@ -368,18 +370,17 @@ function convertOldStyleDirective( } processDirectiveKey(node, directive, ctx) if (processStyleDirectiveValue(node, ctx)) { - processDirectiveExpression(node, directive, ctx, (expression) => { - directive.value.push( - convertTemplateLiteralToLiteral(expression, directive, ctx), - ) - return [] + processDirectiveExpression(node, directive, ctx, { + processExpression(expression) { + directive.value.push( + convertTemplateLiteralToLiteral(expression, directive, ctx), + ) + return [] + }, }) } else { - processDirectiveExpression( - node, - directive, - ctx, - (expression, shorthand) => { + processDirectiveExpression(node, directive, ctx, { + processExpression(expression, shorthand) { ;(directive as any).shorthand = shorthand return ctx.scriptLet.addExpression( expression, @@ -400,7 +401,7 @@ function convertOldStyleDirective( }, ) }, - ) + }) } return directive @@ -463,13 +464,14 @@ function convertTransitionDirective( parent, ...ctx.getConvertLocation(node), } - processDirective( - node, - directive, - ctx, - buildProcessExpressionForExpression(directive, ctx, null), - (name) => ctx.scriptLet.addExpression(name, directive.key), - ) + processDirective(node, directive, ctx, { + processExpression: buildProcessExpressionForExpression( + directive, + ctx, + null, + ), + processName: (name) => ctx.scriptLet.addExpression(name, directive.key), + }) return directive } @@ -487,13 +489,14 @@ function convertAnimationDirective( parent, ...ctx.getConvertLocation(node), } - processDirective( - node, - directive, - ctx, - buildProcessExpressionForExpression(directive, ctx, null), - (name) => ctx.scriptLet.addExpression(name, directive.key), - ) + processDirective(node, directive, ctx, { + processExpression: buildProcessExpressionForExpression( + directive, + ctx, + null, + ), + processName: (name) => ctx.scriptLet.addExpression(name, directive.key), + }) return directive } @@ -511,13 +514,14 @@ function convertActionDirective( parent, ...ctx.getConvertLocation(node), } - processDirective( - node, - directive, - ctx, - buildProcessExpressionForExpression(directive, ctx, null), - (name) => ctx.scriptLet.addExpression(name, directive.key), - ) + processDirective(node, directive, ctx, { + processExpression: buildProcessExpressionForExpression( + directive, + ctx, + null, + ), + processName: (name) => ctx.scriptLet.addExpression(name, directive.key), + }) return directive } @@ -535,16 +539,13 @@ function convertLetDirective( parent, ...ctx.getConvertLocation(node), } - processDirective( - node, - directive, - ctx, - (pattern) => { + processDirective(node, directive, ctx, { + processExpression(pattern) { return ctx.letDirCollections .getCollection() .addPattern(pattern, directive, "any") }, - node.expression + processName: node.expression ? undefined : (name) => { // shorthand @@ -555,7 +556,7 @@ function convertLetDirective( }) return [] }, - ) + }) return directive } @@ -568,22 +569,18 @@ function processDirective< node: D & { expression: null | E }, directive: S, ctx: Context, - processExpression: ( - expression: E, - shorthand: boolean, - ) => ScriptLetCallback>[], - processName?: ( - expression: SvelteName, - ) => ScriptLetCallback[], + processors: { + processExpression: ( + expression: E, + shorthand: boolean, + ) => ScriptLetCallback>[] + processName?: ( + expression: SvelteName, + ) => ScriptLetCallback[] + }, ) { processDirectiveKey(node, directive, ctx) - processDirectiveExpression( - node, - directive, - ctx, - processExpression, - processName, - ) + processDirectiveExpression(node, directive, ctx, processors) } /** Common process for directive key */ @@ -657,13 +654,15 @@ function processDirectiveExpression< node: D & { expression: null | E }, directive: S, ctx: Context, - processExpression: ( - expression: E, - shorthand: boolean, - ) => ScriptLetCallback>[], - processName?: ( - expression: SvelteName, - ) => ScriptLetCallback[], + processors: { + processExpression: ( + expression: E, + shorthand: boolean, + ) => ScriptLetCallback>[] + processName?: ( + expression: SvelteName, + ) => ScriptLetCallback[] + }, ) { const key = directive.key const keyName = key.name as SvelteName @@ -679,15 +678,15 @@ function processDirectiveExpression< // e.g. bind:value="" getWithLoc(node.expression).end = keyName.range[1] } - processExpression(node.expression, shorthand).push((es) => { + processors.processExpression(node.expression, shorthand).push((es) => { if (directive.type === "SvelteDirective") { directive.expression = es } }) } if (!shorthand) { - if (processName) { - processName(keyName).push((es) => { + if (processors.processName) { + processors.processName(keyName).push((es) => { key.name = es }) } else { diff --git a/tests/fixtures/parser/ast/blog/write-less-code01-output.json b/tests/fixtures/parser/ast/blog/write-less-code01-output.json index 4ae42ea5..572b80f0 100644 --- a/tests/fixtures/parser/ast/blog/write-less-code01-output.json +++ b/tests/fixtures/parser/ast/blog/write-less-code01-output.json @@ -377,6 +377,7 @@ } } }, + "shorthand": false, "range": [ 65, 79 @@ -581,6 +582,7 @@ } } }, + "shorthand": false, "range": [ 102, 116 diff --git a/tests/fixtures/parser/ast/class-directive01-output.json b/tests/fixtures/parser/ast/class-directive01-output.json index 83da2751..46424e4e 100644 --- a/tests/fixtures/parser/ast/class-directive01-output.json +++ b/tests/fixtures/parser/ast/class-directive01-output.json @@ -321,6 +321,7 @@ } } }, + "shorthand": false, "range": [ 60, 75 @@ -485,6 +486,7 @@ } } }, + "shorthand": true, "range": [ 88, 97 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/04-comments/02-output.json b/tests/fixtures/parser/ast/docs/template-syntax/04-comments/02-output.json index 9cd182ba..4b6655d2 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/04-comments/02-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/04-comments/02-output.json @@ -118,6 +118,7 @@ } } }, + "shorthand": false, "range": [ 45, 62 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/01-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/01-output.json index 943ccc95..0387f81b 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/01-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/01-output.json @@ -82,6 +82,7 @@ } } }, + "shorthand": false, "range": [ 5, 29 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/02-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/02-output.json index 27d0b74c..6c536387 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/02-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/02-output.json @@ -82,6 +82,7 @@ } } }, + "shorthand": false, "range": [ 7, 24 @@ -230,6 +231,7 @@ } } }, + "shorthand": false, "range": [ 36, 53 @@ -450,6 +452,7 @@ } } }, + "shorthand": false, "range": [ 90, 108 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/03-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/03-output.json index 9b7273f0..6bb1918e 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/03-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/03-output.json @@ -118,6 +118,7 @@ } } }, + "shorthand": false, "range": [ 37, 55 @@ -266,6 +267,7 @@ } } }, + "shorthand": true, "range": [ 64, 74 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/04-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/04-output.json index 09ee1498..6eb4475b 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/04-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/04-output.json @@ -138,6 +138,7 @@ } } }, + "shorthand": false, "range": [ 21, 37 @@ -342,6 +343,7 @@ } } }, + "shorthand": false, "range": [ 59, 75 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/05-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/05-output.json index eefa5818..7deddfdd 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/05-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/05-output.json @@ -305,6 +305,7 @@ } } }, + "shorthand": true, "range": [ 86, 96 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/06-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/06-output.json index a85db69e..908a96f3 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/06-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/06-output.json @@ -82,6 +82,7 @@ } } }, + "shorthand": false, "range": [ 8, 29 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/07-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/07-output.json index 9d7e580b..c0cf9376 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/07-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/07-output.json @@ -119,6 +119,7 @@ } } }, + "shorthand": false, "range": [ 17, 38 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/08-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/08-output.json index 98aebab5..d00eec4f 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/08-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/08-output.json @@ -119,6 +119,7 @@ } } }, + "shorthand": false, "range": [ 17, 38 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/09-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/09-output.json index ae839970..027ebe41 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/09-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/09-output.json @@ -138,6 +138,7 @@ } } }, + "shorthand": false, "range": [ 28, 49 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/10-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/10-output.json index 9a05753d..7a226ba0 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/10-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/10-output.json @@ -156,6 +156,7 @@ } } }, + "shorthand": true, "range": [ 20, 33 @@ -228,6 +229,7 @@ } } }, + "shorthand": true, "range": [ 35, 48 @@ -300,6 +302,7 @@ } } }, + "shorthand": true, "range": [ 50, 61 @@ -372,6 +375,7 @@ } } }, + "shorthand": true, "range": [ 63, 76 @@ -444,6 +448,7 @@ } } }, + "shorthand": true, "range": [ 78, 90 @@ -516,6 +521,7 @@ } } }, + "shorthand": true, "range": [ 92, 102 @@ -588,6 +594,7 @@ } } }, + "shorthand": true, "range": [ 104, 120 @@ -660,6 +667,7 @@ } } }, + "shorthand": true, "range": [ 122, 139 @@ -732,6 +740,7 @@ } } }, + "shorthand": true, "range": [ 141, 152 @@ -804,6 +813,7 @@ } } }, + "shorthand": true, "range": [ 154, 165 @@ -876,6 +886,7 @@ } } }, + "shorthand": true, "range": [ 167, 177 @@ -948,6 +959,7 @@ } } }, + "shorthand": true, "range": [ 179, 194 @@ -1020,6 +1032,7 @@ } } }, + "shorthand": true, "range": [ 196, 212 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/11-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/11-output.json index 04704cb8..7466f430 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/11-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/02-bind-property/11-output.json @@ -82,6 +82,7 @@ } } }, + "shorthand": false, "range": [ 6, 30 @@ -154,6 +155,7 @@ } } }, + "shorthand": false, "range": [ 32, 58 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/03-bind-group/01-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/03-bind-group/01-output.json index 6c8f0f93..f99d8ebe 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/03-bind-group/01-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/03-bind-group/01-output.json @@ -82,6 +82,7 @@ } } }, + "shorthand": false, "range": [ 7, 28 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/03-bind-group/02-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/03-bind-group/02-output.json index 0eae37a2..87423107 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/03-bind-group/02-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/03-bind-group/02-output.json @@ -412,6 +412,7 @@ } } }, + "shorthand": false, "range": [ 138, 159 @@ -672,6 +673,7 @@ } } }, + "shorthand": false, "range": [ 195, 216 @@ -932,6 +934,7 @@ } } }, + "shorthand": false, "range": [ 258, 279 @@ -1228,6 +1231,7 @@ } } }, + "shorthand": false, "range": [ 372, 393 @@ -1488,6 +1492,7 @@ } } }, + "shorthand": false, "range": [ 431, 452 @@ -1748,6 +1753,7 @@ } } }, + "shorthand": false, "range": [ 491, 512 @@ -2008,6 +2014,7 @@ } } }, + "shorthand": false, "range": [ 552, 573 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/04-bind-this/01-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/04-bind-this/01-output.json index a61e17e1..31fdbaef 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/04-bind-this/01-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/04-bind-this/01-output.json @@ -82,6 +82,7 @@ } } }, + "shorthand": false, "range": [ 5, 25 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/04-bind-this/02-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/04-bind-this/02-output.json index 03987ed2..13842590 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/04-bind-this/02-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/04-bind-this/02-output.json @@ -638,6 +638,7 @@ } } }, + "shorthand": false, "range": [ 171, 196 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/05-class-name/01-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/05-class-name/01-output.json index 19671feb..cccf36ce 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/05-class-name/01-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/05-class-name/01-output.json @@ -82,6 +82,7 @@ } } }, + "shorthand": false, "range": [ 5, 23 @@ -230,6 +231,7 @@ } } }, + "shorthand": true, "range": [ 31, 41 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/05-class-name/02-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/05-class-name/02-output.json index f7d0d91d..1055b0b2 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/05-class-name/02-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/05-class-name/02-output.json @@ -358,6 +358,7 @@ } } }, + "shorthand": false, "range": [ 83, 104 @@ -577,6 +578,7 @@ } } }, + "shorthand": true, "range": [ 171, 183 @@ -796,6 +798,7 @@ } } }, + "shorthand": true, "range": [ 248, 260 @@ -887,6 +890,7 @@ } } }, + "shorthand": false, "range": [ 261, 285 @@ -959,6 +963,7 @@ } } }, + "shorthand": true, "range": [ 286, 299 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/02-style-props/01-output.json b/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/02-style-props/01-output.json index 3890ec5a..14f981f0 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/02-style-props/01-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/02-style-props/01-output.json @@ -82,6 +82,7 @@ } } }, + "shorthand": true, "range": [ 10, 20 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/02-style-props/02-output.json b/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/02-style-props/02-output.json index 577de924..7e586ab8 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/02-style-props/02-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/02-style-props/02-output.json @@ -198,6 +198,7 @@ } } }, + "shorthand": true, "range": [ 95, 105 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/03-bind-property/01-output.json b/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/03-bind-property/01-output.json index b5095d46..32e7a8c6 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/03-bind-property/01-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/03-bind-property/01-output.json @@ -82,6 +82,7 @@ } } }, + "shorthand": false, "range": [ 8, 32 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/03-bind-property/02-output.json b/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/03-bind-property/02-output.json index d8b0a504..d0b94898 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/03-bind-property/02-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/03-bind-property/02-output.json @@ -82,6 +82,7 @@ } } }, + "shorthand": false, "range": [ 8, 24 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/04-bind-this/01-output.json b/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/04-bind-this/01-output.json index ace8a103..c60a4541 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/04-bind-this/01-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/04-bind-this/01-output.json @@ -82,6 +82,7 @@ } } }, + "shorthand": false, "range": [ 8, 38 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/04-bind-this/02-output.json b/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/04-bind-this/02-output.json index 7890c87e..d485dd90 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/04-bind-this/02-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/12-component-directives/04-bind-this/02-output.json @@ -82,6 +82,7 @@ } } }, + "shorthand": false, "range": [ 14, 30 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/16-svelte-window/02-output.json b/tests/fixtures/parser/ast/docs/template-syntax/16-svelte-window/02-output.json index 2de567ab..0b83457c 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/16-svelte-window/02-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/16-svelte-window/02-output.json @@ -82,6 +82,7 @@ } } }, + "shorthand": false, "range": [ 15, 32 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/16-svelte-window/04-output.json b/tests/fixtures/parser/ast/docs/template-syntax/16-svelte-window/04-output.json index 914fcaf7..a7200a5f 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/16-svelte-window/04-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/16-svelte-window/04-output.json @@ -82,6 +82,7 @@ } } }, + "shorthand": false, "range": [ 15, 31 diff --git a/tests/fixtures/parser/ast/hello/hello-world05-output.json b/tests/fixtures/parser/ast/hello/hello-world05-output.json index 2fede928..ba5ad973 100644 --- a/tests/fixtures/parser/ast/hello/hello-world05-output.json +++ b/tests/fixtures/parser/ast/hello/hello-world05-output.json @@ -3195,6 +3195,7 @@ } } }, + "shorthand": false, "range": [ 1282, 1304 diff --git a/tests/fixtures/parser/ast/illegal/dot-in-bind01-output.json b/tests/fixtures/parser/ast/illegal/dot-in-bind01-output.json index dd0ca166..58f3aa91 100644 --- a/tests/fixtures/parser/ast/illegal/dot-in-bind01-output.json +++ b/tests/fixtures/parser/ast/illegal/dot-in-bind01-output.json @@ -247,6 +247,7 @@ } } }, + "shorthand": false, "range": [ 41, 62 diff --git a/tests/fixtures/parser/ast/illegal/dot-in-bind02-output.json b/tests/fixtures/parser/ast/illegal/dot-in-bind02-output.json index c5d01a02..ad8a0d2e 100644 --- a/tests/fixtures/parser/ast/illegal/dot-in-bind02-output.json +++ b/tests/fixtures/parser/ast/illegal/dot-in-bind02-output.json @@ -209,6 +209,7 @@ } } }, + "shorthand": true, "range": [ 26, 37 diff --git a/tests/fixtures/parser/ast/store-bindings-output.json b/tests/fixtures/parser/ast/store-bindings-output.json index 70418156..2bb788b4 100644 --- a/tests/fixtures/parser/ast/store-bindings-output.json +++ b/tests/fixtures/parser/ast/store-bindings-output.json @@ -445,6 +445,7 @@ } } }, + "shorthand": false, "range": [ 95, 113 diff --git a/tests/fixtures/parser/ast/trailing-comment01-output.json b/tests/fixtures/parser/ast/trailing-comment01-output.json index 9fb94934..3f064d5b 100644 --- a/tests/fixtures/parser/ast/trailing-comment01-output.json +++ b/tests/fixtures/parser/ast/trailing-comment01-output.json @@ -381,6 +381,7 @@ } } }, + "shorthand": false, "range": [ 73, 87 diff --git a/tests/fixtures/parser/ast/tutorial/adding-parameters-to-actions-output.json b/tests/fixtures/parser/ast/tutorial/adding-parameters-to-actions-output.json index 9e793f26..969c07d0 100644 --- a/tests/fixtures/parser/ast/tutorial/adding-parameters-to-actions-output.json +++ b/tests/fixtures/parser/ast/tutorial/adding-parameters-to-actions-output.json @@ -527,6 +527,7 @@ } } }, + "shorthand": false, "range": [ 137, 158 diff --git a/tests/fixtures/parser/ast/tutorial/adding-parameters-to-transitions-output.json b/tests/fixtures/parser/ast/tutorial/adding-parameters-to-transitions-output.json index faaccc6b..0c7dc73a 100644 --- a/tests/fixtures/parser/ast/tutorial/adding-parameters-to-transitions-output.json +++ b/tests/fixtures/parser/ast/tutorial/adding-parameters-to-transitions-output.json @@ -453,6 +453,7 @@ } } }, + "shorthand": false, "range": [ 115, 137 diff --git a/tests/fixtures/parser/ast/tutorial/bind-this-output.json b/tests/fixtures/parser/ast/tutorial/bind-this-output.json index 563ccb43..5352df53 100644 --- a/tests/fixtures/parser/ast/tutorial/bind-this-output.json +++ b/tests/fixtures/parser/ast/tutorial/bind-this-output.json @@ -3873,6 +3873,7 @@ } } }, + "shorthand": false, "range": [ 1068, 1086 diff --git a/tests/fixtures/parser/ast/tutorial/checkbox-inputs-output.json b/tests/fixtures/parser/ast/tutorial/checkbox-inputs-output.json index b288f5eb..4f8c10c2 100644 --- a/tests/fixtures/parser/ast/tutorial/checkbox-inputs-output.json +++ b/tests/fixtures/parser/ast/tutorial/checkbox-inputs-output.json @@ -362,6 +362,7 @@ } } }, + "shorthand": false, "range": [ 68, 86 diff --git a/tests/fixtures/parser/ast/tutorial/class-shorthand-output.json b/tests/fixtures/parser/ast/tutorial/class-shorthand-output.json index 1522e508..f5a8d8d3 100644 --- a/tests/fixtures/parser/ast/tutorial/class-shorthand-output.json +++ b/tests/fixtures/parser/ast/tutorial/class-shorthand-output.json @@ -471,6 +471,7 @@ } } }, + "shorthand": false, "range": [ 115, 133 @@ -670,6 +671,7 @@ } } }, + "shorthand": true, "range": [ 155, 164 diff --git a/tests/fixtures/parser/ast/tutorial/classes-output.json b/tests/fixtures/parser/ast/tutorial/classes-output.json index d25b6bea..d82eb9c0 100644 --- a/tests/fixtures/parser/ast/tutorial/classes-output.json +++ b/tests/fixtures/parser/ast/tutorial/classes-output.json @@ -393,6 +393,7 @@ } } }, + "shorthand": false, "range": [ 162, 198 @@ -744,6 +745,7 @@ } } }, + "shorthand": false, "range": [ 259, 295 diff --git a/tests/fixtures/parser/ast/tutorial/component-bindings01-output.json b/tests/fixtures/parser/ast/tutorial/component-bindings01-output.json index 85973bd5..22be501f 100644 --- a/tests/fixtures/parser/ast/tutorial/component-bindings01-output.json +++ b/tests/fixtures/parser/ast/tutorial/component-bindings01-output.json @@ -1033,6 +1033,7 @@ } } }, + "shorthand": false, "range": [ 260, 276 diff --git a/tests/fixtures/parser/ast/tutorial/contenteditable-bindings-output.json b/tests/fixtures/parser/ast/tutorial/contenteditable-bindings-output.json index 8b9264d5..e2319b3f 100644 --- a/tests/fixtures/parser/ast/tutorial/contenteditable-bindings-output.json +++ b/tests/fixtures/parser/ast/tutorial/contenteditable-bindings-output.json @@ -303,6 +303,7 @@ } } }, + "shorthand": false, "range": [ 87, 108 diff --git a/tests/fixtures/parser/ast/tutorial/context-api02-output.json b/tests/fixtures/parser/ast/tutorial/context-api02-output.json index d3331627..982b6f49 100644 --- a/tests/fixtures/parser/ast/tutorial/context-api02-output.json +++ b/tests/fixtures/parser/ast/tutorial/context-api02-output.json @@ -2527,6 +2527,7 @@ } } }, + "shorthand": false, "range": [ 734, 755 diff --git a/tests/fixtures/parser/ast/tutorial/custom-css-transitions01-output.json b/tests/fixtures/parser/ast/tutorial/custom-css-transitions01-output.json index fb019af8..82aa67a6 100644 --- a/tests/fixtures/parser/ast/tutorial/custom-css-transitions01-output.json +++ b/tests/fixtures/parser/ast/tutorial/custom-css-transitions01-output.json @@ -1637,6 +1637,7 @@ } } }, + "shorthand": false, "range": [ 543, 565 diff --git a/tests/fixtures/parser/ast/tutorial/custom-css-transitions02-output.json b/tests/fixtures/parser/ast/tutorial/custom-css-transitions02-output.json index 442c08fc..9f406b31 100644 --- a/tests/fixtures/parser/ast/tutorial/custom-css-transitions02-output.json +++ b/tests/fixtures/parser/ast/tutorial/custom-css-transitions02-output.json @@ -1817,6 +1817,7 @@ } } }, + "shorthand": false, "range": [ 690, 712 diff --git a/tests/fixtures/parser/ast/tutorial/custom-js-transitions-output.json b/tests/fixtures/parser/ast/tutorial/custom-js-transitions-output.json index 689ac608..f17dd724 100644 --- a/tests/fixtures/parser/ast/tutorial/custom-js-transitions-output.json +++ b/tests/fixtures/parser/ast/tutorial/custom-js-transitions-output.json @@ -1960,6 +1960,7 @@ } } }, + "shorthand": false, "range": [ 545, 567 diff --git a/tests/fixtures/parser/ast/tutorial/debug01-output.json b/tests/fixtures/parser/ast/tutorial/debug01-output.json index a02f25f6..4b029128 100644 --- a/tests/fixtures/parser/ast/tutorial/debug01-output.json +++ b/tests/fixtures/parser/ast/tutorial/debug01-output.json @@ -400,6 +400,7 @@ } } }, + "shorthand": false, "range": [ 88, 115 @@ -585,6 +586,7 @@ } } }, + "shorthand": false, "range": [ 124, 150 diff --git a/tests/fixtures/parser/ast/tutorial/debug02-output.json b/tests/fixtures/parser/ast/tutorial/debug02-output.json index d3ea7e6b..84cf904b 100644 --- a/tests/fixtures/parser/ast/tutorial/debug02-output.json +++ b/tests/fixtures/parser/ast/tutorial/debug02-output.json @@ -400,6 +400,7 @@ } } }, + "shorthand": false, "range": [ 88, 115 @@ -585,6 +586,7 @@ } } }, + "shorthand": false, "range": [ 124, 150 diff --git a/tests/fixtures/parser/ast/tutorial/dimensions-output.json b/tests/fixtures/parser/ast/tutorial/dimensions-output.json index 0d68ac31..ea013ff6 100644 --- a/tests/fixtures/parser/ast/tutorial/dimensions-output.json +++ b/tests/fixtures/parser/ast/tutorial/dimensions-output.json @@ -598,6 +598,7 @@ } } }, + "shorthand": false, "range": [ 203, 220 @@ -746,6 +747,7 @@ } } }, + "shorthand": false, "range": [ 229, 246 @@ -1112,6 +1114,7 @@ } } }, + "shorthand": false, "range": [ 282, 302 @@ -1184,6 +1187,7 @@ } } }, + "shorthand": false, "range": [ 303, 324 diff --git a/tests/fixtures/parser/ast/tutorial/each-block-bindings-output.json b/tests/fixtures/parser/ast/tutorial/each-block-bindings-output.json index 8ad543fb..3bec3f88 100644 --- a/tests/fixtures/parser/ast/tutorial/each-block-bindings-output.json +++ b/tests/fixtures/parser/ast/tutorial/each-block-bindings-output.json @@ -1886,6 +1886,7 @@ } } }, + "shorthand": false, "range": [ 452, 474 @@ -2111,6 +2112,7 @@ } } }, + "shorthand": false, "range": [ 505, 529 @@ -2352,6 +2354,7 @@ } } }, + "shorthand": false, "range": [ 587, 609 diff --git a/tests/fixtures/parser/ast/tutorial/each-block-bindings-scope-output.json b/tests/fixtures/parser/ast/tutorial/each-block-bindings-scope-output.json index a67a187e..b68a286f 100644 --- a/tests/fixtures/parser/ast/tutorial/each-block-bindings-scope-output.json +++ b/tests/fixtures/parser/ast/tutorial/each-block-bindings-scope-output.json @@ -3307,6 +3307,7 @@ } } }, + "shorthand": false, "range": [ 452, 474 @@ -3532,6 +3533,7 @@ } } }, + "shorthand": false, "range": [ 505, 529 @@ -3773,6 +3775,7 @@ } } }, + "shorthand": false, "range": [ 587, 609 diff --git a/tests/fixtures/parser/ast/tutorial/group-inputs-output.json b/tests/fixtures/parser/ast/tutorial/group-inputs-output.json index c4633a76..1b416b64 100644 --- a/tests/fixtures/parser/ast/tutorial/group-inputs-output.json +++ b/tests/fixtures/parser/ast/tutorial/group-inputs-output.json @@ -1397,6 +1397,7 @@ } } }, + "shorthand": false, "range": [ 362, 381 @@ -1786,6 +1787,7 @@ } } }, + "shorthand": false, "range": [ 441, 460 @@ -2175,6 +2177,7 @@ } } }, + "shorthand": false, "range": [ 521, 540 @@ -2715,6 +2718,7 @@ } } }, + "shorthand": false, "range": [ 651, 672 diff --git a/tests/fixtures/parser/ast/tutorial/group-inputs-scope-output.json b/tests/fixtures/parser/ast/tutorial/group-inputs-scope-output.json index 5a42f601..7e087144 100644 --- a/tests/fixtures/parser/ast/tutorial/group-inputs-scope-output.json +++ b/tests/fixtures/parser/ast/tutorial/group-inputs-scope-output.json @@ -3607,6 +3607,7 @@ } } }, + "shorthand": false, "range": [ 651, 672 diff --git a/tests/fixtures/parser/ast/tutorial/in-and-out-output.json b/tests/fixtures/parser/ast/tutorial/in-and-out-output.json index be6ea1e7..d272d0a3 100644 --- a/tests/fixtures/parser/ast/tutorial/in-and-out-output.json +++ b/tests/fixtures/parser/ast/tutorial/in-and-out-output.json @@ -506,6 +506,7 @@ } } }, + "shorthand": false, "range": [ 121, 143 diff --git a/tests/fixtures/parser/ast/tutorial/local-transitions-output.json b/tests/fixtures/parser/ast/tutorial/local-transitions-output.json index 7a0aa0ec..e8357625 100644 --- a/tests/fixtures/parser/ast/tutorial/local-transitions-output.json +++ b/tests/fixtures/parser/ast/tutorial/local-transitions-output.json @@ -900,6 +900,7 @@ } } }, + "shorthand": false, "range": [ 304, 328 @@ -1214,6 +1215,7 @@ } } }, + "shorthand": false, "range": [ 380, 394 diff --git a/tests/fixtures/parser/ast/tutorial/media-elements-output.json b/tests/fixtures/parser/ast/tutorial/media-elements-output.json index 0288737f..53e399a2 100644 --- a/tests/fixtures/parser/ast/tutorial/media-elements-output.json +++ b/tests/fixtures/parser/ast/tutorial/media-elements-output.json @@ -4280,6 +4280,7 @@ } } }, + "shorthand": false, "range": [ 2350, 2373 @@ -4352,6 +4353,7 @@ } } }, + "shorthand": true, "range": [ 2376, 2389 @@ -4424,6 +4426,7 @@ } } }, + "shorthand": true, "range": [ 2392, 2403 diff --git a/tests/fixtures/parser/ast/tutorial/module-exports02-output.json b/tests/fixtures/parser/ast/tutorial/module-exports02-output.json index 48d0a378..69a57fa7 100644 --- a/tests/fixtures/parser/ast/tutorial/module-exports02-output.json +++ b/tests/fixtures/parser/ast/tutorial/module-exports02-output.json @@ -2092,6 +2092,7 @@ } } }, + "shorthand": false, "range": [ 707, 730 @@ -2608,6 +2609,7 @@ } } }, + "shorthand": false, "range": [ 824, 841 @@ -2680,6 +2682,7 @@ } } }, + "shorthand": true, "range": [ 844, 855 diff --git a/tests/fixtures/parser/ast/tutorial/multiple-select-bindings-output.json b/tests/fixtures/parser/ast/tutorial/multiple-select-bindings-output.json index 81617961..58145081 100644 --- a/tests/fixtures/parser/ast/tutorial/multiple-select-bindings-output.json +++ b/tests/fixtures/parser/ast/tutorial/multiple-select-bindings-output.json @@ -1397,6 +1397,7 @@ } } }, + "shorthand": false, "range": [ 363, 382 @@ -1786,6 +1787,7 @@ } } }, + "shorthand": false, "range": [ 442, 461 @@ -2175,6 +2177,7 @@ } } }, + "shorthand": false, "range": [ 522, 541 @@ -2596,6 +2599,7 @@ } } }, + "shorthand": false, "range": [ 613, 634 diff --git a/tests/fixtures/parser/ast/tutorial/numeric-inputs02-output.json b/tests/fixtures/parser/ast/tutorial/numeric-inputs02-output.json index 5179b649..4ea74674 100644 --- a/tests/fixtures/parser/ast/tutorial/numeric-inputs02-output.json +++ b/tests/fixtures/parser/ast/tutorial/numeric-inputs02-output.json @@ -436,6 +436,7 @@ } } }, + "shorthand": false, "range": [ 72, 86 @@ -752,6 +753,7 @@ } } }, + "shorthand": false, "range": [ 120, 134 @@ -1178,6 +1180,7 @@ } } }, + "shorthand": false, "range": [ 187, 201 @@ -1494,6 +1497,7 @@ } } }, + "shorthand": false, "range": [ 235, 249 diff --git a/tests/fixtures/parser/ast/tutorial/optional-slots03-output.json b/tests/fixtures/parser/ast/tutorial/optional-slots03-output.json index 48a90b77..16291204 100644 --- a/tests/fixtures/parser/ast/tutorial/optional-slots03-output.json +++ b/tests/fixtures/parser/ast/tutorial/optional-slots03-output.json @@ -580,6 +580,7 @@ } } }, + "shorthand": false, "range": [ 736, 775 diff --git a/tests/fixtures/parser/ast/tutorial/select-bindings-output.json b/tests/fixtures/parser/ast/tutorial/select-bindings-output.json index 6331c6f6..cebda0aa 100644 --- a/tests/fixtures/parser/ast/tutorial/select-bindings-output.json +++ b/tests/fixtures/parser/ast/tutorial/select-bindings-output.json @@ -1554,6 +1554,7 @@ } } }, + "shorthand": false, "range": [ 552, 573 @@ -2202,6 +2203,7 @@ } } }, + "shorthand": false, "range": [ 731, 750 diff --git a/tests/fixtures/parser/ast/tutorial/sharing-code02-output.json b/tests/fixtures/parser/ast/tutorial/sharing-code02-output.json index 4ac07065..daff598b 100644 --- a/tests/fixtures/parser/ast/tutorial/sharing-code02-output.json +++ b/tests/fixtures/parser/ast/tutorial/sharing-code02-output.json @@ -1263,6 +1263,7 @@ } } }, + "shorthand": false, "range": [ 471, 494 @@ -1779,6 +1780,7 @@ } } }, + "shorthand": false, "range": [ 588, 605 @@ -1851,6 +1853,7 @@ } } }, + "shorthand": true, "range": [ 608, 619 diff --git a/tests/fixtures/parser/ast/tutorial/slot-props01-output.json b/tests/fixtures/parser/ast/tutorial/slot-props01-output.json index 377eddee..3781454f 100644 --- a/tests/fixtures/parser/ast/tutorial/slot-props01-output.json +++ b/tests/fixtures/parser/ast/tutorial/slot-props01-output.json @@ -487,6 +487,7 @@ } } }, + "shorthand": true, "range": [ 256, 268 diff --git a/tests/fixtures/parser/ast/tutorial/slot-props01-scope-output.json b/tests/fixtures/parser/ast/tutorial/slot-props01-scope-output.json index accf2237..a1c47e26 100644 --- a/tests/fixtures/parser/ast/tutorial/slot-props01-scope-output.json +++ b/tests/fixtures/parser/ast/tutorial/slot-props01-scope-output.json @@ -451,6 +451,7 @@ } } }, + "shorthand": true, "range": [ 256, 268 diff --git a/tests/fixtures/parser/ast/tutorial/slot-props03-output.json b/tests/fixtures/parser/ast/tutorial/slot-props03-output.json index fcc78ca4..225813ea 100644 --- a/tests/fixtures/parser/ast/tutorial/slot-props03-output.json +++ b/tests/fixtures/parser/ast/tutorial/slot-props03-output.json @@ -487,6 +487,7 @@ } } }, + "shorthand": false, "range": [ 258, 281 diff --git a/tests/fixtures/parser/ast/tutorial/slot-props03-scope-output.json b/tests/fixtures/parser/ast/tutorial/slot-props03-scope-output.json index b1e9357a..569c1948 100644 --- a/tests/fixtures/parser/ast/tutorial/slot-props03-scope-output.json +++ b/tests/fixtures/parser/ast/tutorial/slot-props03-scope-output.json @@ -451,6 +451,7 @@ } } }, + "shorthand": false, "range": [ 258, 281 diff --git a/tests/fixtures/parser/ast/tutorial/spring-output.json b/tests/fixtures/parser/ast/tutorial/spring-output.json index 41495e29..a683a286 100644 --- a/tests/fixtures/parser/ast/tutorial/spring-output.json +++ b/tests/fixtures/parser/ast/tutorial/spring-output.json @@ -1261,6 +1261,7 @@ } } }, + "shorthand": false, "range": [ 366, 395 @@ -1981,6 +1982,7 @@ } } }, + "shorthand": false, "range": [ 505, 532 diff --git a/tests/fixtures/parser/ast/tutorial/svelte-body-output.json b/tests/fixtures/parser/ast/tutorial/svelte-body-output.json index ff3a0c5e..ef83418c 100644 --- a/tests/fixtures/parser/ast/tutorial/svelte-body-output.json +++ b/tests/fixtures/parser/ast/tutorial/svelte-body-output.json @@ -876,6 +876,7 @@ } } }, + "shorthand": false, "range": [ 606, 631 diff --git a/tests/fixtures/parser/ast/tutorial/svelte-component-output.json b/tests/fixtures/parser/ast/tutorial/svelte-component-output.json index 8846ed68..39c82d44 100644 --- a/tests/fixtures/parser/ast/tutorial/svelte-component-output.json +++ b/tests/fixtures/parser/ast/tutorial/svelte-component-output.json @@ -979,6 +979,7 @@ } } }, + "shorthand": false, "range": [ 351, 372 diff --git a/tests/fixtures/parser/ast/tutorial/svelte-options02-output.json b/tests/fixtures/parser/ast/tutorial/svelte-options02-output.json index b685425c..f76bbbf5 100644 --- a/tests/fixtures/parser/ast/tutorial/svelte-options02-output.json +++ b/tests/fixtures/parser/ast/tutorial/svelte-options02-output.json @@ -933,6 +933,7 @@ } } }, + "shorthand": false, "range": [ 345, 360 diff --git a/tests/fixtures/parser/ast/tutorial/svelte-options03-output.json b/tests/fixtures/parser/ast/tutorial/svelte-options03-output.json index 2c007bb9..a94c5a1d 100644 --- a/tests/fixtures/parser/ast/tutorial/svelte-options03-output.json +++ b/tests/fixtures/parser/ast/tutorial/svelte-options03-output.json @@ -895,6 +895,7 @@ } } }, + "shorthand": false, "range": [ 338, 353 diff --git a/tests/fixtures/parser/ast/tutorial/svelte-self03-output.json b/tests/fixtures/parser/ast/tutorial/svelte-self03-output.json index d8870113..a8cf1e33 100644 --- a/tests/fixtures/parser/ast/tutorial/svelte-self03-output.json +++ b/tests/fixtures/parser/ast/tutorial/svelte-self03-output.json @@ -746,6 +746,7 @@ } } }, + "shorthand": true, "range": [ 579, 593 diff --git a/tests/fixtures/parser/ast/tutorial/svelte-window-bindings-output.json b/tests/fixtures/parser/ast/tutorial/svelte-window-bindings-output.json index 8565240b..9a6c12cf 100644 --- a/tests/fixtures/parser/ast/tutorial/svelte-window-bindings-output.json +++ b/tests/fixtures/parser/ast/tutorial/svelte-window-bindings-output.json @@ -474,6 +474,7 @@ } } }, + "shorthand": false, "range": [ 89, 105 diff --git a/tests/fixtures/parser/ast/tutorial/text-inputs01-output.json b/tests/fixtures/parser/ast/tutorial/text-inputs01-output.json index 6a736b46..d560d9db 100644 --- a/tests/fixtures/parser/ast/tutorial/text-inputs01-output.json +++ b/tests/fixtures/parser/ast/tutorial/text-inputs01-output.json @@ -247,6 +247,7 @@ } } }, + "shorthand": false, "range": [ 48, 65 diff --git a/tests/fixtures/parser/ast/tutorial/textarea-inputs-output.json b/tests/fixtures/parser/ast/tutorial/textarea-inputs-output.json index 46583cfb..41d93424 100644 --- a/tests/fixtures/parser/ast/tutorial/textarea-inputs-output.json +++ b/tests/fixtures/parser/ast/tutorial/textarea-inputs-output.json @@ -452,6 +452,7 @@ } } }, + "shorthand": true, "range": [ 179, 189 diff --git a/tests/fixtures/parser/ast/tutorial/transition-events-output.json b/tests/fixtures/parser/ast/tutorial/transition-events-output.json index f73eb269..a7c4a10f 100644 --- a/tests/fixtures/parser/ast/tutorial/transition-events-output.json +++ b/tests/fixtures/parser/ast/tutorial/transition-events-output.json @@ -673,6 +673,7 @@ } } }, + "shorthand": false, "range": [ 169, 191 diff --git a/tests/fixtures/parser/ast/tutorial/transition-output.json b/tests/fixtures/parser/ast/tutorial/transition-output.json index 4a317db4..0a1619a4 100644 --- a/tests/fixtures/parser/ast/tutorial/transition-output.json +++ b/tests/fixtures/parser/ast/tutorial/transition-output.json @@ -453,6 +453,7 @@ } } }, + "shorthand": false, "range": [ 116, 138 diff --git a/tests/fixtures/parser/ast/tutorial/update-output.json b/tests/fixtures/parser/ast/tutorial/update-output.json index 6e040000..a0141a2f 100644 --- a/tests/fixtures/parser/ast/tutorial/update-output.json +++ b/tests/fixtures/parser/ast/tutorial/update-output.json @@ -4194,6 +4194,7 @@ } } }, + "shorthand": false, "range": [ 1641, 1656