Skip to content

Commit

Permalink
regen
Browse files Browse the repository at this point in the history
  • Loading branch information
machty committed Jul 16, 2024
1 parent 5d99bc2 commit cc4ddaa
Showing 1 changed file with 62 additions and 62 deletions.
124 changes: 62 additions & 62 deletions packages/core/__tests__/transform/rewrite.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,42 +466,42 @@ describe('Transform: rewriteModule', () => {
| Mapping: TemplateEmbedding
| hbs(22:74): <template>\\n Hello, {{this.target}}!\\n </template>
| ts(22:295): static { ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateForBackingValue(this, function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.this.target)());\\n__glintRef__; __glintDSL__;\\n}) }
| ts(22:369): static { ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateForBackingValue(this, function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.this.target)());\\n__glintRef__; __glintDSL__;\\n}) }
|
| | Mapping: Template
| | hbs(32:63): Hello, {{this.target}}!
| | ts(232:284): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.this.target)());
| | ts(253:337): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.this.target)());
| |
| | | Mapping: TextContent
| | | hbs(37:43): Hello,
| | | ts(232:232):
| | | ts(253:253):
| | |
| | | Mapping: MustacheStatement
| | | hbs(44:59): {{this.target}}
| | | ts(232:282): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.this.target)())
| | | ts(253:335): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.this.target)())
| | |
| | | | Mapping: MustacheStatement
| | | | hbs(44:59): {{this.target}}
| | | | ts(246:281): __glintDSL__.resolveOrReturn(__glintRef__.this.target)()
| | | | ts(278:334): __glintDSL__.resolveOrReturn(__glintRef__.this.target)()
| | | |
| | | | | Mapping: PathExpression
| | | | | hbs(46:57): this.target
| | | | | ts(264:278): __glintRef__.this.target
| | | | | ts(307:331): __glintRef__.this.target
| | | | |
| | | | | | Mapping: Identifier
| | | | | | hbs(46:50): this
| | | | | | ts(267:271): this
| | | | | | ts(320:324): this
| | | | | |
| | | | | | Mapping: Identifier
| | | | | | hbs(51:57): target
| | | | | | ts(272:278): target
| | | | | | ts(325:331): target
| | | | | |
| | | | |
| | | |
| | |
| | | Mapping: TextContent
| | | hbs(59:60): !
| | | ts(284:284):
| | | ts(337:337):
| | |
| |
|"
Expand All @@ -524,38 +524,38 @@ describe('Transform: rewriteModule', () => {
| Mapping: TemplateEmbedding
| hbs(0:44): <template>\\n Hello, {{@target}}!\\n</template>
| ts(0:266): export default ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateExpression(function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.args.target)());\\n__glintRef__; __glintDSL__;\\n})
| ts(0:340): export default ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateExpression(function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.args.target)());\\n__glintRef__; __glintDSL__;\\n})
|
| | Mapping: Template
| | hbs(10:33): Hello, {{@target}}!
| | ts(205:257): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.args.target)());
| | ts(226:310): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.args.target)());
| |
| | | Mapping: TextContent
| | | hbs(13:19): Hello,
| | | ts(205:205):
| | | ts(226:226):
| | |
| | | Mapping: MustacheStatement
| | | hbs(20:31): {{@target}}
| | | ts(205:255): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.args.target)())
| | | ts(226:308): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.args.target)())
| | |
| | | | Mapping: MustacheStatement
| | | | hbs(20:31): {{@target}}
| | | | ts(219:254): __glintDSL__.resolveOrReturn(__glintRef__.args.target)()
| | | | ts(251:307): __glintDSL__.resolveOrReturn(__glintRef__.args.target)()
| | | |
| | | | | Mapping: PathExpression
| | | | | hbs(22:29): @target
| | | | | ts(237:251): __glintRef__.args.target
| | | | | ts(280:304): __glintRef__.args.target
| | | | |
| | | | | | Mapping: Identifier
| | | | | | hbs(23:29): target
| | | | | | ts(245:251): target
| | | | | | ts(298:304): target
| | | | | |
| | | | |
| | | |
| | |
| | | Mapping: TextContent
| | | hbs(31:32): !
| | | ts(257:257):
| | | ts(310:310):
| | |
| |
|"
Expand Down Expand Up @@ -593,27 +593,27 @@ describe('Transform: rewriteModule', () => {
| Mapping: TemplateEmbedding
| hbs(56:89): <template>{{@message}}</template>
| ts(56:308): ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateExpression(function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.args.message)());\\n__glintRef__; __glintDSL__;\\n})
| ts(56:382): ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateExpression(function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.args.message)());\\n__glintRef__; __glintDSL__;\\n})
|
| | Mapping: Template
| | hbs(66:78): {{@message}}
| | ts(246:299): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.args.message)());
| | ts(267:352): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.args.message)());
| |
| | | Mapping: MustacheStatement
| | | hbs(66:78): {{@message}}
| | | ts(246:297): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.args.message)())
| | | ts(267:350): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.args.message)())
| | |
| | | | Mapping: MustacheStatement
| | | | hbs(66:78): {{@message}}
| | | | ts(260:296): __glintDSL__.resolveOrReturn(__glintRef__.args.message)()
| | | | ts(292:349): __glintDSL__.resolveOrReturn(__glintRef__.args.message)()
| | | |
| | | | | Mapping: PathExpression
| | | | | hbs(68:76): @message
| | | | | ts(278:293): __glintRef__.args.message
| | | | | ts(321:346): __glintRef__.args.message
| | | | |
| | | | | | Mapping: Identifier
| | | | | | hbs(69:76): message
| | | | | | ts(286:293): message
| | | | | | ts(339:346): message
| | | | | |
| | | | |
| | | |
Expand All @@ -623,31 +623,31 @@ describe('Transform: rewriteModule', () => {
| Mapping: TemplateEmbedding
| hbs(139:174): <template>{{this.title}}</template>
| ts(358:630): static { ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateForBackingValue(this, function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.this.title)());\\n__glintRef__; __glintDSL__;\\n}) }
| ts(432:778): static { ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateForBackingValue(this, function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.this.title)());\\n__glintRef__; __glintDSL__;\\n}) }
|
| | Mapping: Template
| | hbs(149:163): {{this.title}}
| | ts(568:619): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.this.title)());
| | ts(663:746): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.this.title)());
| |
| | | Mapping: MustacheStatement
| | | hbs(149:163): {{this.title}}
| | | ts(568:617): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.this.title)())
| | | ts(663:744): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.this.title)())
| | |
| | | | Mapping: MustacheStatement
| | | | hbs(149:163): {{this.title}}
| | | | ts(582:616): __glintDSL__.resolveOrReturn(__glintRef__.this.title)()
| | | | ts(688:743): __glintDSL__.resolveOrReturn(__glintRef__.this.title)()
| | | |
| | | | | Mapping: PathExpression
| | | | | hbs(151:161): this.title
| | | | | ts(600:613): __glintRef__.this.title
| | | | | ts(717:740): __glintRef__.this.title
| | | | |
| | | | | | Mapping: Identifier
| | | | | | hbs(151:155): this
| | | | | | ts(603:607): this
| | | | | | ts(730:734): this
| | | | | |
| | | | | | Mapping: Identifier
| | | | | | hbs(156:161): title
| | | | | | ts(608:613): title
| | | | | | ts(735:740): title
| | | | | |
| | | | |
| | | |
Expand Down Expand Up @@ -679,143 +679,143 @@ describe('Transform: rewriteModule', () => {
| Mapping: TemplateEmbedding
| hbs(58:210): <template>\\n {{! Intentionally shadowing }}\\n {{#let (arr 1 2) (h red="blue") as |arr h|}}\\n Array is {{arr}}\\n Hash is {{h}}\\n {{/let}}\\n</template>
| ts(58:535): export default ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateExpression(function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {\\n{\\nconst __glintY__ = __glintDSL__.emitComponent(__glintDSL__.resolve(__glintDSL__.Globals["let"])((__glintDSL__.noop(arr), [1, 2]), (__glintDSL__.noop(h), ({\\nred: "blue",\\n}))));\\n{\\nconst [arr, h] = __glintY__.blockParams["default"];\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(arr)());\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(h)());\\n}\\n__glintDSL__.Globals["let"];\\n}\\n__glintRef__; __glintDSL__;\\n})
| ts(58:703): export default ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateExpression(function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {\\n{\\nconst __glintY__ = __glintDSL__.emitComponent(__glintDSL__.resolve(__glintDSL__.Globals["let"])((__glintDSL__.noop(arr), [1, 2]), (__glintDSL__.noop(h), ({\\nred: "blue",\\n}))));\\n{\\nconst [arr, h] = __glintY__.blockParams["default"];\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(arr)());\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(h)());\\n}\\n__glintDSL__.Globals["let"];\\n}\\n__glintRef__; __glintDSL__;\\n})
|
| | Mapping: Template
| | hbs(68:199): {{! Intentionally shadowing }}\\n {{#let (arr 1 2) (h red="blue") as |arr h|}}\\n Array is {{arr}}\\n Hash is {{h}}\\n {{/let}}
| | ts(263:526): {\\nconst __glintY__ = __glintDSL__.emitComponent(__glintDSL__.resolve(__glintDSL__.Globals["let"])((__glintDSL__.noop(arr), [1, 2]), (__glintDSL__.noop(h), ({\\nred: "blue",\\n}))));\\n{\\nconst [arr, h] = __glintY__.blockParams["default"];\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(arr)());\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(h)());\\n}\\n__glintDSL__.Globals["let"];\\n}
| | ts(284:673): {\\nconst __glintY__ = __glintDSL__.emitComponent(__glintDSL__.resolve(__glintDSL__.Globals["let"])((__glintDSL__.noop(arr), [1, 2]), (__glintDSL__.noop(h), ({\\nred: "blue",\\n}))));\\n{\\nconst [arr, h] = __glintY__.blockParams["default"];\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(arr)());\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(h)());\\n}\\n__glintDSL__.Globals["let"];\\n}
| |
| | | Mapping: TextContent
| | | hbs(68:69):
| | | ts(263:263):
| | | ts(284:284):
| | |
| | | Mapping: MustacheCommentStatement
| | | hbs(71:101): {{! Intentionally shadowing }}
| | | ts(263:263):
| | | ts(284:284):
| | |
| | | Mapping: BlockStatement
| | | hbs(104:198): {{#let (arr 1 2) (h red="blue") as |arr h|}}\\n Array is {{arr}}\\n Hash is {{h}}\\n {{/let}}
| | | ts(263:525): {\\nconst __glintY__ = __glintDSL__.emitComponent(__glintDSL__.resolve(__glintDSL__.Globals["let"])((__glintDSL__.noop(arr), [1, 2]), (__glintDSL__.noop(h), ({\\nred: "blue",\\n}))));\\n{\\nconst [arr, h] = __glintY__.blockParams["default"];\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(arr)());\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(h)());\\n}\\n__glintDSL__.Globals["let"];\\n}
| | | ts(284:672): {\\nconst __glintY__ = __glintDSL__.emitComponent(__glintDSL__.resolve(__glintDSL__.Globals["let"])((__glintDSL__.noop(arr), [1, 2]), (__glintDSL__.noop(h), ({\\nred: "blue",\\n}))));\\n{\\nconst [arr, h] = __glintY__.blockParams["default"];\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(arr)());\\n__glintDSL__.emitContent(__glintDSL__.resolveOrReturn(h)());\\n}\\n__glintDSL__.Globals["let"];\\n}
| | |
| | | | Mapping: BlockStatement
| | | | hbs(104:198): {{#let (arr 1 2) (h red="blue") as |arr h|}}\\n Array is {{arr}}\\n Hash is {{h}}\\n {{/let}}
| | | | ts(292:375): __glintDSL__.resolve(__glintDSL__.Globals["let"])((__glintDSL__.noop(arr), [1, 2]), (__glintDSL__.noop(h), ({\\nred: "blue",\\n})))
| | | | ts(332:459): __glintDSL__.resolve(__glintDSL__.Globals["let"])((__glintDSL__.noop(arr), [1, 2]), (__glintDSL__.noop(h), ({\\nred: "blue",\\n})))
| | | |
| | | | | Mapping: PathExpression
| | | | | hbs(107:110): let
| | | | | ts(302:318): __glintDSL__.Globals["let"]
| | | | | ts(353:380): __glintDSL__.Globals["let"]
| | | | |
| | | | | | Mapping: Identifier
| | | | | | hbs(107:110): let
| | | | | | ts(313:316): let
| | | | | | ts(375:378): let
| | | | | |
| | | | |
| | | | | Mapping: PathExpression
| | | | | hbs(112:115): arr
| | | | | ts(328:331): arr
| | | | | ts(401:404): arr
| | | | |
| | | | | | Mapping: Identifier
| | | | | | hbs(112:115): arr
| | | | | | ts(328:331): arr
| | | | | | ts(401:404): arr
| | | | | |
| | | | |
| | | | | Mapping: SubExpression
| | | | | hbs(111:120): (arr 1 2)
| | | | | ts(334:340): [1, 2]
| | | | | ts(407:413): [1, 2]
| | | | |
| | | | | | Mapping: NumberLiteral
| | | | | | hbs(116:117): 1
| | | | | | ts(335:336): 1
| | | | | | ts(408:409): 1
| | | | | |
| | | | | | Mapping: NumberLiteral
| | | | | | hbs(118:119): 2
| | | | | | ts(338:339): 2
| | | | | | ts(411:412): 2
| | | | | |
| | | | |
| | | | | Mapping: PathExpression
| | | | | hbs(122:123): h
| | | | | ts(351:352): h
| | | | | ts(435:436): h
| | | | |
| | | | | | Mapping: Identifier
| | | | | | hbs(122:123): h
| | | | | | ts(351:352): h
| | | | | | ts(435:436): h
| | | | | |
| | | | |
| | | | | Mapping: SubExpression
| | | | | hbs(121:135): (h red="blue")
| | | | | ts(355:373): ({\\nred: "blue",\\n})
| | | | | ts(439:457): ({\\nred: "blue",\\n})
| | | | |
| | | | | | Mapping: Identifier
| | | | | | hbs(124:127): red
| | | | | | ts(358:361): red
| | | | | | ts(442:445): red
| | | | | |
| | | | | | Mapping: StringLiteral
| | | | | | hbs(128:134): "blue"
| | | | | | ts(363:369): "blue"
| | | | | | ts(447:453): "blue"
| | | | | |
| | | | |
| | | |
| | | | Mapping: Identifier
| | | | hbs(140:143): arr
| | | | ts(387:390): arr
| | | | ts(471:474): arr
| | | |
| | | | Mapping: Identifier
| | | | hbs(144:145): h
| | | | ts(392:393): h
| | | | ts(476:477): h
| | | |
| | | | Mapping: TextContent
| | | | hbs(153:161): Array is
| | | | ts(424:424):
| | | | ts(516:516):
| | | |
| | | | Mapping: MustacheStatement
| | | | hbs(162:169): {{arr}}
| | | | ts(424:463): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(arr)())
| | | | ts(516:577): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(arr)())
| | | |
| | | | | Mapping: MustacheStatement
| | | | | hbs(162:169): {{arr}}
| | | | | ts(438:462): __glintDSL__.resolveOrReturn(arr)()
| | | | | ts(541:576): __glintDSL__.resolveOrReturn(arr)()
| | | | |
| | | | | | Mapping: PathExpression
| | | | | | hbs(164:167): arr
| | | | | | ts(456:459): arr
| | | | | | ts(570:573): arr
| | | | | |
| | | | | | | Mapping: Identifier
| | | | | | | hbs(164:167): arr
| | | | | | | ts(456:459): arr
| | | | | | | ts(570:573): arr
| | | | | | |
| | | | | |
| | | | |
| | | |
| | | | Mapping: TextContent
| | | | hbs(174:181): Hash is
| | | | ts(465:465):
| | | | ts(579:579):
| | | |
| | | | Mapping: MustacheStatement
| | | | hbs(182:187): {{h}}
| | | | ts(465:502): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(h)())
| | | | ts(579:638): __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(h)())
| | | |
| | | | | Mapping: MustacheStatement
| | | | | hbs(182:187): {{h}}
| | | | | ts(479:501): __glintDSL__.resolveOrReturn(h)()
| | | | | ts(604:637): __glintDSL__.resolveOrReturn(h)()
| | | | |
| | | | | | Mapping: PathExpression
| | | | | | hbs(184:185): h
| | | | | | ts(497:498): h
| | | | | | ts(633:634): h
| | | | | |
| | | | | | | Mapping: Identifier
| | | | | | | hbs(184:185): h
| | | | | | | ts(497:498): h
| | | | | | | ts(633:634): h
| | | | | | |
| | | | | |
| | | | |
| | | |
| | | | Mapping: TextContent
| | | | hbs(187:188):
| | | | ts(504:504):
| | | | ts(640:640):
| | | |
| | | | Mapping: Identifier
| | | | hbs(193:196): let
| | | | ts(517:520): let
| | | | ts(664:667): let
| | | |
| | |
| |
Expand Down

0 comments on commit cc4ddaa

Please sign in to comment.