diff --git a/.github/ISSUE_TEMPLATE/1-bug-report.md b/.github/ISSUE_TEMPLATE/1-bug-report.md
index f9e55808..df53b9d2 100644
--- a/.github/ISSUE_TEMPLATE/1-bug-report.md
+++ b/.github/ISSUE_TEMPLATE/1-bug-report.md
@@ -26,7 +26,9 @@ A clear and concise description of what you expected to happen.
### 🌍 Environment
- prettier-plugin-ember-template-tag version: -
-- ember-template-imports version: -
+- ember-template-imports version (if applicable): -
+- content-tag version (if applicable): -
+- eslint-plugin-ember version (if applicable): -
### ➕ Additional Context
diff --git a/design.md b/design.md
index b09612d5..a964676b 100644
--- a/design.md
+++ b/design.md
@@ -1,15 +1,14 @@
# The Plan
-1. Run `preprocessEmbeddedTemplates` from ember-template-imports to convert gjs files with `` tags into valid JS. The `` tag gets converted into something like `[__GLIMMER_TEMPLATE(' Hello
', { strictMode: true })]`.
-1. Run the `estree` Prettier printer, which formats the valid JS above.
-1. Grab template contents from `GLIMMER_TEMPLATE` AST node described above.
-1. Run the hbs Prettier printer against the template contents.
-1. Replace the `GLIMMER_TEMPLATE` AST node with the results from above, wrapped in ``, like so:
+1. Run `Preprocessor.parse` from content-tag to get template locations. manually convert gjs files with `` tags into valid JS, which doesn't change location. The `` tag gets converted into empty strings.
+2. convert empty string to a custom `Template` Ast node, which holds the template content.
+3. Run the `estree` Prettier printer, which formats the valid JS above.
+4. Grab template contents from `Template` AST node described above.
+5. Run the hbs Prettier printer against the template contents.
+6. Replace the `Template` AST node with the results from above, wrapped in ``, like so:
```gts
Hello
```
-
-Unfortunately, this will likely involve either monkey-patching or re-implementing the estree printer due to this issue: https://github.com/prettier/prettier/issues/10259
diff --git a/examples/bin/test.mjs b/examples/bin/test.mjs
index 54bb089a..c2c7bbf2 100755
--- a/examples/bin/test.mjs
+++ b/examples/bin/test.mjs
@@ -37,8 +37,9 @@ const run = async () => {
}
console.log('💅 Running Prettier...');
const prettier = spawn(
- 'prettier',
+ 'node',
[
+ './node_modules/prettier/bin/prettier.cjs',
'.',
'--write',
'--plugin',
diff --git a/examples/expected-output/example.gts b/examples/expected-output/example.gts
index 12fac0ff..31eb3a4c 100644
--- a/examples/expected-output/example.gts
+++ b/examples/expected-output/example.gts
@@ -11,4 +11,4 @@ export interface Signature {
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
diff --git a/examples/package.json b/examples/package.json
index d75ad8e5..246f2e5d 100644
--- a/examples/package.json
+++ b/examples/package.json
@@ -5,7 +5,7 @@
"scripts": {
"example": "pnpm exec prettier . --write --plugin prettier-plugin-ember-template-tag",
"example-debug": "pnpm exec prettier . --write --plugin prettier-plugin-ember-template-tag --log-level debug",
- "test": "./bin/test.mjs"
+ "test": "node ./bin/test.mjs"
},
"dependencies": {
"prettier": "^3.0.3",
diff --git a/package.json b/package.json
index 03a9a9df..d522c4f6 100644
--- a/package.json
+++ b/package.json
@@ -52,7 +52,6 @@
"@babel/core": "^7.23.2",
"@glimmer/syntax": "^0.84.3",
"ember-cli-htmlbars": "^6.3.0",
- "ember-template-imports": "^3.4.2",
"prettier": "^3.0.3"
},
"devDependencies": {
@@ -67,6 +66,7 @@
"@typescript-eslint/parser": "^6.8.0",
"@vitest/ui": "^0.34.6",
"concurrently": "^8.2.2",
+ "content-tag": "^1.1.2",
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-eslint-comments": "^3.2.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d04f3f65..105882b1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -17,9 +17,6 @@ importers:
ember-cli-htmlbars:
specifier: ^6.3.0
version: 6.3.0
- ember-template-imports:
- specifier: ^3.4.2
- version: 3.4.2
prettier:
specifier: ^3.0.3
version: 3.0.3
@@ -57,6 +54,9 @@ importers:
concurrently:
specifier: ^8.2.2
version: 8.2.2
+ content-tag:
+ specifier: ^1.1.2
+ version: 1.1.2
eslint:
specifier: ^8.51.0
version: 8.51.0
@@ -1343,10 +1343,6 @@ packages:
call-bind: 1.0.2
is-array-buffer: 3.0.2
- /array-equal@1.0.0:
- resolution: {integrity: sha512-H3LU5RLiSsGXPhN+Nipar0iR0IofH+8r89G2y1tBKxQ/agagKyAjhkAFDRBfodP2caPrNKHpAWNIM/c9yeL7uA==}
- dev: false
-
/array-union@2.1.0:
resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==}
engines: {node: '>=8'}
@@ -1386,20 +1382,6 @@ packages:
tslib: 2.6.2
dev: true
- /async-disk-cache@1.3.5:
- resolution: {integrity: sha512-VZpqfR0R7CEOJZ/0FOTgWq70lCrZyS1rkI8PXugDUkTKyyAUgZ2zQ09gLhMkEn+wN8LYeUTPxZdXtlX/kmbXKQ==}
- dependencies:
- debug: 2.6.9
- heimdalljs: 0.2.6
- istextorbinary: 2.1.0
- mkdirp: 0.5.6
- rimraf: 2.7.1
- rsvp: 3.6.2
- username-sync: 1.0.3
- transitivePeerDependencies:
- - supports-color
- dev: false
-
/async-disk-cache@2.1.0:
resolution: {integrity: sha512-iH+boep2xivfD9wMaZWkywYIURSmsL96d6MoqrC94BnGSvXE4Quf8hnJiHGFYhw/nLeIa1XyRaf4vvcvkwAefg==}
engines: {node: 8.* || >= 10.*}
@@ -1440,11 +1422,6 @@ packages:
resolution: {integrity: sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==}
engines: {node: '>= 0.4'}
- /babel-import-util@0.2.0:
- resolution: {integrity: sha512-CtWYYHU/MgK88rxMrLfkD356dApswtR/kWZ/c6JifG1m10e7tBBrs/366dFzWMAoqYmG5/JSh+94tUSpIwh+ag==}
- engines: {node: '>= 12.*'}
- dev: false
-
/babel-import-util@1.3.0:
resolution: {integrity: sha512-PPzUT17eAI18zn6ek1R3sB4Krc/MbnmT1MkZQFmyhjoaEGBVwNABhfVU9+EKcDSKrrOm9OIpGhjxukx1GCiy1g==}
engines: {node: '>= 12.*'}
@@ -1521,10 +1498,6 @@ packages:
readable-stream: 3.6.2
dev: true
- /blank-object@1.0.2:
- resolution: {integrity: sha512-kXQ19Xhoghiyw66CUiGypnuRpWlbHAzY/+NyvqTEdTfhfQGH1/dbEMYiXju7fYKIFePpzp/y9dsu5Cu/PkmawQ==}
- dev: false
-
/boxen@7.1.0:
resolution: {integrity: sha512-ScG8CDo8dj7McqCZ5hz4dIBp20xj4unQ2lXIDa7ff6RcZElCpuNzutdwzKVvRikfNjm7CFAlR3HJHcoHkDOExQ==}
engines: {node: '>=14.16'}
@@ -1572,27 +1545,6 @@ packages:
- supports-color
dev: false
- /broccoli-funnel@2.0.2:
- resolution: {integrity: sha512-/vDTqtv7ipjEZQOVqO4vGDVAOZyuYzQ/EgGoyewfOgh1M7IQAToBKZI0oAQPgMBeFPPlIbfMuAngk+ohPBuaHQ==}
- engines: {node: ^4.5 || 6.* || >= 7.*}
- dependencies:
- array-equal: 1.0.0
- blank-object: 1.0.2
- broccoli-plugin: 1.3.1
- debug: 2.6.9
- fast-ordered-set: 1.0.3
- fs-tree-diff: 0.5.9
- heimdalljs: 0.2.6
- minimatch: 3.1.2
- mkdirp: 0.5.6
- path-posix: 1.0.0
- rimraf: 2.7.1
- symlink-or-copy: 1.3.1
- walk-sync: 0.3.4
- transitivePeerDependencies:
- - supports-color
- dev: false
-
/broccoli-kitchen-sink-helpers@0.3.1:
resolution: {integrity: sha512-gqYnKSJxBSjj/uJqeuRAzYVbmjWhG0mOZ8jrp6+fnUIOgLN6MvI7XxBECDHkYMIFPJ8Smf4xaI066Q2FqQDnXg==}
dependencies:
@@ -1600,16 +1552,6 @@ packages:
mkdirp: 0.5.6
dev: false
- /broccoli-merge-trees@3.0.2:
- resolution: {integrity: sha512-ZyPAwrOdlCddduFbsMyyFzJUrvW6b04pMvDiAQZrCwghlvgowJDY+EfoXn+eR1RRA5nmGHJ+B68T63VnpRiT1A==}
- engines: {node: '>=6.0.0'}
- dependencies:
- broccoli-plugin: 1.3.1
- merge-trees: 2.0.0
- transitivePeerDependencies:
- - supports-color
- dev: false
-
/broccoli-node-api@1.7.0:
resolution: {integrity: sha512-QIqLSVJWJUVOhclmkmypJJH9u9s/aWH4+FH6Q6Ju5l+Io4dtwqdPUNmDfw40o6sxhbZHhqGujDJuHTML1wG8Yw==}
dev: false
@@ -1630,28 +1572,6 @@ packages:
- supports-color
dev: false
- /broccoli-persistent-filter@2.3.1:
- resolution: {integrity: sha512-hVsmIgCDrl2NFM+3Gs4Cr2TA6UPaIZip99hN8mtkaUPgM8UeVnCbxelCvBjUBHo0oaaqP5jzqqnRVvb568Yu5g==}
- engines: {node: 6.* || >= 8.*}
- dependencies:
- async-disk-cache: 1.3.5
- async-promise-queue: 1.0.5
- broccoli-plugin: 1.3.1
- fs-tree-diff: 2.0.1
- hash-for-dep: 1.5.1
- heimdalljs: 0.2.6
- heimdalljs-logger: 0.1.10
- mkdirp: 0.5.6
- promise-map-series: 0.2.3
- rimraf: 2.7.1
- rsvp: 4.8.5
- symlink-or-copy: 1.3.1
- sync-disk-cache: 1.3.4
- walk-sync: 1.1.4
- transitivePeerDependencies:
- - supports-color
- dev: false
-
/broccoli-persistent-filter@3.1.3:
resolution: {integrity: sha512-Q+8iezprZzL9voaBsDY3rQVl7c7H5h+bvv8SpzCZXPZgfBFCbx7KFQ2c3rZR6lW5k4Kwoqt7jG+rZMUg67Gwxw==}
engines: {node: 10.* || >= 12.*}
@@ -1680,16 +1600,6 @@ packages:
symlink-or-copy: 1.3.1
dev: false
- /broccoli-plugin@2.1.0:
- resolution: {integrity: sha512-ElE4caljW4slapyEhSD9jU9Uayc8SoSABWdmY9SqbV8DHNxU6xg1jJsPcMm+cXOvggR3+G+OXAYQeFjWVnznaw==}
- engines: {node: 6.* || 8.* || >= 10.*}
- dependencies:
- promise-map-series: 0.2.3
- quick-temp: 0.1.8
- rimraf: 2.7.1
- symlink-or-copy: 1.3.1
- dev: false
-
/broccoli-plugin@4.0.7:
resolution: {integrity: sha512-a4zUsWtA1uns1K7p9rExYVYG99rdKeGRymW0qOCNkvDPHQxVi3yVyJHhQbM3EZwdt2E0mnhr5e0c/bPpJ7p3Wg==}
engines: {node: 10.* || >= 12.*}
@@ -1705,28 +1615,6 @@ packages:
- supports-color
dev: false
- /broccoli-stew@3.0.0:
- resolution: {integrity: sha512-NXfi+Vas24n3Ivo21GvENTI55qxKu7OwKRnCLWXld8MiLiQKQlWIq28eoARaFj0lTUFwUa4jKZeA7fW9PiWQeg==}
- engines: {node: 8.* || >= 10.*}
- dependencies:
- broccoli-debug: 0.6.5
- broccoli-funnel: 2.0.2
- broccoli-merge-trees: 3.0.2
- broccoli-persistent-filter: 2.3.1
- broccoli-plugin: 2.1.0
- chalk: 2.4.2
- debug: 4.3.4
- ensure-posix-path: 1.1.1
- fs-extra: 8.1.0
- minimatch: 3.1.2
- resolve: 1.22.2
- rsvp: 4.8.5
- symlink-or-copy: 1.3.1
- walk-sync: 1.1.4
- transitivePeerDependencies:
- - supports-color
- dev: false
-
/browserslist@4.22.1:
resolution: {integrity: sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==}
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
@@ -1835,13 +1723,6 @@ packages:
engines: {node: '>=14.16'}
dev: true
- /can-symlink@1.0.0:
- resolution: {integrity: sha512-RbsNrFyhwkx+6psk/0fK/Q9orOUr9VMxohGd8vTa4djf4TGLfblBgUfqZChrZuW0Q+mz2eBPFLusw9Jfukzmhg==}
- hasBin: true
- dependencies:
- tmp: 0.0.28
- dev: false
-
/caniuse-lite@1.0.30001550:
resolution: {integrity: sha512-p82WjBYIypO0ukTsd/FG3Xxs+4tFeaY9pfT4amQL8KWtYH7H9nYwReGAbMTJ0hsmRO8IfDtsS6p3ZWj8+1c2RQ==}
dev: false
@@ -1916,10 +1797,6 @@ packages:
engines: {node: '>=6'}
dev: true
- /clean-up-path@1.0.0:
- resolution: {integrity: sha512-PHGlEF0Z6976qQyN6gM7kKH6EH0RdfZcc8V+QhFe36eRxV0SMH5OUBZG7Bxa9YcreNzyNbK63cGiZxdSZgosRw==}
- dev: false
-
/cli-boxes@3.0.0:
resolution: {integrity: sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==}
engines: {node: '>=10'}
@@ -2045,6 +1922,10 @@ packages:
xdg-basedir: 5.1.0
dev: true
+ /content-tag@1.1.2:
+ resolution: {integrity: sha512-AZkfc6TUmW+/RbZJioPzOQPAHHXqyqK4B0GNckJDjBAPK3SyGrMfn21bfFky/qwi5uoLph5sjAHUkO3CL6/IgQ==}
+ dev: true
+
/convert-source-map@2.0.0:
resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
dev: false
@@ -2263,11 +2144,6 @@ packages:
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
dev: true
- /editions@1.3.4:
- resolution: {integrity: sha512-gzao+mxnYDzIysXKMQi/+M1mjy/rjestjg6OPoYTtI+3Izp23oiGZitsl9lPDPiTGXbcSIk1iJWhliSaglxnUg==}
- engines: {node: '>=0.8'}
- dev: false
-
/editions@2.3.1:
resolution: {integrity: sha512-ptGvkwTvGdGfC0hfhKg0MT+TRLRKGtUiWGBInxOm5pz7ssADezahjCUaYuZ8Dr+C05FW0AECIIPt4WBxVINEhA==}
engines: {node: '>=0.8'}
@@ -2280,11 +2156,6 @@ packages:
resolution: {integrity: sha512-iS7KhLYCSJbdo3rUSkhDTVuFNCV34RKs2UaB9Ecr7VlqzjjWW//0nfsFF5dtDmyXlZQaDYYtID5fjtC/6lpRug==}
dev: false
- /ember-cli-babel-plugin-helpers@1.1.1:
- resolution: {integrity: sha512-sKvOiPNHr5F/60NLd7SFzMpYPte/nnGkq/tMIfXejfKHIhaiIkYFqX8Z9UFTKWLLn+V7NOaby6niNPZUdvKCRw==}
- engines: {node: 6.* || 8.* || >= 10.*}
- dev: false
-
/ember-cli-htmlbars@6.3.0:
resolution: {integrity: sha512-N9Y80oZfcfWLsqickMfRd9YByVcTGyhYRnYQ2XVPVrp6jyUyOeRWmEAPh7ERSXpp8Ws4hr/JB9QVQrn/yZa+Ag==}
engines: {node: 12.* || 14.* || >= 16}
@@ -2322,23 +2193,6 @@ packages:
resolution: {integrity: sha512-JtuLoYGSjay1W3MQAxt3eINWXNYYQliK90tLwtb8aeCuQK8zKGCRbBodVIrkcTqshULMnRuTOS6t1P7oQk3g6Q==}
dev: false
- /ember-template-imports@3.4.2:
- resolution: {integrity: sha512-OS8TUVG2kQYYwP3netunLVfeijPoOKIs1SvPQRTNOQX4Pu8xGGBEZmrv0U1YTnQn12Eg+p6w/0UdGbUnITjyzw==}
- engines: {node: 12.* || >= 14}
- dependencies:
- babel-import-util: 0.2.0
- broccoli-stew: 3.0.0
- ember-cli-babel-plugin-helpers: 1.1.1
- ember-cli-version-checker: 5.1.2
- line-column: 1.0.2
- magic-string: 0.25.9
- parse-static-imports: 1.1.0
- string.prototype.matchall: 4.0.8
- validate-peer-dependencies: 1.2.0
- transitivePeerDependencies:
- - supports-color
- dev: false
-
/emoji-regex@10.2.1:
resolution: {integrity: sha512-97g6QgOk8zlDRdgq1WxwgTMgEWGVAQvB5Fdpgc1MkNy56la5SKP9GsMXKDOdqwn90/41a8yPwIGk1Y6WVbeMQA==}
dev: true
@@ -2802,12 +2656,6 @@ packages:
resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
dev: true
- /fast-ordered-set@1.0.3:
- resolution: {integrity: sha512-MxBW4URybFszOx1YlACEoK52P6lE3xiFcPaGCUZ7QQOZ6uJXKo++Se8wa31SjcZ+NC/fdAWX7UtKEfaGgHS2Vg==}
- dependencies:
- blank-object: 1.0.2
- dev: false
-
/fastq@1.15.0:
resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==}
dependencies:
@@ -2944,19 +2792,6 @@ packages:
- supports-color
dev: false
- /fs-updater@1.0.4:
- resolution: {integrity: sha512-0pJX4mJF/qLsNEwTct8CdnnRdagfb+LmjRPJ8sO+nCnAZLW0cTmz4rTgU25n+RvTuWSITiLKrGVJceJPBIPlKg==}
- engines: {node: '>=6.0.0'}
- dependencies:
- can-symlink: 1.0.0
- clean-up-path: 1.0.0
- heimdalljs: 0.2.6
- heimdalljs-logger: 0.1.10
- rimraf: 2.7.1
- transitivePeerDependencies:
- - supports-color
- dev: false
-
/fs.realpath@1.0.0:
resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
@@ -3712,15 +3547,6 @@ packages:
lodash.uniqby: 4.7.0
dev: true
- /istextorbinary@2.1.0:
- resolution: {integrity: sha512-kT1g2zxZ5Tdabtpp9VSdOzW9lb6LXImyWbzbQeTxoRtHhurC9Ej9Wckngr2+uepPL09ky/mJHmN9jeJPML5t6A==}
- engines: {node: '>=0.12'}
- dependencies:
- binaryextensions: 2.3.0
- editions: 1.3.4
- textextensions: 2.6.0
- dev: false
-
/istextorbinary@2.6.0:
resolution: {integrity: sha512-+XRlFseT8B3L9KyjxxLjfXSLMuErKDsd8DBNrsaxoViABMEZlOSCstwmw0qpoFX3+U6yWU1yhLudAe6/lETGGA==}
engines: {node: '>=0.12'}
@@ -4082,15 +3908,6 @@ packages:
resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}
dev: true
- /merge-trees@2.0.0:
- resolution: {integrity: sha512-5xBbmqYBalWqmhYm51XlohhkmVOua3VAUrrWh8t9iOkaLpS6ifqm/UVuUjQCeDVJ9Vx3g2l6ihfkbLSTeKsHbw==}
- dependencies:
- fs-updater: 1.0.4
- heimdalljs: 0.2.6
- transitivePeerDependencies:
- - supports-color
- dev: false
-
/merge2@1.4.1:
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
engines: {node: '>= 8'}
@@ -4806,6 +4623,7 @@ packages:
/os-tmpdir@1.0.2:
resolution: {integrity: sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==}
engines: {node: '>=0.10.0'}
+ dev: true
/p-cancelable@3.0.0:
resolution: {integrity: sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==}
@@ -5821,18 +5639,6 @@ packages:
resolution: {integrity: sha512-0K91MEXFpBUaywiwSSkmKjnGcasG/rVBXFLJz5DrgGabpYD6N+3yZrfD6uUIfpuTu65DZLHi7N8CizHc07BPZA==}
dev: false
- /sync-disk-cache@1.3.4:
- resolution: {integrity: sha512-GlkGeM81GPPEKz/lH7QUTbvqLq7K/IUTuaKDSMulP9XQ42glqNJIN/RKgSOw4y8vxL1gOVvj+W7ruEO4s36eCw==}
- dependencies:
- debug: 2.6.9
- heimdalljs: 0.2.6
- mkdirp: 0.5.6
- rimraf: 2.7.1
- username-sync: 1.0.3
- transitivePeerDependencies:
- - supports-color
- dev: false
-
/sync-disk-cache@2.1.0:
resolution: {integrity: sha512-vngT2JmkSapgq0z7uIoYtB9kWOOzMihAAYq/D3Pjm/ODOGMgS4r++B+OZ09U4hWR6EaOdy9eqQ7/8ygbH3wehA==}
engines: {node: 8.* || >= 10.*}
@@ -5899,13 +5705,6 @@ packages:
engines: {node: '>=12'}
dev: true
- /tmp@0.0.28:
- resolution: {integrity: sha512-c2mmfiBmND6SOVxzogm1oda0OJ1HZVIk/5n26N59dDTh80MUeavpiCls4PGAdkX1PFkKokLpcf7prSjCeXLsJg==}
- engines: {node: '>=0.4.0'}
- dependencies:
- os-tmpdir: 1.0.2
- dev: false
-
/tmp@0.0.33:
resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==}
engines: {node: '>=0.6.0'}
@@ -6192,13 +5991,6 @@ packages:
spdx-expression-parse: 3.0.1
dev: true
- /validate-peer-dependencies@1.2.0:
- resolution: {integrity: sha512-nd2HUpKc6RWblPZQ2GDuI65sxJ2n/UqZwSBVtj64xlWjMx0m7ZB2m9b2JS3v1f+n9VWH/dd1CMhkHfP6pIdckA==}
- dependencies:
- resolve-package-path: 3.1.0
- semver: 7.5.4
- dev: false
-
/validate-peer-dependencies@2.2.0:
resolution: {integrity: sha512-8X1OWlERjiUY6P6tdeU9E0EwO8RA3bahoOVG7ulOZT5MqgNDUO/BQoVjYiHPcNe+v8glsboZRIw9iToMAA2zAA==}
engines: {node: '>= 12'}
@@ -6338,14 +6130,6 @@ packages:
matcher-collection: 1.1.2
dev: false
- /walk-sync@1.1.4:
- resolution: {integrity: sha512-nowc9thB/Jg0KW4TgxoRjLLYRPvl3DB/98S89r4ZcJqq2B0alNcKDh6pzLkBSkPMzRSMsJghJHQi79qw0YWEkA==}
- dependencies:
- '@types/minimatch': 3.0.5
- ensure-posix-path: 1.1.1
- matcher-collection: 1.1.2
- dev: false
-
/walk-sync@2.2.0:
resolution: {integrity: sha512-IC8sL7aB4/ZgFcGI2T1LczZeFWZ06b3zoHH7jBPyHxOtIIz1jppWHjjEXkOFvFojBVAK9pV7g47xOZ4LW3QLfg==}
engines: {node: 8.* || >= 10.*}
diff --git a/src/config.ts b/src/config.ts
index 855ed110..5c90b666 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -1,13 +1,6 @@
-// @ts-expect-error FIXME: TS7016 Get ETI to export these + types
-import * as util from 'ember-template-imports/src/util.js';
-
export const PARSER_NAME = 'ember-template-tag';
export const PRINTER_NAME = 'ember-template-tag-estree';
-
-/* eslint-disable @typescript-eslint/no-unsafe-member-access */
-export const TEMPLATE_TAG_NAME = util.TEMPLATE_TAG_NAME as string;
-export const TEMPLATE_TAG_PLACEHOLDER = util.TEMPLATE_TAG_PLACEHOLDER as string;
-/* eslint-enable @typescript-eslint/no-unsafe-member-access */
+export const TEMPLATE_TAG_NAME = 'template';
export const TEMPLATE_TAG_OPEN = `<${TEMPLATE_TAG_NAME}>`;
export const TEMPLATE_TAG_CLOSE = `${TEMPLATE_TAG_NAME}>`;
diff --git a/src/parse.ts b/src/parse.ts
index 4fececee..9312115c 100644
--- a/src/parse.ts
+++ b/src/parse.ts
@@ -1,220 +1,245 @@
-import type { NodePath } from '@babel/core';
import { traverse } from '@babel/core';
-import type { Node, TemplateLiteral } from '@babel/types';
-import {
- isBinaryExpression,
- isMemberExpression,
- isTaggedTemplateExpression,
-} from '@babel/types';
-import { getTemplateLocals } from '@glimmer/syntax';
-import { preprocessEmbeddedTemplates } from 'ember-template-imports/lib/preprocess-embedded-templates.js';
+import type { Node } from '@babel/types';
+import { type Comment } from '@babel/types';
+import { Preprocessor } from 'content-tag';
import type { Parser } from 'prettier';
import { parsers as babelParsers } from 'prettier/plugins/babel.js';
-import {
- PRINTER_NAME,
- TEMPLATE_TAG_NAME,
- TEMPLATE_TAG_PLACEHOLDER,
-} from './config';
+import { PRINTER_NAME } from './config';
import type { Options } from './options.js';
-import type {
- GlimmerExpressionExtra,
- GlimmerTemplateExtra,
-} from './types/glimmer';
-import {
- getGlimmerExpression,
- isGlimmerClassProperty,
- isGlimmerExportDefaultDeclaration,
- isGlimmerExportDefaultDeclarationTS,
-} from './types/glimmer';
-import type {
- RawGlimmerArrayExpression,
- RawGlimmerClassProperty,
-} from './types/raw';
-import {
- hasRawGlimmerArrayExpression,
- isRawGlimmerArrayExpression,
- isRawGlimmerCallExpression,
- isRawGlimmerClassProperty,
-} from './types/raw';
-import { hasAmbiguousNextLine } from './utils/ambiguity.js';
-import { assert, squish } from './utils/index.js';
+import { assert } from './utils';
const typescript = babelParsers['babel-ts'] as Parser;
+const p = new Preprocessor();
-const preprocess: Required>['preprocess'] = (
- text: string,
- options: Options,
-) => {
- let preprocessed: string;
- if (text.includes(TEMPLATE_TAG_PLACEHOLDER)) {
- // This happens when Prettier is being run via eslint + eslint-plugin-ember
- // See https://github.com/ember-cli/eslint-plugin-ember/issues/1659
- options.__inputWasPreprocessed = true;
- preprocessed = text;
- } else {
- options.__inputWasPreprocessed = false;
- preprocessed = preprocessEmbeddedTemplates(text, {
- getTemplateLocals,
-
- templateTag: TEMPLATE_TAG_NAME,
- templateTagReplacement: TEMPLATE_TAG_PLACEHOLDER,
-
- includeSourceMaps: false,
- includeTemplateTokens: false,
-
- relativePath: options.filepath,
- }).output;
- }
-
- return desugarDefaultExportTemplates(preprocessed);
-};
-
-export const parser: Parser = {
- ...typescript,
- astFormat: PRINTER_NAME,
-
- preprocess(text: string, options: Options): string {
- const js = preprocess(text, options);
- return typescript.preprocess?.(js, options) ?? js;
- },
-
- async parse(text: string, options: Options): Promise {
- const ast = await typescript.parse(text, options);
- assert('expected ast', ast);
- traverse(ast, {
- enter: makeEnter(options),
- exit: makeExit(),
- });
- return ast;
- },
-};
-
-function makeEnter(options: Options): (path: NodePath) => void {
- return (path: NodePath) => {
- const node = path.node;
- const parentNode = path.parentPath?.node;
-
- if (
- parentNode &&
- 'property' in parentNode &&
- isRawGlimmerCallExpression(parentNode.property)
- ) {
- throw new SyntaxError('Ember tag used as an object property.');
- } else if (
- isBinaryExpression(node) &&
- (hasRawGlimmerArrayExpression(node.left) ||
- hasRawGlimmerArrayExpression(node.right))
- ) {
- throw new SyntaxError('Ember tag used in binary expression.');
- } else if (
- isTaggedTemplateExpression(node) &&
- hasRawGlimmerArrayExpression(node.tag)
- ) {
- throw new SyntaxError(
- 'Ember tag used as tagged template expression.',
- );
- } else if (
- isMemberExpression(node) &&
- hasRawGlimmerArrayExpression(node.object)
- ) {
- throw new SyntaxError('Ember tag used as member expression.');
- }
+interface Path {
+ node: Node;
+ parent: Node | null;
+ parentKey: string | null;
+ parentPath: Path | null;
+}
- if (isRawGlimmerArrayExpression(node)) {
- tagGlimmerExpression(node, hasAmbiguousNextLine(path, options));
- tagGlimmerTemplate(node.elements[0].arguments[0]);
- } else if (isRawGlimmerClassProperty(node)) {
- tagGlimmerExpression(node, hasAmbiguousNextLine(path, options));
- tagGlimmerTemplate(node.key.arguments[0]);
- }
+export interface TemplateNode {
+ type: 'FunctionDeclaration';
+ leadingComments: Comment[];
+ range: [number, number];
+ start: number;
+ end: number;
+ extra: {
+ isGlimmerTemplate: boolean;
+ isDefaultTemplate: boolean;
+ isAssignment: boolean;
+ isAlreadyExportDefault: boolean;
+ template: string;
};
}
-function makeExit(): (path: NodePath) => void {
- return ({ node }: NodePath) => {
- if (
- isGlimmerExportDefaultDeclaration(node) ||
- isGlimmerExportDefaultDeclarationTS(node) ||
- isGlimmerClassProperty(node)
- ) {
- getGlimmerExpression(node).extra.isDefaultTemplate = true;
- }
- };
+interface PreprocessedResult {
+ templateVisitorKeys: Record;
+ templateInfos: {
+ /** Range of the template including tags */
+ templateRange: [number, number];
+ /** Range of the template content, excluding tags */
+ range: [number, number];
+ ast: TemplateNode | undefined;
+ }[];
}
-function tagGlimmerExpression(
- node: RawGlimmerArrayExpression | RawGlimmerClassProperty,
- forceSemi: boolean,
+/** Traverses the AST and replaces the transformed template parts with other AST */
+function convertAst(
+ result: { ast: Node; code: string },
+ preprocessedResult: PreprocessedResult,
): void {
- const extra: GlimmerExpressionExtra = {
- isGlimmerTemplate: true,
- forceSemi,
- };
- node.extra =
- typeof node.extra === 'object' ? { ...node.extra, ...extra } : extra;
+ const templateInfos = preprocessedResult.templateInfos;
+ let counter = 0;
+
+ traverse(result.ast, {
+ enter(path: Path) {
+ const node = path.node;
+ if (
+ node.type === 'ObjectExpression' ||
+ node.type === 'BlockStatement' ||
+ node.type === 'StaticBlock'
+ ) {
+ const range = node.range as [number, number];
+
+ const template = templateInfos.find(
+ (t) =>
+ (t.templateRange[0] === range[0] &&
+ t.templateRange[1] === range[1]) ||
+ (t.templateRange[0] === range[0] - 1 &&
+ t.templateRange[1] === range[1] + 1) ||
+ (t.templateRange[0] === range[0] &&
+ t.templateRange[1] === range[1] + 1),
+ );
+
+ if (!template) {
+ return null;
+ }
+ counter++;
+ const ast = template.ast as TemplateNode;
+ ast.extra.isAlreadyExportDefault =
+ path.parent?.type === 'ExportDefaultDeclaration' ||
+ path.parentPath?.parent?.type === 'ExportDefaultDeclaration';
+ ast.extra.isDefaultTemplate =
+ path.parent?.type === 'ExportDefaultDeclaration' ||
+ path.parent?.type === 'Program' ||
+ (path.parent?.type === 'ExpressionStatement' &&
+ path.parentPath?.parent?.type === 'Program') ||
+ (path.parent?.type === 'TSAsExpression' &&
+ path.parentPath?.parentPath?.parent?.type === 'Program') ||
+ path.parentPath?.parent?.type === 'ExportDefaultDeclaration';
+
+ ast.extra.isAssignment =
+ !ast.extra.isDefaultTemplate && node.type !== 'StaticBlock';
+
+ ast.leadingComments = node.leadingComments as Comment[];
+ Object.assign(node, ast);
+ }
+ return null;
+ },
+ });
+
+ if (counter !== templateInfos.length) {
+ throw new Error('failed to process all templates');
+ }
}
-function tagGlimmerTemplate(node: TemplateLiteral): void {
- const extra: GlimmerTemplateExtra = {
- isGlimmerTemplate: true,
- };
- node.extra =
- typeof node.extra === 'object' ? { ...node.extra, ...extra } : extra;
+interface Info {
+ output: string;
+ templateInfos: {
+ type: 'expression' | 'class-member';
+ tagName: 'template';
+ contents: string;
+ range: {
+ start: number;
+ end: number;
+ };
+ contentRange: {
+ start: number;
+ end: number;
+ };
+ startRange: {
+ end: number;
+ start: number;
+ };
+ endRange: {
+ start: number;
+ end: number;
+ };
+ }[];
}
/**
- * Desugar template tag default exports because they parse as
- * ExpressionStatement, which has a bunch of irrelevant custom semicolon
- * handling in Prettier that is very difficult to undo. We can optionally
- * re-sugar on print. See `templateExportDefault` option.
- *
- * HACK: An attempt was made to do this via babel transforms but it destroyed
- * Prettier's newline preservation logic.
+ * Preprocesses the template info, parsing the template content to Glimmer AST,
+ * fixing the offsets and locations of all nodes also calculates the block
+ * params locations & ranges and adding it to the info
*/
-function desugarDefaultExportTemplates(preprocessed: string): string {
- const placeholderOpen = `[${TEMPLATE_TAG_PLACEHOLDER}`; // intentionally missing ]
-
- // (^|;)\s*(\()?\s*\[__GLIMMER_TEMPLATE
- const sugaredDefaultExport = new RegExp(
- `(^|;)\\s*(\\()?\\s*\\${placeholderOpen}`,
- );
- const desugaredDefaultExport = `$1 export default $2${placeholderOpen}`;
-
- const lines = preprocessed.split(/\r?\n/);
- const desugaredLines: string[] = [];
- let previousLine = '';
- let blockLevel = 0;
-
- for (let line of lines) {
- // HACK: This is pretty fragile as it will increment for, e.g., "{" which
- // doesn't actually increment the block level IRL
- const inc = (line.match(/{/g) ?? []).length;
- blockLevel += inc;
-
- const dec = (line.match(/}/g) ?? []).length;
- blockLevel -= dec;
-
- let squished = squish(line);
-
- if (
- !squished.endsWith('// prettier-ignore') &&
- !squished.endsWith('/* prettier-ignore */') &&
- previousLine !== '// prettier-ignore' &&
- previousLine !== '/* prettier-ignore */' &&
- !previousLine.endsWith('=') &&
- blockLevel === 0
- ) {
- line = line.replace(sugaredDefaultExport, desugaredDefaultExport);
- squished = squish(line);
- }
+function preprocessGlimmerTemplates(
+ info: Info,
+ code: string,
+): PreprocessedResult {
+ const templateInfos = info.templateInfos.map((r) => ({
+ range: [r.contentRange.start, r.contentRange.end] as [number, number],
+ templateRange: [r.range.start, r.range.end] as [number, number],
+ ast: undefined as undefined | TemplateNode,
+ }));
+ const templateVisitorKeys = {};
+ for (const tpl of templateInfos) {
+ const range = tpl.range;
+ const template = code.slice(...range);
+ const ast: TemplateNode = {
+ type: 'FunctionDeclaration',
+ leadingComments: [],
+ range: [tpl.templateRange[0], tpl.templateRange[1]],
+ start: tpl.templateRange[0],
+ end: tpl.templateRange[1],
+ extra: {
+ isGlimmerTemplate: true,
+ isDefaultTemplate: false,
+ isAssignment: false,
+ isAlreadyExportDefault: false,
+ template,
+ },
+ };
+ tpl.ast = ast;
+ }
+ return {
+ templateVisitorKeys,
+ templateInfos,
+ };
+}
- desugaredLines.push(line);
+function replaceRange(
+ s: string,
+ start: number,
+ end: number,
+ substitute: string,
+): string {
+ return s.slice(0, start) + substitute + s.slice(end);
+}
- if (squished.length > 0) {
- previousLine = squished;
+function transformForPrettier(code: string): Info {
+ let jsCode = code;
+ const result = p.parse(code) as Info['templateInfos'];
+ for (const tplInfo of result.reverse()) {
+ const lineBreaks = [...tplInfo.contents].reduce(
+ (previous, current) => previous + (current === '\n' ? 1 : 0),
+ 0,
+ );
+ if (tplInfo.type === 'class-member') {
+ const tplLength = tplInfo.range.end - tplInfo.range.start;
+ const spaces = tplLength - 'static{`'.length - '`}'.length - lineBreaks;
+ const total = ' '.repeat(spaces) + '\n'.repeat(lineBreaks);
+ const replacementCode = `static{\`${total}\`}`;
+ jsCode = replaceRange(
+ jsCode,
+ tplInfo.range.start,
+ tplInfo.range.end,
+ replacementCode,
+ );
+ } else {
+ const tplLength = tplInfo.range.end - tplInfo.range.start;
+ const nextWord = code.slice(tplInfo.range.end).match(/\S+/);
+ let prefix = '{';
+ let suffix = '}';
+ if (nextWord && nextWord[0] === 'as') {
+ prefix = '(' + prefix;
+ suffix = suffix + ')';
+ } else if (!nextWord || ![',', ')'].includes(nextWord[0][0] || '')) {
+ suffix += ';';
+ }
+ const spaces = tplLength - prefix.length - suffix.length - lineBreaks;
+ const total = ' '.repeat(spaces) + '\n'.repeat(lineBreaks);
+ const replacementCode = `${prefix}${total}${suffix}`;
+ jsCode = replaceRange(
+ jsCode,
+ tplInfo.range.start,
+ tplInfo.range.end,
+ replacementCode,
+ );
}
}
-
- return desugaredLines.join('\r\n');
+ return {
+ templateInfos: result,
+ output: jsCode,
+ };
}
+
+export const parser: Parser = {
+ ...typescript,
+ astFormat: PRINTER_NAME,
+
+ preprocess(text: string): string {
+ return text;
+ },
+
+ async parse(code: string, options: Options): Promise {
+ const info = transformForPrettier(code);
+ const ast = await typescript.parse(info.output, options);
+ const preprocessedResult = preprocessGlimmerTemplates(info, code);
+ assert('expected ast', ast);
+ convertAst({ ast, code }, preprocessedResult);
+ return ast;
+ },
+};
diff --git a/src/print/index.ts b/src/print/index.ts
index 3a14c297..46f42d76 100644
--- a/src/print/index.ts
+++ b/src/print/index.ts
@@ -1,40 +1,103 @@
import type { Node } from '@babel/types';
-import type {
- AstPath,
- doc,
- Options as PrettierOptions,
- Printer,
-} from 'prettier';
+import type { doc, Options as PrettierOptions, Printer } from 'prettier';
+import type { AstPath } from 'prettier';
import { printers as estreePrinters } from 'prettier/plugins/estree.js';
-import {
- TEMPLATE_TAG_CLOSE,
- TEMPLATE_TAG_OPEN,
- TEMPLATE_TAG_PLACEHOLDER,
-} from '../config';
import type { Options } from '../options.js';
-import {
- getGlimmerExpression,
- isGlimmerArrayExpression,
- isGlimmerClassProperty,
- isGlimmerExportDefaultDeclaration,
- isGlimmerExportDefaultDeclarationTS,
- isGlimmerExpressionStatement,
- isGlimmerExpressionStatementTS,
- isGlimmerTemplateLiteral,
-} from '../types/glimmer';
-import { assert } from '../utils/index.js';
-import {
- printTemplateContent,
- printTemplateLiteral,
- printTemplateTag,
-} from './template';
+import type { TemplateNode } from '../parse';
+import { assert } from '../utils';
+import { printTemplateContent, printTemplateTag } from './template';
const estreePrinter = estreePrinters['estree'] as Printer;
+function getGlimmerExpression(node: Node | undefined): Node | null {
+ if (!node) return null;
+ if (node.extra?.['isGlimmerTemplate']) {
+ return node;
+ }
+ if (
+ node.type === 'ExportDefaultDeclaration' &&
+ node.declaration.extra?.['isGlimmerTemplate']
+ ) {
+ return node.declaration;
+ }
+ if (
+ node.type === 'ExportDefaultDeclaration' &&
+ node.declaration.type === 'TSAsExpression' &&
+ node.declaration.expression.extra?.['isGlimmerTemplate']
+ ) {
+ return node.declaration.expression;
+ }
+ return null;
+}
+
+function flattenDoc(doc: doc.builders.Doc): string[] {
+ const array = (doc as unknown as doc.builders.Group).contents || doc;
+ if (!Array.isArray(array)) return array as unknown as string[];
+ return array.flatMap((x) =>
+ (x as doc.builders.Group).contents
+ ? flattenDoc((x as doc.builders.Group).contents)
+ : Array.isArray(x)
+ ? flattenDoc(x)
+ : x,
+ ) as string[];
+}
+
+/**
+ * Search next non EmptyStatement node and set current print, so we can fix it
+ * later if its ambiguous
+ */
+function saveCurrentPrintOnSiblingNode(
+ path: AstPath,
+ printed: doc.builders.Doc,
+): void {
+ const { index, siblings } = path;
+ if (index !== null) {
+ const nextNode = siblings
+ ?.slice(index + 1)
+ .find((n) => n?.type !== 'EmptyStatement');
+ if (nextNode) {
+ nextNode.extra = nextNode.extra || {};
+ nextNode.extra['prevTemplatePrinted'] = printed;
+ }
+ }
+}
+
+function fixPreviousPrint(
+ path: AstPath,
+ options: Options,
+ print: (path: AstPath) => doc.builders.Doc,
+ args: unknown,
+): void {
+ const printedSemiFalse = estreePrinter.print(
+ path,
+ { ...options, semi: false },
+ print,
+ args,
+ );
+ const flat = flattenDoc(printedSemiFalse);
+ const previousTemplatePrinted = path.node?.extra?.[
+ 'prevTemplatePrinted'
+ ] as string[];
+ const previousFlat = flattenDoc(previousTemplatePrinted);
+ if (flat[0]?.startsWith(';') && previousFlat.at(-1) !== ';') {
+ previousTemplatePrinted.push(';');
+ }
+}
+
export const printer: Printer = {
...estreePrinter,
+ getVisitorKeys(node, nonTraversableKeys) {
+ if (node === undefined) {
+ return [];
+ }
+ if (node.extra?.['isGlimmerTemplate']) {
+ return [];
+ }
+ return estreePrinter.getVisitorKeys?.(node, nonTraversableKeys) || [];
+ },
+
print(
path: AstPath,
options: Options,
@@ -43,14 +106,7 @@ export const printer: Printer = {
) {
const { node } = path;
const hasPrettierIgnore = checkPrettierIgnore(path);
-
- if (
- isGlimmerClassProperty(node) ||
- isGlimmerExportDefaultDeclaration(node) ||
- isGlimmerExportDefaultDeclarationTS(node) ||
- isGlimmerExpressionStatement(node) ||
- isGlimmerExpressionStatementTS(node)
- ) {
+ if (getGlimmerExpression(node)) {
if (hasPrettierIgnore) {
return printRawText(path, options);
} else {
@@ -66,29 +122,26 @@ export const printer: Printer = {
printed = printed.slice(2);
trimPrinted(printed);
}
-
- if (options.semi && getGlimmerExpression(node).extra.forceSemi) {
- // We only need to push the semi-colon in semi: true mode because
- // in semi: false mode, the ambiguous statement will get a prefixing
- // semicolon
- printed.push(';');
- }
-
+ saveCurrentPrintOnSiblingNode(path, printed);
return printed;
}
- } else if (hasPrettierIgnore) {
- return printRawText(path, options);
- } else {
- return estreePrinter.print(path, options, print, args);
}
+
+ if (options.semi && node?.extra?.['prevTemplatePrinted']) {
+ fixPreviousPrint(path, options, print, args);
+ }
+
+ return hasPrettierIgnore
+ ? printRawText(path, options)
+ : estreePrinter.print(path, options, print, args);
},
/** Prints embedded GlimmerExpressions/GlimmerTemplates. */
embed(path: AstPath, embedOptions: PrettierOptions) {
const { node } = path;
- const wasPreprocessed = (embedOptions as Options).__inputWasPreprocessed;
const hasPrettierIgnore = checkPrettierIgnore(path);
+ const options = { ...embedOptions } as Options;
if (hasPrettierIgnore) {
return printRawText(path, embedOptions as Options);
@@ -96,37 +149,41 @@ export const printer: Printer = {
return async (textToDoc) => {
try {
- if (wasPreprocessed && isGlimmerTemplateLiteral(node)) {
- const content = await printTemplateContent(
- node,
- textToDoc,
- embedOptions as Options,
- );
- return printTemplateLiteral(content);
- } else if (!wasPreprocessed && isGlimmerClassProperty(node)) {
- const content = await printTemplateContent(
- node.key.arguments[0],
- textToDoc,
- embedOptions as Options,
- );
- return printTemplateTag(
- content,
- node.extra.isDefaultTemplate ?? false,
- );
- } else if (!wasPreprocessed && isGlimmerArrayExpression(node)) {
- const content = await printTemplateContent(
- node.elements[0].arguments[0],
- textToDoc,
- embedOptions as Options,
- );
- return printTemplateTag(
- content,
- node.extra.isDefaultTemplate ?? false,
- );
+ if (node?.extra?.['isGlimmerTemplate'] && node.extra['template']) {
+ let content = null;
+ let raw = false;
+ try {
+ content = await printTemplateContent(
+ node.extra['template'] as string,
+ textToDoc,
+ embedOptions as Options,
+ );
+ } catch {
+ content = node.extra['template'] as string;
+ raw = true;
+ }
+ const extra = node.extra as TemplateNode['extra'];
+ const { isDefaultTemplate, isAssignment, isAlreadyExportDefault } =
+ extra;
+ const useHardline = !isAssignment || isDefaultTemplate || false;
+ const shouldExportDefault =
+ (!isAlreadyExportDefault &&
+ isDefaultTemplate &&
+ options.templateExportDefault) ||
+ false;
+ const printed = printTemplateTag(content, {
+ exportDefault: shouldExportDefault,
+ useHardline,
+ raw,
+ });
+ saveCurrentPrintOnSiblingNode(path, printed);
+ return printed;
}
- } catch (error: unknown) {
- console.error(error);
- return printRawText(path, embedOptions as Options);
+ } catch (error) {
+ console.log(error);
+ const printed = [printRawText(path, embedOptions as Options)];
+ saveCurrentPrintOnSiblingNode(path, printed);
+ return printed;
}
// Nothing to embed, so move on to the regular printer.
@@ -147,19 +204,9 @@ export const printer: Printer = {
* them.
*/
function trimPrinted(printed: doc.builders.Doc[]): void {
- while (
- docMatchesString(printed[0], ';') ||
- docMatchesString(printed[0], '')
- ) {
+ while (docMatchesString(printed[0], '')) {
printed.shift();
}
-
- while (
- docMatchesString(printed.at(-1), ';') ||
- docMatchesString(printed.at(-1), '')
- ) {
- printed.pop();
- }
}
function printRawText(
@@ -169,17 +216,9 @@ function printRawText(
if (!node) {
return '';
}
- assert('expected start', node.start);
- assert('expected end', node.end);
- let raw = options.originalText.slice(node.start, node.end);
-
- if (!options.__inputWasPreprocessed) {
- // HACK: We don't have access to the original raw text :-(
- raw = raw.replaceAll(`[${TEMPLATE_TAG_PLACEHOLDER}(\``, TEMPLATE_TAG_OPEN);
- raw = raw.replaceAll('`, { strictMode: true })]', TEMPLATE_TAG_CLOSE);
- }
-
- return raw;
+ assert('expected start', typeof node.start == 'number');
+ assert('expected end', typeof node.end == 'number');
+ return options.originalText.slice(node.start, node.end);
}
function hasPrettierIgnore(path: AstPath): boolean {
diff --git a/src/print/template.ts b/src/print/template.ts
index 6692a7f6..5f3d54b9 100644
--- a/src/print/template.ts
+++ b/src/print/template.ts
@@ -1,4 +1,3 @@
-import type { TemplateLiteral } from '@babel/types';
import type { Options as PrettierOptions } from 'prettier';
import { doc } from 'prettier';
@@ -17,7 +16,7 @@ const {
* NOTE: The contents are not surrounded with "`"
*/
export async function printTemplateContent(
- node: TemplateLiteral,
+ text: string,
textToDoc: (
text: string,
// Don't use our `Options` here even though technically they are available
@@ -27,7 +26,6 @@ export async function printTemplateContent(
) => Promise,
options: Options,
): Promise {
- const text = node.quasis.map((quasi) => quasi.value.raw).join(' ');
return await textToDoc(text.trim(), {
...options,
parser: 'glimmer',
@@ -46,15 +44,23 @@ export async function printTemplateContent(
*/
export function printTemplateTag(
content: doc.builders.Doc,
- useHardline: boolean,
+ options: {
+ exportDefault: boolean;
+ useHardline: boolean;
+ raw: boolean;
+ },
): doc.builders.Doc {
- const line = useHardline ? hardline : softline;
- return group([
+ const line = options.raw ? '' : options.useHardline ? hardline : softline;
+ const doc = [
TEMPLATE_TAG_OPEN,
indent([line, group(content)]),
line,
TEMPLATE_TAG_CLOSE,
- ]);
+ ];
+ if (options.exportDefault) {
+ doc.splice(0, 0, 'export default ');
+ }
+ return [group(doc)];
}
/** Prints the given template content as a template literal. */
diff --git a/src/types/glimmer.ts b/src/types/glimmer.ts
deleted file mode 100644
index 0c82c6ae..00000000
--- a/src/types/glimmer.ts
+++ /dev/null
@@ -1,225 +0,0 @@
-import type {
- ExportDefaultDeclaration,
- ExpressionStatement,
- Node,
- TemplateLiteral,
- TSAsExpression,
-} from '@babel/types';
-import {
- isArrayExpression,
- isClassProperty,
- isExportDefaultDeclaration,
- isExpressionStatement,
- isNode,
- isTemplateLiteral,
- isTSAsExpression,
-} from '@babel/types';
-
-import type {
- RawGlimmerArrayExpression,
- RawGlimmerClassProperty,
-} from './raw.js';
-
-/**
- * A Template Literal with a tag indicating that it is actually a Glimmer
- * Template
- */
-export interface GlimmerTemplateLiteral extends TemplateLiteral {
- extra: GlimmerTemplateExtra;
-}
-
-export interface GlimmerTemplateExtra {
- isGlimmerTemplate: true;
- [key: string]: unknown;
-}
-
-/** Type predicate */
-export function isGlimmerTemplateLiteral(
- node: Node | null | undefined,
-): node is GlimmerTemplateLiteral {
- return isTemplateLiteral(node) && node.extra?.['isGlimmerTemplate'] === true;
-}
-
-export interface GlimmerExpressionExtra {
- forceSemi: boolean;
- isGlimmerTemplate: true;
- isDefaultTemplate?: boolean;
- [key: string]: unknown;
-}
-
-export type GlimmerExpression = GlimmerArrayExpression | GlimmerClassProperty;
-
-/** Type predicate */
-export function isGlimmerExpression(
- node: Node | null | undefined,
-): node is GlimmerExpression {
- return node?.extra?.['isGlimmerTemplate'] === true;
-}
-
-export interface GlimmerArrayExpression extends RawGlimmerArrayExpression {
- extra: GlimmerExpressionExtra;
-}
-
-/** Type predicate */
-export function isGlimmerArrayExpression(
- node: Node | null | undefined,
-): node is GlimmerArrayExpression {
- return isArrayExpression(node) && isGlimmerExpression(node);
-}
-
-export interface GlimmerClassProperty extends RawGlimmerClassProperty {
- extra: GlimmerExpressionExtra;
-}
-
-/** Type predicate */
-export function isGlimmerClassProperty(
- node: Node | null | undefined,
-): node is GlimmerClassProperty {
- return isClassProperty(node) && isGlimmerExpression(node);
-}
-
-/**
- * @example
- *
- * ```gts
- * export default hello;
- * ```
- */
-export interface GlimmerExportDefaultDeclaration
- extends Omit {
- declaration: GlimmerExpression;
-}
-
-/** Type predicate */
-export function isGlimmerExportDefaultDeclaration(
- node: unknown,
-): node is GlimmerExportDefaultDeclaration {
- return (
- isNode(node) &&
- isExportDefaultDeclaration(node) &&
- isGlimmerExpression(node.declaration)
- );
-}
-
-/**
- * @example
- *
- * ```gts
- * export default hello as Component
- * ```
- */
-export interface GlimmerExportDefaultDeclarationTS
- extends Omit {
- declaration: GlimmerTSAsExpression;
-}
-
-/** Type predicate */
-export function isGlimmerExportDefaultDeclarationTS(
- node: unknown,
-): node is GlimmerExportDefaultDeclarationTS {
- return (
- isNode(node) &&
- isExportDefaultDeclaration(node) &&
- isGlimmerTSAsExpression(node.declaration)
- );
-}
-
-/**
- * This is the TypeScript `as` expression used in many of the other TS nodes,
- *
- * @example
- *
- * ```ts
- * export default Hello as Component
- * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- * ```
- */
-export interface GlimmerTSAsExpression
- extends Omit {
- expression: GlimmerExpression;
-}
-
-/** Type predicate */
-export function isGlimmerTSAsExpression(
- node: unknown,
-): node is GlimmerTSAsExpression {
- return (
- isNode(node) &&
- isTSAsExpression(node) &&
- isGlimmerExpression(node.expression)
- );
-}
-
-/**
- * @example
- *
- * ```gts
- * hello;
- * ```
- */
-export interface GlimmerExpressionStatement
- extends Omit {
- expression: GlimmerExpression;
-}
-
-/** Type predicate */
-export function isGlimmerExpressionStatement(
- node: unknown,
-): node is GlimmerExpressionStatement {
- return (
- isNode(node) &&
- isExpressionStatement(node) &&
- isGlimmerExpression(node.expression)
- );
-}
-
-/**
- * @example
- *
- * ```gts
- * hello as Component
- * ```
- */
-export interface GlimmerExpressionStatementTS
- extends Omit {
- expression: GlimmerTSAsExpression;
-}
-
-/** Type predicate */
-export function isGlimmerExpressionStatementTS(
- node: unknown,
-): node is GlimmerExpressionStatementTS {
- return (
- isNode(node) &&
- isExpressionStatement(node) &&
- isGlimmerTSAsExpression(node.expression)
- );
-}
-
-/** Returns the `GlimmerExpression` within the given `path`. */
-export function getGlimmerExpression(
- node:
- | GlimmerExportDefaultDeclaration
- | GlimmerExportDefaultDeclarationTS
- | GlimmerExpressionStatement
- | GlimmerExpressionStatementTS
- | GlimmerClassProperty
- | GlimmerArrayExpression,
-): GlimmerExpression {
- switch (node.type) {
- case 'ExportDefaultDeclaration': {
- return 'expression' in node.declaration
- ? node.declaration.expression
- : node.declaration;
- }
- case 'ExpressionStatement': {
- return 'expression' in node.expression
- ? node.expression.expression
- : node.expression;
- }
- case 'ClassProperty':
- case 'ArrayExpression': {
- return node;
- }
- }
-}
diff --git a/src/types/prettier.ts b/src/types/prettier.ts
deleted file mode 100644
index d5b85fa6..00000000
--- a/src/types/prettier.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import type { doc } from 'prettier';
-
-import { isRecord } from '../utils/index.js';
-
-/** Type predicate */
-export function isDocGroup(value: unknown): value is doc.builders.Group {
- return isRecord(value) && value['type'] === 'group';
-}
diff --git a/src/types/raw.ts b/src/types/raw.ts
deleted file mode 100644
index 1443b0da..00000000
--- a/src/types/raw.ts
+++ /dev/null
@@ -1,133 +0,0 @@
-import type {
- ArrayExpression,
- CallExpression,
- ClassProperty,
- Identifier,
- Node,
- TemplateLiteral,
-} from '@babel/types';
-import {
- isArrayExpression,
- isCallExpression,
- isClassProperty,
- isIdentifier,
- isNode,
- isTemplateLiteral,
-} from '@babel/types';
-
-import { TEMPLATE_TAG_PLACEHOLDER } from '../config.js';
-
-/**
- * Before preprocess: n/a
- *
- * After preprocess: The array expression is the `[__GLIMMER_TEMPLATE(...)]`
- * portion of many of the raw top-level nodes (except `GlimmerClassProperty`).
- */
-export interface RawGlimmerArrayExpression extends ArrayExpression {
- type: 'ArrayExpression';
- elements: [RawGlimmerCallExpression];
-}
-
-/** Type predicate */
-export function isRawGlimmerArrayExpression(
- value: Node | null | undefined,
-): value is RawGlimmerArrayExpression {
- return (
- isArrayExpression(value) && isRawGlimmerCallExpression(value.elements[0])
- );
-}
-
-/**
- * Before preprocess:
- *
- * @example
- *
- * ```gts
- * class MyComponent {
- * hello
- * }
- *
- * class MyComponent extends Component {
- * hello
- * }
- * ```
- *
- * After preprocess:
- *
- * @example
- *
- * ```ts
- * class MyComponent {
- * // Note, this is NOT an array! This is a computed property name
- * [__GLIMMER_TEMPLATE(...)]
- * }
- *
- * class MyComponent extends Component {
- * // Note, this is NOT an array! This is a computed property name
- * [__GLIMMER_TEMPLATE(...)]
- * }
- * ```
- */
-export interface RawGlimmerClassProperty extends ClassProperty {
- key: RawGlimmerCallExpression;
- value: null;
-}
-
-/** Type predicate */
-export function isRawGlimmerClassProperty(
- value: Node | null | undefined,
-): value is RawGlimmerClassProperty {
- return isClassProperty(value) && isRawGlimmerCallExpression(value.key);
-}
-
-/**
- * Before preprocess: n/a
- *
- * After preprocess:
- *
- * ```ts
- * __GLIMMER_TEMPLATE(...)
- * ```
- */
-export interface RawGlimmerCallExpression extends CallExpression {
- callee: RawGlimmerIdentifier;
- arguments: [TemplateLiteral];
-}
-
-/** Type predicate */
-export function isRawGlimmerCallExpression(
- value: Node | null | undefined,
-): value is RawGlimmerCallExpression {
- return (
- isCallExpression(value) &&
- isIdentifier(value.callee) &&
- value.callee.name === TEMPLATE_TAG_PLACEHOLDER &&
- Array.isArray(value.arguments) &&
- isTemplateLiteral(value.arguments[0])
- );
-}
-
-/**
- * Before preprocess: n/a
- *
- * After preprocess, this is the Identifier portion of the
- * `GlimmerCallExpression`:
- *
- * ```ts
- * __GLIMMER_TEMPLATE(...)
- * ^^^^^^^^^^^^^^^^^^
- * ```
- */
-interface RawGlimmerIdentifier extends Identifier {
- name: typeof TEMPLATE_TAG_PLACEHOLDER; // This is just `string` so not SUPER useful, just documentation
-}
-
-/** Recursively checks if the node has a Glimmer Array Expression. */
-export function hasRawGlimmerArrayExpression(node: Node): boolean {
- return (
- isRawGlimmerArrayExpression(node) ||
- ('expression' in node &&
- isNode(node.expression) &&
- hasRawGlimmerArrayExpression(node.expression))
- );
-}
diff --git a/src/utils/ambiguity.ts b/src/utils/ambiguity.ts
deleted file mode 100644
index 21a4ab87..00000000
--- a/src/utils/ambiguity.ts
+++ /dev/null
@@ -1,103 +0,0 @@
-import type { NodePath } from '@babel/core';
-import type { Node } from '@babel/types';
-import {
- isArrayExpression,
- isArrowFunctionExpression,
- isParenthesizedExpression,
- isRegExpLiteral,
- isUnaryExpression,
-} from '@babel/types';
-
-import type { Options } from '../options.js';
-import {
- isGlimmerExportDefaultDeclaration,
- isGlimmerExportDefaultDeclarationTS,
- isGlimmerExpression,
- isGlimmerTSAsExpression,
-} from '../types/glimmer';
-
-/**
- * Checks if the next expression will start with (, [, `, /, +, -
- *
- * HACK: In a perfect world, we'd just print the next line and check the
- * beginning to see if our embedded Glimmer Expression needs a semicolon.
- * Unfortunately, this seems impossible with Prettier's current architecture.
- *
- * Thus, we're checking to see if the next line _should_ start with an ambiguous
- * character based on what we know about Prettier's logic. This is a much
- * simplified version of [Prettier's ASI protection
- * function](https://github.com/prettier/prettier/blob/ca246afacee8e6d5db508dae01730c9523bbff1d/src/language-js/print/statement.js#L89)
- * (which was impossible to use because Prettier doesn't export it or some of
- * the classes necessary to recreate it).
- *
- * If we have bugs re: unnecessary semicolons, this is a great place to look. :)
- */
-export function hasAmbiguousNextLine(
- path: NodePath,
- options: Options,
-): boolean {
- // Note: getNextSibling().node will be undefined if there is no sibling
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
- if (path.getNextSibling().node) {
- // Assumption: It's part of a list and will likely get some disambiguating
- // punctuation
- return false;
- }
-
- const nextLine = getNextLine(path);
-
- return (
- nextLine !== null &&
- (isGlimmerExportDefaultDeclaration(nextLine) ||
- isGlimmerExportDefaultDeclarationTS(nextLine) ||
- ('expression' in nextLine &&
- typeof nextLine.expression === 'object' &&
- isAmbiguousExpression(nextLine.expression, options)))
- );
-}
-
-function getNextLine(path: NodePath): Node | null {
- const parentPath = path.parentPath;
- return parentPath
- ? // Note: getNextSibling().node will be undefined if there is no sibling
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
- parentPath.getNextSibling().node ?? getNextLine(parentPath)
- : null;
-}
-
-function isAmbiguousExpression(expression: Node, options: Options): boolean {
- return (
- isGlimmerExpression(expression) ||
- isGlimmerTSAsExpression(expression) ||
- startsWithParenthesis(expression, options) ||
- startsWithSquareBracket(expression) ||
- startsWithTick(expression) ||
- startsWithPlusOrMinus(expression) ||
- ('expression' in expression &&
- typeof expression.expression === 'object' &&
- isAmbiguousExpression(expression.expression, options))
- );
-}
-
-function startsWithParenthesis(expression: Node, options: Options): boolean {
- return (
- isParenthesizedExpression(expression) ||
- (isArrowFunctionExpression(expression) &&
- (options.arrowParens === 'always' || expression.params.length > 1))
- );
-}
-
-function startsWithSquareBracket(expression: Node): boolean {
- return isArrayExpression(expression);
-}
-
-function startsWithTick(expression: Node): boolean {
- return isRegExpLiteral(expression);
-}
-
-function startsWithPlusOrMinus(expression: Node): boolean {
- return (
- isUnaryExpression(expression) &&
- (expression.operator === '+' || expression.operator === '-')
- );
-}
diff --git a/src/utils/index.ts b/src/utils/index.ts
index 50b9ec61..a2989ac3 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -1,8 +1,3 @@
-/** Checks if the given value is a `Record`. */
-export function isRecord(value: unknown): value is Record {
- return value !== null && typeof value === 'object';
-}
-
/**
* Throws an error if the condition is false.
*
@@ -16,31 +11,3 @@ export function assert(
throw new Error(message);
}
}
-
-/** Asserts that the given item is not undefined. */
-export function assertExists(
- item: T | undefined,
- message = 'assertExists failed',
-): T {
- assert(message, item !== undefined);
- return item;
-}
-
-/**
- * Based on Rails' String#squish
- *
- * @param string String to squish
- * @returns Squished string
- */
-export function squish(string: T): T {
- if (string === null || string === undefined || string === '') {
- return string;
- } else {
- /* eslint-disable unicorn/prefer-string-replace-all */
- return string
- .trim()
- .replace(/\u200B/g, '') // remove zero-width spaces
- .replace(/\s+/g, ' ') as T; // squish multiple spaces into one
- /* eslint-enable unicorn/prefer-string-replace-all */
- }
-}
diff --git a/tests/helpers/ambiguous.ts b/tests/helpers/ambiguous.ts
index f00780d3..1a05cb97 100644
--- a/tests/helpers/ambiguous.ts
+++ b/tests/helpers/ambiguous.ts
@@ -1,3 +1,4 @@
+import { Preprocessor } from 'content-tag';
import { describe, expect, test } from 'vitest';
import type { Options } from '../../src/options.js';
@@ -12,6 +13,8 @@ import type { Config } from './make-suite.js';
*/
export const AMBIGUOUS_PLACEHOLDER = '/*AMBIGUOUS*/';
+const preprocessor = new Preprocessor();
+
const AMBIGUOUS_EXPRESSIONS = [
'(oops) => {}',
'(oh, no) => {}',
@@ -93,10 +96,13 @@ async function behavesLikeFormattedAmbiguousCase(
try {
const result = await format(code, formatOptions);
expect(result).toMatchSnapshot();
+ preprocessor.parse(result);
} catch (error: unknown) {
// Some of the ambiguous cases are Syntax Errors when parsed
const isSyntaxError =
- error instanceof SyntaxError || String(error).startsWith('SyntaxError');
+ error instanceof SyntaxError ||
+ String(error).startsWith('SyntaxError') ||
+ String(error).startsWith('Error: Parse Error');
if (!isSyntaxError) {
throw error;
}
diff --git a/tests/helpers/cases.ts b/tests/helpers/cases.ts
index 6a2555f2..613dd67b 100644
--- a/tests/helpers/cases.ts
+++ b/tests/helpers/cases.ts
@@ -26,7 +26,9 @@ export async function getCases(
} else {
const filename = path.join(directory.toString(), entry.name);
const code = fs.readFileSync(filename, 'utf8');
- const name = path.relative(baseDirectory.toString(), filename);
+ const name = path
+ .relative(baseDirectory.toString(), filename)
+ .replaceAll('\\', '/');
return {
name,
diff --git a/tests/unit-tests/__snapshots__/format.test.ts.snap b/tests/unit-tests/__snapshots__/format.test.ts.snap
index daa8939a..e0d88ee3 100644
--- a/tests/unit-tests/__snapshots__/format.test.ts.snap
+++ b/tests/unit-tests/__snapshots__/format.test.ts.snap
@@ -381,7 +381,7 @@ export interface Signature {
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
"
`;
@@ -753,6 +753,6 @@ export interface Signature {
what
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
"
`;
diff --git a/tests/unit-tests/ambiguous/__snapshots__/arrow-parens-avoid.test.ts.snap b/tests/unit-tests/ambiguous/__snapshots__/arrow-parens-avoid.test.ts.snap
index 5373cc11..3b9549ac 100644
--- a/tests/unit-tests/ambiguous/__snapshots__/arrow-parens-avoid.test.ts.snap
+++ b/tests/unit-tests/ambiguous/__snapshots__/arrow-parens-avoid.test.ts.snap
@@ -745,7 +745,7 @@ export interface Signature {
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
oops => {};
"
`;
@@ -913,7 +913,7 @@ export interface Signature {
what
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
oops => {};
"
`;
@@ -1005,7 +1005,7 @@ export interface Signature {
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
oops => {};
"
`;
@@ -1173,7 +1173,7 @@ export interface Signature {
what
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
oops => {};
"
`;
@@ -1192,7 +1192,7 @@ export interface Signature {
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
oops => {};
"
`;
@@ -1244,7 +1244,7 @@ export interface Signature {
what
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
oops => {};
"
`;
@@ -1262,7 +1262,7 @@ export interface Signature {
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
oops => {};
"
`;
@@ -1311,7 +1311,7 @@ export interface Signature {
what
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
oops => {};
"
`;
diff --git a/tests/unit-tests/ambiguous/__snapshots__/index.test.ts.snap b/tests/unit-tests/ambiguous/__snapshots__/index.test.ts.snap
index 6a1bc150..123cdc7f 100644
--- a/tests/unit-tests/ambiguous/__snapshots__/index.test.ts.snap
+++ b/tests/unit-tests/ambiguous/__snapshots__/index.test.ts.snap
@@ -1836,67 +1836,46 @@ export interface Signature {
"
`;
-exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1 + \\"oops\\";
-"
-`;
-
-exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1 + \\"oops\\";
-"
-`;
-
-exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1 + \\"oops\\";
-"
-`;
-
-exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1 + \\"oops\\";
-"
-`;
-
-exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1;
-/oops/;
+exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1 + \\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
;
-/oops/;
++\\"oops\\";
const What = Hi;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -1905,8 +1884,7 @@ exports[`ambiguous > config > default > /oops/ > with semi, with newline > it fo
,
ModVar2 = Second module variable template.,
- num = 1;
-/oops/;
+ num = 1 + \\"oops\\";
const bool = false,
ModVar3 =
@@ -1917,19 +1895,19 @@ const bool = false,
,
ModVar4 = Second module variable template.;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -1938,17 +1916,16 @@ export interface Signature {
Yields: [];
}
-
+export default (
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent;
-/oops/;
+ as TemplateOnlyComponent) + \\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -1962,11 +1939,11 @@ export const Exported: TemplateOnlyComponent =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -1975,22 +1952,21 @@ export interface Signature {
Yields: [];
}
-export const Exported =
- Exported variable template. Exported variable template. Exported variable
- template. Exported variable template. Exported variable template. Exported
- variable template. Exported variable template.
- as TemplateOnlyComponent;
-/oops/;
+export const Exported =
+ (
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent) + \\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1;
-/oops/;
+exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1 + \\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2004,11 +1980,11 @@ const Private: TemplateOnlyComponent =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2017,16 +1993,16 @@ export interface Signature {
Yields: [];
}
-const Private =
- Private variable template. Private variable template. Private variable
- template. Private variable template. Private variable template. Private
- variable template. Private variable template.
- as TemplateOnlyComponent;
-/oops/;
+const Private =
+ (
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent) + \\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2045,8 +2021,7 @@ const ModVar1: TemplateOnlyComponent =
ModVar2: TemplateOnlyComponent =
Second module variable template.
,
- num = 1;
-/oops/;
+ num = 1 + \\"oops\\";
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -2059,11 +2034,11 @@ const bool: boolean = false,
ModVar4: TemplateOnlyComponent =
Second module variable template.
;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2082,8 +2057,7 @@ const ModVar1 =
ModVar2 =
Second module variable template.
as TemplateOnlyComponent,
- num = 1;
-/oops/;
+ num = 1 + \\"oops\\";
const bool: boolean = false,
ModVar3 =
@@ -2093,14 +2067,14 @@ const bool: boolean = false,
variable template. Module variable template. Module variable template.
as TemplateOnlyComponent,
- ModVar4 =
- Second module variable template.
- as TemplateOnlyComponent;
-/oops/;
+ ModVar4 =
+ (
+ Second module variable template.
+ as TemplateOnlyComponent) + \\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2109,54 +2083,50 @@ export interface Signature {
Yields: [];
}
-
- what
- as TemplateOnlyComponent;
-/oops/;
+(what as TemplateOnlyComponent) + \\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1;
-/oops/;
+exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1 + \\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
;
-/oops/;
++\\"oops\\";
const What = Hi;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -2165,8 +2135,7 @@ exports[`ambiguous > config > default > /oops/ > with semi, without newline > it
,
ModVar2 = Second module variable template.,
- num = 1;
-/oops/;
+ num = 1 + \\"oops\\";
const bool = false,
ModVar3 =
@@ -2177,40 +2146,37 @@ const bool = false,
,
ModVar4 = Second module variable template.;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
Yields: [];
}
-
+export default (
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent;
-/oops/;
+ as TemplateOnlyComponent) + \\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -2222,37 +2188,34 @@ export const Exported: TemplateOnlyComponent =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
Yields: [];
}
-export const Exported =
- Exported variable template. Exported variable template. Exported variable
- template. Exported variable template. Exported variable template. Exported
- variable template. Exported variable template.
- as TemplateOnlyComponent;
-/oops/;
+export const Exported =
+ (
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent) + \\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1;
-/oops/;
+exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1 + \\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -2264,31 +2227,29 @@ const Private: TemplateOnlyComponent =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
Yields: [];
}
-const Private =
- Private variable template. Private variable template. Private variable
- template. Private variable template. Private variable template. Private
- variable template. Private variable template.
- as TemplateOnlyComponent;
-/oops/;
+const Private =
+ (
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent) + \\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -2305,8 +2266,7 @@ const ModVar1: TemplateOnlyComponent =
ModVar2: TemplateOnlyComponent =
Second module variable template.
,
- num = 1;
-/oops/;
+ num = 1 + \\"oops\\";
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -2319,13 +2279,12 @@ const bool: boolean = false,
ModVar4: TemplateOnlyComponent =
Second module variable template.
;
-/oops/;
++\\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -2342,8 +2301,7 @@ const ModVar1 =
ModVar2 =
Second module variable template.
as TemplateOnlyComponent,
- num = 1;
-/oops/;
+ num = 1 + \\"oops\\";
const bool: boolean = false,
ModVar3 =
@@ -2353,118 +2311,66 @@ const bool: boolean = false,
variable template. Module variable template. Module variable template.
as TemplateOnlyComponent,
- ModVar4 =
- Second module variable template.
- as TemplateOnlyComponent;
-/oops/;
+ ModVar4 =
+ (
+ Second module variable template.
+ as TemplateOnlyComponent) + \\"oops\\";
"
`;
-exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > +"oops" > without semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
Yields: [];
}
-
- what
- as TemplateOnlyComponent;
-/oops/;
-"
-`;
-
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
-"import Component from \\"@glimmer/component\\";
-
-/** It's a component */
-class MyComponent extends Component {
-
-
- Class top level template. Class top level template. Class top level
- template. Class top level template. Class top level template.
-
-
-
- oops
-
-}
-"
-`;
-
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
-"import Component from \\"@glimmer/component\\";
-
-/** It's a component */
-class MyComponent extends Component {
- get whatever() {}
-
-
-
- Class top level template. Class top level template. Class top level
- template. Class top level template. Class top level template.
-
-
-
- oops
-
-}
+(what as TemplateOnlyComponent) + \\"oops\\";
"
`;
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
-
-
- oops
-
+;
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
"const num = 1;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
;
-
- oops
-
+/oops/;
const What = Hi;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -2474,9 +2380,7 @@ exports[`ambiguous > config > default > oops > with semi, w
,
ModVar2 = Second module variable template.,
num = 1;
-
- oops
-
+/oops/;
const bool = false,
ModVar3 =
@@ -2487,49 +2391,19 @@ const bool = false,
,
ModVar4 = Second module variable template.;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
-
-
- oops
-
+;
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
-"import Component from \\"@glimmer/component\\";
-
-export interface Signature {
- Element: HTMLElement;
- Args: {
- myArg: string;
- };
- Yields: [];
-}
-
-/** It's a component */
-class MyComponent extends Component {
-
-
- Class top level template. Class top level template. Class top level
- template. Class top level template. Class top level template.
-
-
-
- oops
-
-}
-"
-`;
-
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2543,14 +2417,12 @@ export interface Signature {
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
-
- oops
-
+ as TemplateOnlyComponent;
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2564,13 +2436,11 @@ export const Exported: TemplateOnlyComponent =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2584,21 +2454,17 @@ export const Exported =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
as TemplateOnlyComponent;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
"const num: number = 1;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2612,13 +2478,11 @@ const Private: TemplateOnlyComponent =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2632,13 +2496,11 @@ const Private =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
as TemplateOnlyComponent;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2658,9 +2520,7 @@ const ModVar1: TemplateOnlyComponent =
Second module variable template.
,
num = 1;
-
- oops
-
+/oops/;
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -2673,13 +2533,11 @@ const bool: boolean = false,
ModVar4: TemplateOnlyComponent =
Second module variable template.
;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2699,9 +2557,7 @@ const ModVar1 =
Second module variable template.
as TemplateOnlyComponent,
num = 1;
-
- oops
-
+/oops/;
const bool: boolean = false,
ModVar3 =
@@ -2714,13 +2570,11 @@ const bool: boolean = false,
ModVar4 =
Second module variable template.
as TemplateOnlyComponent;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2731,61 +2585,52 @@ export interface Signature {
what
- as TemplateOnlyComponent
-
- oops
-
+ as TemplateOnlyComponent;
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
-
-
- oops
-
+;
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
"const num = 1;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
;
-
- oops
-
+/oops/;
+
const What = Hi;
-oops
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -2795,9 +2640,8 @@ exports[`ambiguous > config > default > oops > with semi, w
,
ModVar2 = Second module variable template.,
num = 1;
-
- oops
-
+/oops/;
+
const bool = false,
ModVar3 =
@@ -2807,23 +2651,19 @@ const bool = false,
,
ModVar4 = Second module variable template.;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
-
-
- oops
-
+;
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2837,14 +2677,12 @@ export interface Signature {
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
-
- oops
-
+ as TemplateOnlyComponent;
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2858,13 +2696,11 @@ export const Exported: TemplateOnlyComponent =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2878,21 +2714,17 @@ export const Exported =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
as TemplateOnlyComponent;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
"const num: number = 1;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2906,13 +2738,11 @@ const Private: TemplateOnlyComponent =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2926,13 +2756,11 @@ const Private =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
as TemplateOnlyComponent;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2952,9 +2780,8 @@ const ModVar1: TemplateOnlyComponent =
Second module variable template.
,
num = 1;
-
- oops
-
+/oops/;
+
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -2966,13 +2793,11 @@ const bool: boolean = false,
ModVar4: TemplateOnlyComponent =
Second module variable template.
;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -2992,9 +2817,7 @@ const ModVar1 =
Second module variable template.
as TemplateOnlyComponent,
num = 1;
-
- oops
-
+/oops/;
const bool: boolean = false,
ModVar3 =
@@ -3007,13 +2830,11 @@ const bool: boolean = false,
ModVar4 =
Second module variable template.
as TemplateOnlyComponent;
-
- oops
-
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > /oops/ > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3024,14 +2845,12 @@ export interface Signature {
what
- as TemplateOnlyComponent
-
- oops
-
+ as TemplateOnlyComponent;
+/oops/;
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
"import Component from \\"@glimmer/component\\";
/** It's a component */
@@ -3049,7 +2868,7 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
"import Component from \\"@glimmer/component\\";
/** It's a component */
@@ -3069,7 +2888,7 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
@@ -3082,7 +2901,7 @@ exports[`ambiguous > config > default > oops > without semi
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
@@ -3094,7 +2913,7 @@ exports[`ambiguous > config > default > oops > without semi
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
"const num = 1;
oops
@@ -3102,7 +2921,7 @@ exports[`ambiguous > config > default > oops > without semi
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
@@ -3119,7 +2938,7 @@ const What = Hi;
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -3148,7 +2967,7 @@ const bool = false,
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
@@ -3158,7 +2977,7 @@ exports[`ambiguous > config > default > oops > without semi
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
"import Component from \\"@glimmer/component\\";
export interface Signature {
@@ -3184,7 +3003,7 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3198,14 +3017,14 @@ export interface Signature {
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
-
as TemplateOnlyComponent
+ as TemplateOnlyComponent;
oops
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3225,7 +3044,7 @@ export const Exported: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3245,7 +3064,7 @@ export const Exported =
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
"const num: number = 1;
oops
@@ -3253,7 +3072,7 @@ exports[`ambiguous > config > default > oops > without semi
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3273,7 +3092,7 @@ const Private: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3293,7 +3112,7 @@ const Private =
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3334,7 +3153,7 @@ const bool: boolean = false,
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3375,7 +3194,7 @@ const bool: boolean = false,
"
`;
-exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3386,15 +3205,16 @@ export interface Signature {
what
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
oops
"
`;
-exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gjs/component-class.gjs 1`] = `
"import Component from \\"@glimmer/component\\";
+
/** It's a component */
class MyComponent extends Component {
@@ -3410,8 +3230,9 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
"import Component from \\"@glimmer/component\\";
+
/** It's a component */
class MyComponent extends Component {
get whatever() {}
@@ -3429,7 +3250,7 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
@@ -3442,7 +3263,7 @@ exports[`ambiguous > config > default > oops > without semi
"
`;
-exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
@@ -3454,7 +3275,15 @@ exports[`ambiguous > config > default > oops > without semi
"
`;
-exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1;
+
+ oops
+
+"
+`;
+
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
@@ -3463,7 +3292,6 @@ exports[`ambiguous > config > default > oops > without semi
oops
-
const What = Hi;
oops
@@ -3471,7 +3299,35 @@ const What = Hi;
"
`;
-exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = 1;
+
+ oops
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.;
+
+ oops
+
+"
+`;
+
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
@@ -3481,8 +3337,9 @@ exports[`ambiguous > config > default > oops > without semi
"
`;
-exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gts/component-class.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/component-class.gts 1`] = `
"import Component from \\"@glimmer/component\\";
+
export interface Signature {
Element: HTMLElement;
Args: {
@@ -3506,8 +3363,9 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -3519,15 +3377,16 @@ export interface Signature {
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
oops
"
`;
-exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -3545,8 +3404,9 @@ export const Exported: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -3564,8 +3424,17 @@ export const Exported =
"
`;
-exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1;
+
+ oops
+
+"
+`;
+
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -3583,8 +3452,9 @@ const Private: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -3602,8 +3472,90 @@ const Private =
"
`;
-exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = 1;
+
+ oops
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+ ;
+
+ oops
+
+"
+`;
+
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar2 =
+ Second module variable template.
+ as TemplateOnlyComponent,
+ num = 1;
+
+ oops
+
+
+const bool: boolean = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar4 =
+ Second module variable template.
+ as TemplateOnlyComponent;
+
+ oops
+
+"
+`;
+
+exports[`ambiguous > config > default > oops > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -3612,14 +3564,14 @@ export interface Signature {
what
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
oops
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
"import Component from \\"@glimmer/component\\";
/** It's a component */
@@ -3630,12 +3582,14 @@ class MyComponent extends Component {
template. Class top level template. Class top level template.
- [\\"oops\\"];
+
+ oops
+
}
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
"import Component from \\"@glimmer/component\\";
/** It's a component */
@@ -3648,52 +3602,64 @@ class MyComponent extends Component {
template. Class top level template. Class top level template.
- [\\"oops\\"];
+
+ oops
+
}
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
-;
-[\\"oops\\"];
+
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
"const num = 1;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
;
-[\\"oops\\"];
+
+ oops
+
const What = Hi;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -3703,7 +3669,9 @@ exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it
,
ModVar2 = Second module variable template.,
num = 1;
-[\\"oops\\"];
+
+ oops
+
const bool = false,
ModVar3 =
@@ -3714,19 +3682,23 @@ const bool = false,
,
ModVar4 = Second module variable template.;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
-;
-[\\"oops\\"];
+
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
"import Component from \\"@glimmer/component\\";
export interface Signature {
@@ -3745,12 +3717,14 @@ class MyComponent extends Component {
template. Class top level template. Class top level template.
- [\\"oops\\"];
+
+ oops
+
}
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3765,11 +3739,13 @@ export interface Signature {
component. Explicit default export module top level component. Explicit
default export module top level component.
as TemplateOnlyComponent;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3783,11 +3759,13 @@ export const Exported: TemplateOnlyComponent =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3801,17 +3779,21 @@ export const Exported =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
as TemplateOnlyComponent;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
"const num: number = 1;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3825,11 +3807,13 @@ const Private: TemplateOnlyComponent =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3843,11 +3827,13 @@ const Private =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
as TemplateOnlyComponent;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3867,7 +3853,9 @@ const ModVar1: TemplateOnlyComponent =
Second module variable template.
,
num = 1;
-[\\"oops\\"];
+
+ oops
+
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -3880,11 +3868,13 @@ const bool: boolean = false,
ModVar4: TemplateOnlyComponent =
Second module variable template.
;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3904,7 +3894,9 @@ const ModVar1 =
Second module variable template.
as TemplateOnlyComponent,
num = 1;
-[\\"oops\\"];
+
+ oops
+
const bool: boolean = false,
ModVar3 =
@@ -3917,11 +3909,13 @@ const bool: boolean = false,
ModVar4 =
Second module variable template.
as TemplateOnlyComponent;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -3933,13 +3927,14 @@ export interface Signature {
what
as TemplateOnlyComponent;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gjs/component-class.gjs 1`] = `
"import Component from \\"@glimmer/component\\";
-
/** It's a component */
class MyComponent extends Component {
@@ -3948,14 +3943,15 @@ class MyComponent extends Component {
template. Class top level template. Class top level template.
- [\\"oops\\"];
+
+ oops
+
}
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
"import Component from \\"@glimmer/component\\";
-
/** It's a component */
class MyComponent extends Component {
get whatever() {}
@@ -3966,87 +3962,67 @@ class MyComponent extends Component {
template. Class top level template. Class top level template.
- [\\"oops\\"];
+
+ oops
+
}
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
-;
-[\\"oops\\"];
+
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
;
-[\\"oops\\"];
-"
-`;
-
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
;
-[\\"oops\\"];
+
+ oops
+
const What = Hi;
-[\\"oops\\"];
-"
-`;
-
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
-"const ModVar1 =
-
- Module variable template. Module variable template. Module variable
- template. Module variable template. Module variable template. Module
- variable template. Module variable template. Module variable template.
-
- ,
- ModVar2 = Second module variable template.,
- num = 1;
-[\\"oops\\"];
-
-const bool = false,
- ModVar3 =
-
- Module variable template. Module variable template. Module variable
- template. Module variable template. Module variable template. Module
- variable template. Module variable template. Module variable template.
-
- ,
- ModVar4 = Second module variable template.;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
-;
-[\\"oops\\"];
+
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/component-class.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gts/component-class.gts 1`] = `
"import Component from \\"@glimmer/component\\";
-
export interface Signature {
Element: HTMLElement;
Args: {
@@ -4063,14 +4039,15 @@ class MyComponent extends Component {
template. Class top level template. Class top level template.
- [\\"oops\\"];
+
+ oops
+
}
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4083,13 +4060,14 @@ export interface Signature {
component. Explicit default export module top level component. Explicit
default export module top level component.
as TemplateOnlyComponent;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4101,13 +4079,14 @@ export const Exported: TemplateOnlyComponent =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4119,19 +4098,14 @@ export const Exported =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
as TemplateOnlyComponent;
-[\\"oops\\"];
-"
-`;
-
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4143,13 +4117,14 @@ const Private: TemplateOnlyComponent =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4161,87 +4136,14 @@ const Private =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
as TemplateOnlyComponent;
-[\\"oops\\"];
-"
-`;
-
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
-"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
-export interface Signature {
- Element: HTMLElement;
- Args: {};
- Yields: [];
-}
-
-const ModVar1: TemplateOnlyComponent =
-
- Module variable template. Module variable template. Module variable
- template. Module variable template. Module variable template. Module
- variable template. Module variable template. Module variable template.
-
- ,
- ModVar2: TemplateOnlyComponent =
- Second module variable template.
- ,
- num = 1;
-[\\"oops\\"];
-
-const bool: boolean = false,
- ModVar3: TemplateOnlyComponent =
-
- Module variable template. Module variable template. Module variable
- template. Module variable template. Module variable template. Module
- variable template. Module variable template. Module variable template.
-
- ,
- ModVar4: TemplateOnlyComponent =
- Second module variable template.
- ;
-[\\"oops\\"];
-"
-`;
-
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
-"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
-export interface Signature {
- Element: HTMLElement;
- Args: {};
- Yields: [];
-}
-
-const ModVar1 =
-
- Module variable template. Module variable template. Module variable
- template. Module variable template. Module variable template. Module
- variable template. Module variable template. Module variable template.
-
- as TemplateOnlyComponent,
- ModVar2 =
- Second module variable template.
- as TemplateOnlyComponent,
- num = 1;
-[\\"oops\\"];
-
-const bool: boolean = false,
- ModVar3 =
-
- Module variable template. Module variable template. Module variable
- template. Module variable template. Module variable template. Module
- variable template. Module variable template. Module variable template.
-
- as TemplateOnlyComponent,
- ModVar4 =
- Second module variable template.
- as TemplateOnlyComponent;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > oops > without semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4251,11 +4153,13 @@ export interface Signature {
what
as TemplateOnlyComponent;
-[\\"oops\\"];
+
+ oops
+
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
"import Component from \\"@glimmer/component\\";
/** It's a component */
@@ -4271,7 +4175,7 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
"import Component from \\"@glimmer/component\\";
/** It's a component */
@@ -4289,25 +4193,93 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = (1)[\\"oops\\"];
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+;
+[\\"oops\\"];
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
-"import Component from \\"@glimmer/component\\";
-
-export interface Signature {
- Element: HTMLElement;
- Args: {
- myArg: string;
- };
- Yields: [];
-}
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+;
+[\\"oops\\"];
+"
+`;
-/** It's a component */
-class MyComponent extends Component {
-
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+;
+[\\"oops\\"];
+
+const What = Hi;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = 1;
+[\\"oops\\"];
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
+"import Component from \\"@glimmer/component\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {
+ myArg: string;
+ };
+ Yields: [];
+}
+
+/** It's a component */
+class MyComponent extends Component {
+
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
@@ -4318,7 +4290,7 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -4337,7 +4309,25 @@ export interface Signature {
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+export const Exported: TemplateOnlyComponent =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -4355,12 +4345,31 @@ export const Exported =
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = (1)[\\"oops\\"];
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1;
+[\\"oops\\"];
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -4378,7 +4387,44 @@ const Private =
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = 1;
+[\\"oops\\"];
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+ ;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -4397,7 +4443,8 @@ const ModVar1 =
ModVar2 =
Second module variable template.
as TemplateOnlyComponent,
- num = (1)[\\"oops\\"];
+ num = 1;
+[\\"oops\\"];
const bool: boolean = false,
ModVar3 =
@@ -4414,7 +4461,7 @@ const bool: boolean = false,
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > ["oops"] > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -4430,8 +4477,9 @@ export interface Signature {
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/component-class.gjs 1`] = `
"import Component from \\"@glimmer/component\\";
+
/** It's a component */
class MyComponent extends Component {
@@ -4445,8 +4493,9 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
"import Component from \\"@glimmer/component\\";
+
/** It's a component */
class MyComponent extends Component {
get whatever() {}
@@ -4462,13 +4511,82 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = (1)[\\"oops\\"];
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+;
+[\\"oops\\"];
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/component-class.gts 1`] = `
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+;
+[\\"oops\\"];
+
+const What = Hi;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = 1;
+[\\"oops\\"];
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/component-class.gts 1`] = `
"import Component from \\"@glimmer/component\\";
+
export interface Signature {
Element: HTMLElement;
Args: {
@@ -4490,8 +4608,9 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4508,47 +4627,1515 @@ export interface Signature {
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
Yields: [];
}
-export const Exported =
+export const Exported: TemplateOnlyComponent =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
- as TemplateOnlyComponent;
+;
[\\"oops\\"];
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = (1)[\\"oops\\"];
-"
-`;
-
-exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = 1;
+[\\"oops\\"];
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+ ;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar2 =
+ Second module variable template.
+ as TemplateOnlyComponent,
+ num = 1;
+[\\"oops\\"];
+
+const bool: boolean = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar4 =
+ Second module variable template.
+ as TemplateOnlyComponent;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+
+ what
+ as TemplateOnlyComponent;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+"import Component from \\"@glimmer/component\\";
+
+/** It's a component */
+class MyComponent extends Component {
+
+
+ Class top level template. Class top level template. Class top level
+ template. Class top level template. Class top level template.
+
+
+ [\\"oops\\"];
+}
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+"import Component from \\"@glimmer/component\\";
+
+/** It's a component */
+class MyComponent extends Component {
+ get whatever() {}
+
+
+
+ Class top level template. Class top level template. Class top level
+ template. Class top level template. Class top level template.
+
+
+ [\\"oops\\"];
+}
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = (1)[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+;
+[\\"oops\\"];
+
+const What = Hi;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = (1)[\\"oops\\"];
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
+"import Component from \\"@glimmer/component\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {
+ myArg: string;
+ };
+ Yields: [];
+}
+
+/** It's a component */
+class MyComponent extends Component {
+
+
+ Class top level template. Class top level template. Class top level
+ template. Class top level template. Class top level template.
+
+
+ [\\"oops\\"];
+}
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+ as TemplateOnlyComponent;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+export const Exported: TemplateOnlyComponent =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = (1)[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = (1)[\\"oops\\"];
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+ ;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar2 =
+ Second module variable template.
+ as TemplateOnlyComponent,
+ num = (1)[\\"oops\\"];
+
+const bool: boolean = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar4 =
+ Second module variable template.
+ as TemplateOnlyComponent;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+
+ what
+ as TemplateOnlyComponent;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+"import Component from \\"@glimmer/component\\";
+/** It's a component */
+class MyComponent extends Component {
+
+
+ Class top level template. Class top level template. Class top level
+ template. Class top level template. Class top level template.
+
+
+ [\\"oops\\"];
+}
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+"import Component from \\"@glimmer/component\\";
+/** It's a component */
+class MyComponent extends Component {
+ get whatever() {}
+
+
+
+ Class top level template. Class top level template. Class top level
+ template. Class top level template. Class top level template.
+
+
+ [\\"oops\\"];
+}
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = (1)[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+;
+[\\"oops\\"];
+
+const What = Hi;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = (1)[\\"oops\\"];
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/component-class.gts 1`] = `
+"import Component from \\"@glimmer/component\\";
+export interface Signature {
+ Element: HTMLElement;
+ Args: {
+ myArg: string;
+ };
+ Yields: [];
+}
+
+/** It's a component */
+class MyComponent extends Component {
+
+
+ Class top level template. Class top level template. Class top level
+ template. Class top level template. Class top level template.
+
+
+ [\\"oops\\"];
+}
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+ as TemplateOnlyComponent;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+export const Exported: TemplateOnlyComponent =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = (1)[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = (1)[\\"oops\\"];
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+ ;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar2 =
+ Second module variable template.
+ as TemplateOnlyComponent,
+ num = (1)[\\"oops\\"];
+
+const bool: boolean = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar4 =
+ Second module variable template.
+ as TemplateOnlyComponent;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+
+ what
+ as TemplateOnlyComponent;
+[\\"oops\\"];
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+;
+\`oops\`;
+
+const What = Hi;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = 1;
+\`oops\`;
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+ as TemplateOnlyComponent;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+export const Exported: TemplateOnlyComponent =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = 1;
+\`oops\`;
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+ ;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar2 =
+ Second module variable template.
+ as TemplateOnlyComponent,
+ num = 1;
+\`oops\`;
+
+const bool: boolean = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar4 =
+ Second module variable template.
+ as TemplateOnlyComponent;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+
+ what
+ as TemplateOnlyComponent;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+;
+\`oops\`;
+
+const What = Hi;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = 1;
+\`oops\`;
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+ as TemplateOnlyComponent;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+export const Exported: TemplateOnlyComponent =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = 1;
+\`oops\`;
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+ ;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar2 =
+ Second module variable template.
+ as TemplateOnlyComponent,
+ num = 1;
+\`oops\`;
+
+const bool: boolean = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar4 =
+ Second module variable template.
+ as TemplateOnlyComponent;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+
+ what
+ as TemplateOnlyComponent;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+;
+\`oops\`;
+
+const What = Hi;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = 1\`oops\`;
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+ as TemplateOnlyComponent;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+export const Exported: TemplateOnlyComponent =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent;
+\`oops\`;
+"
+`;
+
+exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
Yields: [];
}
-const Private =
- Private variable template. Private variable template. Private variable
- template. Private variable template. Private variable template. Private
- variable template. Private variable template.
- as TemplateOnlyComponent;
-[\\"oops\\"];
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = 1\`oops\`;
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+ ;
+\`oops\`;
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4565,7 +6152,7 @@ const ModVar1 =
ModVar2 =
Second module variable template.
as TemplateOnlyComponent,
- num = (1)[\\"oops\\"];
+ num = 1\`oops\`;
const bool: boolean = false,
ModVar3 =
@@ -4578,12 +6165,13 @@ const bool: boolean = false,
ModVar4 =
Second module variable template.
as TemplateOnlyComponent;
-[\\"oops\\"];
+\`oops\`;
"
`;
-exports[`ambiguous > config > default > ["oops"] > without semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4593,22 +6181,22 @@ export interface Signature {
what
as TemplateOnlyComponent;
-[\\"oops\\"];
+\`oops\`;
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
-
+;
\`oops\`;
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
@@ -4618,13 +6206,12 @@ exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1;
-\`oops\`;
+exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1\`oops\`;
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
@@ -4637,7 +6224,7 @@ const What = Hi;
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -4646,8 +6233,7 @@ exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it
,
ModVar2 = Second module variable template.,
- num = 1;
-\`oops\`;
+ num = 1\`oops\`;
const bool = false,
ModVar3 =
@@ -4662,17 +6248,16 @@ const bool = false,
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
-
+;
\`oops\`;
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4684,14 +6269,13 @@ export interface Signature {
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
\`oops\`;
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4707,9 +6291,8 @@ export const Exported: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4725,15 +6308,13 @@ export const Exported =
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1;
-\`oops\`;
+exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1\`oops\`;
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4749,9 +6330,8 @@ const Private: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4767,9 +6347,8 @@ const Private =
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4786,8 +6365,7 @@ const ModVar1: TemplateOnlyComponent =
ModVar2: TemplateOnlyComponent =
Second module variable template.
,
- num = 1;
-\`oops\`;
+ num = 1\`oops\`;
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -4804,9 +6382,8 @@ const bool: boolean = false,
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4823,8 +6400,7 @@ const ModVar1 =
ModVar2 =
Second module variable template.
as TemplateOnlyComponent,
- num = 1;
-\`oops\`;
+ num = 1\`oops\`;
const bool: boolean = false,
ModVar3 =
@@ -4841,9 +6417,8 @@ const bool: boolean = false,
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -4852,52 +6427,52 @@ export interface Signature {
what
- as TemplateOnlyComponent
+ as TemplateOnlyComponent;
\`oops\`;
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
-
-\`oops\`;
+;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
;
-\`oops\`;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
"const num = 1;
-\`oops\`;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
;
-\`oops\`;
+-\\"oops\\";
const What = Hi;
-\`oops\`;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -4907,7 +6482,7 @@ exports[`ambiguous > config > default > \`oops\` > with semi, without newline >
,
ModVar2 = Second module variable template.,
num = 1;
-\`oops\`;
+-\\"oops\\";
const bool = false,
ModVar3 =
@@ -4918,19 +6493,19 @@ const bool = false,
,
ModVar4 = Second module variable template.;
-\`oops\`;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
-
-\`oops\`;
+;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -4944,12 +6519,12 @@ export interface Signature {
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
-\`oops\`;
+ as TemplateOnlyComponent;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -4963,11 +6538,11 @@ export const Exported: TemplateOnlyComponent =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
;
-\`oops\`;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -4981,17 +6556,17 @@ export const Exported =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
as TemplateOnlyComponent;
-\`oops\`;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
"const num: number = 1;
-\`oops\`;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -5005,11 +6580,11 @@ const Private: TemplateOnlyComponent =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
;
-\`oops\`;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -5023,11 +6598,11 @@ const Private =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
as TemplateOnlyComponent;
-\`oops\`;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -5047,7 +6622,7 @@ const ModVar1: TemplateOnlyComponent =
Second module variable template.
,
num = 1;
-\`oops\`;
+-\\"oops\\";
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -5060,11 +6635,11 @@ const bool: boolean = false,
ModVar4: TemplateOnlyComponent =
Second module variable template.
;
-\`oops\`;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -5084,7 +6659,7 @@ const ModVar1 =
Second module variable template.
as TemplateOnlyComponent,
num = 1;
-\`oops\`;
+-\\"oops\\";
const bool: boolean = false,
ModVar3 =
@@ -5097,11 +6672,11 @@ const bool: boolean = false,
ModVar4 =
Second module variable template.
as TemplateOnlyComponent;
-\`oops\`;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -5112,113 +6687,85 @@ export interface Signature {
what
- as TemplateOnlyComponent
-\`oops\`;
-"
-`;
-
-exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1\`oops\`;
+ as TemplateOnlyComponent;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
-"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
-export interface Signature {
- Element: HTMLElement;
- Args: {};
- Yields: [];
-}
-
-
+exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
-\`oops\`;
+;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
-"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
-export interface Signature {
- Element: HTMLElement;
- Args: {};
- Yields: [];
-}
-
-export const Exported =
+exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
- as TemplateOnlyComponent;
-\`oops\`;
+;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1\`oops\`;
+exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
-"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
-export interface Signature {
- Element: HTMLElement;
- Args: {};
- Yields: [];
-}
-
-const Private =
+exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
- as TemplateOnlyComponent;
-\`oops\`;
+;
+-\\"oops\\";
+
+const What = Hi;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
-"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
-export interface Signature {
- Element: HTMLElement;
- Args: {};
- Yields: [];
-}
-
-const ModVar1 =
+exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
Module variable template. Module variable template. Module variable
template. Module variable template. Module variable template. Module
variable template. Module variable template. Module variable template.
- as TemplateOnlyComponent,
- ModVar2 =
- Second module variable template.
- as TemplateOnlyComponent,
- num = 1\`oops\`;
+ ,
+ ModVar2 = Second module variable template.,
+ num = 1;
+-\\"oops\\";
-const bool: boolean = false,
+const bool = false,
ModVar3 =
Module variable template. Module variable template. Module variable
template. Module variable template. Module variable template. Module
variable template. Module variable template. Module variable template.
- as TemplateOnlyComponent,
- ModVar4 =
- Second module variable template.
- as TemplateOnlyComponent;
-\`oops\`;
+ ,
+ ModVar4 = Second module variable template.;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > without semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+;
+-\\"oops\\";
+"
+`;
+
+exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -5228,37 +6775,36 @@ export interface Signature {
}
- what
- as TemplateOnlyComponent
-\`oops\`;
-"
-`;
-
-exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1\`oops\`;
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+ as TemplateOnlyComponent;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
Yields: [];
}
-
- Explicit default export module top level component. Explicit default export
- module top level component. Explicit default export module top level
- component. Explicit default export module top level component. Explicit
- default export module top level component.
- as TemplateOnlyComponent
-\`oops\`;
+export const Exported: TemplateOnlyComponent =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -5270,17 +6816,37 @@ export const Exported =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
as TemplateOnlyComponent;
-\`oops\`;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1\`oops\`;
+exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+;
+-\\"oops\\";
+"
+`;
+
+exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -5292,12 +6858,50 @@ const Private =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
as TemplateOnlyComponent;
-\`oops\`;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
+export interface Signature {
+ Element: HTMLElement;
+ Args: {};
+ Yields: [];
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = 1;
+-\\"oops\\";
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+ ;
+-\\"oops\\";
+"
+`;
+
+exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -5314,7 +6918,8 @@ const ModVar1 =
ModVar2 =
Second module variable template.
as TemplateOnlyComponent,
- num = 1\`oops\`;
+ num = 1;
+-\\"oops\\";
const bool: boolean = false,
ModVar3 =
@@ -5327,12 +6932,13 @@ const bool: boolean = false,
ModVar4 =
Second module variable template.
as TemplateOnlyComponent;
-\`oops\`;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > \`oops\` > without semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
+
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -5341,12 +6947,12 @@ export interface Signature {
what
- as TemplateOnlyComponent
-\`oops\`;
+ as TemplateOnlyComponent;
+-\\"oops\\";
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
@@ -5357,7 +6963,7 @@ exports[`ambiguous > config > default > -"oops" > with semi, with newline > it f
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
@@ -5367,13 +6973,12 @@ exports[`ambiguous > config > default > -"oops" > with semi, with newline > it f
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1;
--\\"oops\\";
+exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1 - \\"oops\\";
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
@@ -5386,7 +6991,7 @@ const What = Hi;
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -5395,8 +7000,7 @@ exports[`ambiguous > config > default > -"oops" > with semi, with newline > it f
,
ModVar2 = Second module variable template.,
- num = 1;
--\\"oops\\";
+ num = 1 - \\"oops\\";
const bool = false,
ModVar3 =
@@ -5411,7 +7015,7 @@ const bool = false,
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
;
@@ -5419,7 +7023,7 @@ exports[`ambiguous > config > default > -"oops" > with semi, with newline > it f
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -5428,17 +7032,16 @@ export interface Signature {
Yields: [];
}
-
+export default (
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent;
--\\"oops\\";
+ as TemplateOnlyComponent) - \\"oops\\";
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -5456,7 +7059,7 @@ export const Exported: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -5465,22 +7068,21 @@ export interface Signature {
Yields: [];
}
-export const Exported =
- Exported variable template. Exported variable template. Exported variable
- template. Exported variable template. Exported variable template. Exported
- variable template. Exported variable template.
- as TemplateOnlyComponent;
--\\"oops\\";
+export const Exported =
+ (
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent) - \\"oops\\";
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1;
--\\"oops\\";
+exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1 - \\"oops\\";
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -5498,7 +7100,7 @@ const Private: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -5507,16 +7109,16 @@ export interface Signature {
Yields: [];
}
-const Private =
- Private variable template. Private variable template. Private variable
- template. Private variable template. Private variable template. Private
- variable template. Private variable template.
- as TemplateOnlyComponent;
--\\"oops\\";
+const Private =
+ (
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent) - \\"oops\\";
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -5535,8 +7137,7 @@ const ModVar1: TemplateOnlyComponent =
ModVar2: TemplateOnlyComponent =
Second module variable template.
,
- num = 1;
--\\"oops\\";
+ num = 1 - \\"oops\\";
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -5553,7 +7154,7 @@ const bool: boolean = false,
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -5572,8 +7173,7 @@ const ModVar1 =
ModVar2 =
Second module variable template.
as TemplateOnlyComponent,
- num = 1;
--\\"oops\\";
+ num = 1 - \\"oops\\";
const bool: boolean = false,
ModVar3 =
@@ -5583,14 +7183,14 @@ const bool: boolean = false,
variable template. Module variable template. Module variable template.
as TemplateOnlyComponent,
- ModVar4 =
- Second module variable template.
- as TemplateOnlyComponent;
--\\"oops\\";
+ ModVar4 =
+ (
+ Second module variable template.
+ as TemplateOnlyComponent) - \\"oops\\";
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
export interface Signature {
@@ -5599,14 +7199,11 @@ export interface Signature {
Yields: [];
}
-
- what
- as TemplateOnlyComponent;
--\\"oops\\";
+(what as TemplateOnlyComponent) - \\"oops\\";
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
@@ -5617,7 +7214,7 @@ exports[`ambiguous > config > default > -"oops" > with semi, without newline > i
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
@@ -5627,13 +7224,12 @@ exports[`ambiguous > config > default > -"oops" > with semi, without newline > i
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1;
--\\"oops\\";
+exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1 - \\"oops\\";
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
@@ -5646,7 +7242,7 @@ const What = Hi;
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -5655,8 +7251,7 @@ exports[`ambiguous > config > default > -"oops" > with semi, without newline > i
,
ModVar2 = Second module variable template.,
- num = 1;
--\\"oops\\";
+ num = 1 - \\"oops\\";
const bool = false,
ModVar3 =
@@ -5671,7 +7266,7 @@ const bool = false,
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
;
@@ -5679,28 +7274,25 @@ exports[`ambiguous > config > default > -"oops" > with semi, without newline > i
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
Yields: [];
}
-
+export default (
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent;
--\\"oops\\";
+ as TemplateOnlyComponent) - \\"oops\\";
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -5716,33 +7308,30 @@ export const Exported: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
Yields: [];
}
-export const Exported =
- Exported variable template. Exported variable template. Exported variable
- template. Exported variable template. Exported variable template. Exported
- variable template. Exported variable template.
- as TemplateOnlyComponent;
--\\"oops\\";
+export const Exported =
+ (
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent) - \\"oops\\";
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1;
--\\"oops\\";
+exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1 - \\"oops\\";
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -5758,27 +7347,25 @@ const Private: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
Yields: [];
}
-const Private =
- Private variable template. Private variable template. Private variable
- template. Private variable template. Private variable template. Private
- variable template. Private variable template.
- as TemplateOnlyComponent;
--\\"oops\\";
+const Private =
+ (
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent) - \\"oops\\";
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -5795,8 +7382,7 @@ const ModVar1: TemplateOnlyComponent =
ModVar2: TemplateOnlyComponent =
Second module variable template.
,
- num = 1;
--\\"oops\\";
+ num = 1 - \\"oops\\";
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -5813,9 +7399,8 @@ const bool: boolean = false,
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
@@ -5832,8 +7417,7 @@ const ModVar1 =
ModVar2 =
Second module variable template.
as TemplateOnlyComponent,
- num = 1;
--\\"oops\\";
+ num = 1 - \\"oops\\";
const bool: boolean = false,
ModVar3 =
@@ -5843,45 +7427,21 @@ const bool: boolean = false,
variable template. Module variable template. Module variable template.
as TemplateOnlyComponent,
- ModVar4 =
- Second module variable template.
- as TemplateOnlyComponent;
--\\"oops\\";
+ ModVar4 =
+ (
+ Second module variable template.
+ as TemplateOnlyComponent) - \\"oops\\";
"
`;
-exports[`ambiguous > config > default > -"oops" > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\";
-
export interface Signature {
Element: HTMLElement;
Args: {};
Yields: [];
}
-
- what
- as TemplateOnlyComponent;
--\\"oops\\";
-"
-`;
-
-exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1 - \\"oops\\";
-"
-`;
-
-exports[`ambiguous > config > default > -"oops" > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1 - \\"oops\\";
-"
-`;
-
-exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1 - \\"oops\\";
-"
-`;
-
-exports[`ambiguous > config > default > -"oops" > without semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1 - \\"oops\\";
+(what as TemplateOnlyComponent) - \\"oops\\";
"
`;
diff --git a/tests/unit-tests/ambiguous/__snapshots__/semi-false.test.ts.snap b/tests/unit-tests/ambiguous/__snapshots__/semi-false.test.ts.snap
index 35ca0f58..6ab6f4c0 100644
--- a/tests/unit-tests/ambiguous/__snapshots__/semi-false.test.ts.snap
+++ b/tests/unit-tests/ambiguous/__snapshots__/semi-false.test.ts.snap
@@ -1836,67 +1836,46 @@ export interface Signature {
"
`;
-exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1 + \\"oops\\"
-"
-`;
-
-exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1 + \\"oops\\"
-"
-`;
-
-exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1 + \\"oops\\"
-"
-`;
-
-exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1 + \\"oops\\"
-"
-`;
-
-exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1
-;/oops/
+exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1 + \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
-;/oops/
+;+\\"oops\\"
const What = Hi
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -1905,8 +1884,7 @@ exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > i
,
ModVar2 = Second module variable template.,
- num = 1
-;/oops/
+ num = 1 + \\"oops\\"
const bool = false,
ModVar3 =
@@ -1917,19 +1895,19 @@ const bool = false,
,
ModVar4 = Second module variable template.
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -1938,17 +1916,16 @@ export interface Signature {
Yields: []
}
-
+export default (
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
-;/oops/
+ as TemplateOnlyComponent) + \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -1962,11 +1939,11 @@ export const Exported: TemplateOnlyComponent =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -1975,22 +1952,21 @@ export interface Signature {
Yields: []
}
-export const Exported =
- Exported variable template. Exported variable template. Exported variable
- template. Exported variable template. Exported variable template. Exported
- variable template. Exported variable template.
- as TemplateOnlyComponent
-;/oops/
+export const Exported =
+ (
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent) + \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1
-;/oops/
+exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1 + \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2004,11 +1980,11 @@ const Private: TemplateOnlyComponent =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2017,16 +1993,16 @@ export interface Signature {
Yields: []
}
-const Private =
- Private variable template. Private variable template. Private variable
- template. Private variable template. Private variable template. Private
- variable template. Private variable template.
- as TemplateOnlyComponent
-;/oops/
+const Private =
+ (
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent) + \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2045,8 +2021,7 @@ const ModVar1: TemplateOnlyComponent =
ModVar2: TemplateOnlyComponent =
Second module variable template.
,
- num = 1
-;/oops/
+ num = 1 + \\"oops\\"
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -2059,11 +2034,11 @@ const bool: boolean = false,
ModVar4: TemplateOnlyComponent =
Second module variable template.
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2082,8 +2057,7 @@ const ModVar1 =
ModVar2 =
Second module variable template.
as TemplateOnlyComponent,
- num = 1
-;/oops/
+ num = 1 + \\"oops\\"
const bool: boolean = false,
ModVar3 =
@@ -2093,14 +2067,14 @@ const bool: boolean = false,
variable template. Module variable template. Module variable template.
as TemplateOnlyComponent,
- ModVar4 =
- Second module variable template.
- as TemplateOnlyComponent
-;/oops/
+ ModVar4 =
+ (
+ Second module variable template.
+ as TemplateOnlyComponent) + \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2109,54 +2083,50 @@ export interface Signature {
Yields: []
}
-
- what
- as TemplateOnlyComponent
-;/oops/
+;(what as TemplateOnlyComponent) + \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1
-;/oops/
+exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1 + \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
-;/oops/
+;+\\"oops\\"
const What = Hi
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -2165,8 +2135,7 @@ exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline
,
ModVar2 = Second module variable template.,
- num = 1
-;/oops/
+ num = 1 + \\"oops\\"
const bool = false,
ModVar3 =
@@ -2177,40 +2146,37 @@ const bool = false,
,
ModVar4 = Second module variable template.
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
Yields: []
}
-
+export default (
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
-;/oops/
+ as TemplateOnlyComponent) + \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -2222,37 +2188,34 @@ export const Exported: TemplateOnlyComponent =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
Yields: []
}
-export const Exported =
- Exported variable template. Exported variable template. Exported variable
- template. Exported variable template. Exported variable template. Exported
- variable template. Exported variable template.
- as TemplateOnlyComponent
-;/oops/
+export const Exported =
+ (
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent) + \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1
-;/oops/
+exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1 + \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -2264,31 +2227,29 @@ const Private: TemplateOnlyComponent =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
Yields: []
}
-const Private =
- Private variable template. Private variable template. Private variable
- template. Private variable template. Private variable template. Private
- variable template. Private variable template.
- as TemplateOnlyComponent
-;/oops/
+const Private =
+ (
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent) + \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -2305,8 +2266,7 @@ const ModVar1: TemplateOnlyComponent =
ModVar2: TemplateOnlyComponent =
Second module variable template.
,
- num = 1
-;/oops/
+ num = 1 + \\"oops\\"
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -2319,13 +2279,12 @@ const bool: boolean = false,
ModVar4: TemplateOnlyComponent =
Second module variable template.
-;/oops/
+;+\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -2342,8 +2301,7 @@ const ModVar1 =
ModVar2 =
Second module variable template.
as TemplateOnlyComponent,
- num = 1
-;/oops/
+ num = 1 + \\"oops\\"
const bool: boolean = false,
ModVar3 =
@@ -2353,118 +2311,66 @@ const bool: boolean = false,
variable template. Module variable template. Module variable template.
as TemplateOnlyComponent,
- ModVar4 =
- Second module variable template.
- as TemplateOnlyComponent
-;/oops/
+ ModVar4 =
+ (
+ Second module variable template.
+ as TemplateOnlyComponent) + \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > semi: false > +"oops" > without semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
Yields: []
}
-
- what
- as TemplateOnlyComponent
-;/oops/
-"
-`;
-
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
-"import Component from \\"@glimmer/component\\"
-
-/** It's a component */
-class MyComponent extends Component {
-
-
- Class top level template. Class top level template. Class top level
- template. Class top level template. Class top level template.
-
- ;
-
- oops
-
-}
-"
-`;
-
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
-"import Component from \\"@glimmer/component\\"
-
-/** It's a component */
-class MyComponent extends Component {
- get whatever() {}
-
-
-
- Class top level template. Class top level template. Class top level
- template. Class top level template. Class top level template.
-
- ;
-
- oops
-
-}
+;(what as TemplateOnlyComponent) + \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
"const num = 1
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
-
- oops
-
+;/oops/
const What = Hi
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -2474,9 +2380,7 @@ exports[`ambiguous > config > semi: false > oops > with sem
,
ModVar2 = Second module variable template.,
num = 1
-
- oops
-
+;/oops/
const bool = false,
ModVar3 =
@@ -2487,54 +2391,24 @@ const bool = false,
,
ModVar4 = Second module variable template.
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
-"import Component from \\"@glimmer/component\\"
+exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
Element: HTMLElement
- Args: {
- myArg: string
- }
- Yields: []
-}
-
-/** It's a component */
-class MyComponent extends Component {
-
-
- Class top level template. Class top level template. Class top level
- template. Class top level template. Class top level template.
-
- ;
-
- oops
-
-}
-"
-`;
-
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
-"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
-export interface Signature {
- Element: HTMLElement
- Args: {}
+ Args: {}
Yields: []
}
@@ -2544,13 +2418,11 @@ export interface Signature {
component. Explicit default export module top level component. Explicit
default export module top level component.
as TemplateOnlyComponent
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2564,13 +2436,11 @@ export const Exported: TemplateOnlyComponent =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2584,21 +2454,17 @@ export const Exported =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
as TemplateOnlyComponent
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
"const num: number = 1
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2612,13 +2478,11 @@ const Private: TemplateOnlyComponent =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2632,13 +2496,11 @@ const Private =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
as TemplateOnlyComponent
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2658,9 +2520,7 @@ const ModVar1: TemplateOnlyComponent =
Second module variable template.
,
num = 1
-
- oops
-
+;/oops/
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -2673,13 +2533,11 @@ const bool: boolean = false,
ModVar4: TemplateOnlyComponent =
Second module variable template.
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2699,9 +2557,7 @@ const ModVar1 =
Second module variable template.
as TemplateOnlyComponent,
num = 1
-
- oops
-
+;/oops/
const bool: boolean = false,
ModVar3 =
@@ -2714,13 +2570,11 @@ const bool: boolean = false,
ModVar4 =
Second module variable template.
as TemplateOnlyComponent
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2732,60 +2586,51 @@ export interface Signature {
what
as TemplateOnlyComponent
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
"const num = 1
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
-
- oops
-
+;/oops/
+
const What = Hi
-oops
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -2795,9 +2640,8 @@ exports[`ambiguous > config > semi: false > oops > with sem
,
ModVar2 = Second module variable template.,
num = 1
-
- oops
-
+;/oops/
+
const bool = false,
ModVar3 =
@@ -2807,23 +2651,19 @@ const bool = false,
,
ModVar4 = Second module variable template.
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2838,13 +2678,11 @@ export interface Signature {
component. Explicit default export module top level component. Explicit
default export module top level component.
as TemplateOnlyComponent
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2858,13 +2696,11 @@ export const Exported: TemplateOnlyComponent =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2878,21 +2714,17 @@ export const Exported =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
as TemplateOnlyComponent
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
"const num: number = 1
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2906,13 +2738,11 @@ const Private: TemplateOnlyComponent =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2926,13 +2756,11 @@ const Private =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
as TemplateOnlyComponent
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2952,9 +2780,8 @@ const ModVar1: TemplateOnlyComponent =
Second module variable template.
,
num = 1
-
- oops
-
+;/oops/
+
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -2966,13 +2793,11 @@ const bool: boolean = false,
ModVar4: TemplateOnlyComponent =
Second module variable template.
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -2992,9 +2817,7 @@ const ModVar1 =
Second module variable template.
as TemplateOnlyComponent,
num = 1
-
- oops
-
+;/oops/
const bool: boolean = false,
ModVar3 =
@@ -3007,13 +2830,11 @@ const bool: boolean = false,
ModVar4 =
Second module variable template.
as TemplateOnlyComponent
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > semi: false > /oops/ > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3025,13 +2846,11 @@ export interface Signature {
what
as TemplateOnlyComponent
-
- oops
-
+;/oops/
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
"import Component from \\"@glimmer/component\\"
/** It's a component */
@@ -3041,7 +2860,7 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
+
oops
@@ -3049,7 +2868,7 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
"import Component from \\"@glimmer/component\\"
/** It's a component */
@@ -3061,7 +2880,7 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
+
oops
@@ -3069,7 +2888,7 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
@@ -3082,7 +2901,7 @@ exports[`ambiguous > config > semi: false > oops > without
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
@@ -3094,7 +2913,7 @@ exports[`ambiguous > config > semi: false > oops > without
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
"const num = 1
oops
@@ -3102,7 +2921,7 @@ exports[`ambiguous > config > semi: false > oops > without
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
@@ -3119,7 +2938,7 @@ const What = Hi
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -3148,7 +2967,7 @@ const bool = false,
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
@@ -3158,7 +2977,7 @@ exports[`ambiguous > config > semi: false > oops > without
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
"import Component from \\"@glimmer/component\\"
export interface Signature {
@@ -3176,7 +2995,7 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
+
oops
@@ -3184,7 +3003,7 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3205,7 +3024,7 @@ export interface Signature {
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3225,7 +3044,7 @@ export const Exported: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3245,7 +3064,7 @@ export const Exported =
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
"const num: number = 1
oops
@@ -3253,7 +3072,7 @@ exports[`ambiguous > config > semi: false > oops > without
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3273,7 +3092,7 @@ const Private: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3293,7 +3112,7 @@ const Private =
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3334,7 +3153,7 @@ const bool: boolean = false,
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3375,7 +3194,7 @@ const bool: boolean = false,
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3393,8 +3212,9 @@ export interface Signature {
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gjs/component-class.gjs 1`] = `
"import Component from \\"@glimmer/component\\"
+
/** It's a component */
class MyComponent extends Component {
@@ -3402,7 +3222,7 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
+
oops
@@ -3410,8 +3230,9 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
"import Component from \\"@glimmer/component\\"
+
/** It's a component */
class MyComponent extends Component {
get whatever() {}
@@ -3421,7 +3242,7 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
+
oops
@@ -3429,7 +3250,7 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
@@ -3442,7 +3263,7 @@ exports[`ambiguous > config > semi: false > oops > without
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
@@ -3454,7 +3275,15 @@ exports[`ambiguous > config > semi: false > oops > without
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1
+
+ oops
+
+"
+`;
+
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
@@ -3463,7 +3292,6 @@ exports[`ambiguous > config > semi: false > oops > without
oops
-
const What = Hi
oops
@@ -3471,18 +3299,47 @@ const What = Hi
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
-"
- what
-
-
- oops
-
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = 1
+
+ oops
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gts/component-class.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+
+
+ oops
+
+"
+`;
+
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/component-class.gts 1`] = `
"import Component from \\"@glimmer/component\\"
+
export interface Signature {
Element: HTMLElement
Args: {
@@ -3498,7 +3355,7 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
+
oops
@@ -3506,8 +3363,9 @@ class MyComponent extends Component {
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
@@ -3526,8 +3384,9 @@ export interface Signature {
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
@@ -3545,8 +3404,9 @@ export const Exported: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
@@ -3564,8 +3424,17 @@ export const Exported =
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1
+
+ oops
+
+"
+`;
+
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
@@ -3583,8 +3452,9 @@ const Private: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
@@ -3602,8 +3472,90 @@ const Private =
"
`;
-exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = 1
+
+ oops
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+
+
+ oops
+
+"
+`;
+
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar2 =
+ Second module variable template.
+ as TemplateOnlyComponent,
+ num = 1
+
+ oops
+
+
+const bool: boolean = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar4 =
+ Second module variable template.
+ as TemplateOnlyComponent
+
+ oops
+
+"
+`;
+
+exports[`ambiguous > config > semi: false > oops > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
@@ -3619,7 +3571,7 @@ export interface Signature {
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
"import Component from \\"@glimmer/component\\"
/** It's a component */
@@ -3629,13 +3581,15 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
- [\\"oops\\"]
+
+
+ oops
+
}
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
"import Component from \\"@glimmer/component\\"
/** It's a component */
@@ -3647,53 +3601,65 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
- [\\"oops\\"]
+
+
+ oops
+
}
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
"const num = 1
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
-;[\\"oops\\"]
+
+ oops
+
const What = Hi
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -3703,7 +3669,9 @@ exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline >
,
ModVar2 = Second module variable template.,
num = 1
-;[\\"oops\\"]
+
+ oops
+
const bool = false,
ModVar3 =
@@ -3714,19 +3682,23 @@ const bool = false,
,
ModVar4 = Second module variable template.
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
"import Component from \\"@glimmer/component\\"
export interface Signature {
@@ -3744,13 +3716,15 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
- [\\"oops\\"]
+
+
+ oops
+
}
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3765,11 +3739,13 @@ export interface Signature {
component. Explicit default export module top level component. Explicit
default export module top level component.
as TemplateOnlyComponent
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3783,11 +3759,13 @@ export const Exported: TemplateOnlyComponent =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3801,17 +3779,21 @@ export const Exported =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
as TemplateOnlyComponent
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
"const num: number = 1
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3825,11 +3807,13 @@ const Private: TemplateOnlyComponent =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3843,11 +3827,13 @@ const Private =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
as TemplateOnlyComponent
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3867,7 +3853,9 @@ const ModVar1: TemplateOnlyComponent =
Second module variable template.
,
num = 1
-;[\\"oops\\"]
+
+ oops
+
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -3880,11 +3868,13 @@ const bool: boolean = false,
ModVar4: TemplateOnlyComponent =
Second module variable template.
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3904,7 +3894,9 @@ const ModVar1 =
Second module variable template.
as TemplateOnlyComponent,
num = 1
-;[\\"oops\\"]
+
+ oops
+
const bool: boolean = false,
ModVar3 =
@@ -3917,11 +3909,13 @@ const bool: boolean = false,
ModVar4 =
Second module variable template.
as TemplateOnlyComponent
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -3933,13 +3927,14 @@ export interface Signature {
what
as TemplateOnlyComponent
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gjs/component-class.gjs 1`] = `
"import Component from \\"@glimmer/component\\"
-
/** It's a component */
class MyComponent extends Component {
@@ -3947,15 +3942,16 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
- [\\"oops\\"]
+
+
+ oops
+
}
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
"import Component from \\"@glimmer/component\\"
-
/** It's a component */
class MyComponent extends Component {
get whatever() {}
@@ -3965,88 +3961,68 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
- [\\"oops\\"]
+
+
+ oops
+
}
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
-;[\\"oops\\"]
-"
-`;
-
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
-;[\\"oops\\"]
+
+ oops
+
const What = Hi
-;[\\"oops\\"]
-"
-`;
-
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
-"const ModVar1 =
-
- Module variable template. Module variable template. Module variable
- template. Module variable template. Module variable template. Module
- variable template. Module variable template. Module variable template.
-
- ,
- ModVar2 = Second module variable template.,
- num = 1
-;[\\"oops\\"]
-
-const bool = false,
- ModVar3 =
-
- Module variable template. Module variable template. Module variable
- template. Module variable template. Module variable template. Module
- variable template. Module variable template. Module variable template.
-
- ,
- ModVar4 = Second module variable template.
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/component-class.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gts/component-class.gts 1`] = `
"import Component from \\"@glimmer/component\\"
-
export interface Signature {
Element: HTMLElement
Args: {
@@ -4062,15 +4038,16 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
- [\\"oops\\"]
+
+
+ oops
+
}
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4083,13 +4060,14 @@ export interface Signature {
component. Explicit default export module top level component. Explicit
default export module top level component.
as TemplateOnlyComponent
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4101,13 +4079,14 @@ export const Exported: TemplateOnlyComponent =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4119,19 +4098,14 @@ export const Exported =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
as TemplateOnlyComponent
-;[\\"oops\\"]
-"
-`;
-
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4143,13 +4117,14 @@ const Private: TemplateOnlyComponent =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4161,87 +4136,14 @@ const Private =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
as TemplateOnlyComponent
-;[\\"oops\\"]
-"
-`;
-
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
-"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
-export interface Signature {
- Element: HTMLElement
- Args: {}
- Yields: []
-}
-
-const ModVar1: TemplateOnlyComponent =
-
- Module variable template. Module variable template. Module variable
- template. Module variable template. Module variable template. Module
- variable template. Module variable template. Module variable template.
-
- ,
- ModVar2: TemplateOnlyComponent =
- Second module variable template.
- ,
- num = 1
-;[\\"oops\\"]
-
-const bool: boolean = false,
- ModVar3: TemplateOnlyComponent =
-
- Module variable template. Module variable template. Module variable
- template. Module variable template. Module variable template. Module
- variable template. Module variable template. Module variable template.
-
- ,
- ModVar4: TemplateOnlyComponent =
- Second module variable template.
-
-;[\\"oops\\"]
-"
-`;
-
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
-"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
-export interface Signature {
- Element: HTMLElement
- Args: {}
- Yields: []
-}
-
-const ModVar1 =
-
- Module variable template. Module variable template. Module variable
- template. Module variable template. Module variable template. Module
- variable template. Module variable template. Module variable template.
-
- as TemplateOnlyComponent,
- ModVar2 =
- Second module variable template.
- as TemplateOnlyComponent,
- num = 1
-;[\\"oops\\"]
-
-const bool: boolean = false,
- ModVar3 =
-
- Module variable template. Module variable template. Module variable
- template. Module variable template. Module variable template. Module
- variable template. Module variable template. Module variable template.
-
- as TemplateOnlyComponent,
- ModVar4 =
- Second module variable template.
- as TemplateOnlyComponent
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > semi: false > oops > without semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4251,11 +4153,13 @@ export interface Signature {
what
as TemplateOnlyComponent
-;[\\"oops\\"]
+
+ oops
+
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
"import Component from \\"@glimmer/component\\"
/** It's a component */
@@ -4265,13 +4169,13 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
+
[\\"oops\\"]
}
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
"import Component from \\"@glimmer/component\\"
/** It's a component */
@@ -4283,27 +4187,95 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
+
[\\"oops\\"]
}
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = (1)[\\"oops\\"]
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+
+;[\\"oops\\"]
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
-"import Component from \\"@glimmer/component\\"
-
-export interface Signature {
- Element: HTMLElement
- Args: {
- myArg: string
- }
- Yields: []
-}
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+
+;[\\"oops\\"]
+
+const What = Hi
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = 1
+;[\\"oops\\"]
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
+"import Component from \\"@glimmer/component\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {
+ myArg: string
+ }
+ Yields: []
+}
/** It's a component */
class MyComponent extends Component {
@@ -4312,13 +4284,13 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
+
[\\"oops\\"]
}
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -4337,7 +4309,25 @@ export interface Signature {
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+export const Exported: TemplateOnlyComponent =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -4355,12 +4345,31 @@ export const Exported =
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = (1)[\\"oops\\"]
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1
+;[\\"oops\\"]
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -4378,7 +4387,44 @@ const Private =
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = 1
+;[\\"oops\\"]
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -4397,7 +4443,8 @@ const ModVar1 =
ModVar2 =
Second module variable template.
as TemplateOnlyComponent,
- num = (1)[\\"oops\\"]
+ num = 1
+;[\\"oops\\"]
const bool: boolean = false,
ModVar3 =
@@ -4414,7 +4461,7 @@ const bool: boolean = false,
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -4430,8 +4477,9 @@ export interface Signature {
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/component-class.gjs 1`] = `
"import Component from \\"@glimmer/component\\"
+
/** It's a component */
class MyComponent extends Component {
@@ -4439,14 +4487,15 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
+
[\\"oops\\"]
}
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
"import Component from \\"@glimmer/component\\"
+
/** It's a component */
class MyComponent extends Component {
get whatever() {}
@@ -4456,19 +4505,88 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
+
[\\"oops\\"]
}
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = (1)[\\"oops\\"]
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+
+;[\\"oops\\"]
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/component-class.gts 1`] = `
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+
+;[\\"oops\\"]
+
+const What = Hi
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = 1
+;[\\"oops\\"]
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/component-class.gts 1`] = `
"import Component from \\"@glimmer/component\\"
+
export interface Signature {
Element: HTMLElement
Args: {
@@ -4484,14 +4602,15 @@ class MyComponent extends Component {
Class top level template. Class top level template. Class top level
template. Class top level template. Class top level template.
- ;
+
[\\"oops\\"]
}
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4508,30 +4627,1461 @@ export interface Signature {
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
Yields: []
}
-export const Exported =
+export const Exported: TemplateOnlyComponent =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
- as TemplateOnlyComponent
+
;[\\"oops\\"]
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = (1)[\\"oops\\"]
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = 1
+;[\\"oops\\"]
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar2 =
+ Second module variable template.
+ as TemplateOnlyComponent,
+ num = 1
+;[\\"oops\\"]
+
+const bool: boolean = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar4 =
+ Second module variable template.
+ as TemplateOnlyComponent
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+
+ what
+ as TemplateOnlyComponent
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+"import Component from \\"@glimmer/component\\"
+
+/** It's a component */
+class MyComponent extends Component {
+
+
+ Class top level template. Class top level template. Class top level
+ template. Class top level template. Class top level template.
+
+
+ [\\"oops\\"]
+}
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+"import Component from \\"@glimmer/component\\"
+
+/** It's a component */
+class MyComponent extends Component {
+ get whatever() {}
+
+
+
+ Class top level template. Class top level template. Class top level
+ template. Class top level template. Class top level template.
+
+
+ [\\"oops\\"]
+}
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = (1)[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+
+;[\\"oops\\"]
+
+const What = Hi
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = (1)[\\"oops\\"]
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/component-class.gts 1`] = `
+"import Component from \\"@glimmer/component\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {
+ myArg: string
+ }
+ Yields: []
+}
+
+/** It's a component */
+class MyComponent extends Component {
+
+
+ Class top level template. Class top level template. Class top level
+ template. Class top level template. Class top level template.
+
+
+ [\\"oops\\"]
+}
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+ as TemplateOnlyComponent
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+export const Exported: TemplateOnlyComponent =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = (1)[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = (1)[\\"oops\\"]
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar2 =
+ Second module variable template.
+ as TemplateOnlyComponent,
+ num = (1)[\\"oops\\"]
+
+const bool: boolean = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar4 =
+ Second module variable template.
+ as TemplateOnlyComponent
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+
+ what
+ as TemplateOnlyComponent
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gjs/component-class.gjs 1`] = `
+"import Component from \\"@glimmer/component\\"
+/** It's a component */
+class MyComponent extends Component {
+
+
+ Class top level template. Class top level template. Class top level
+ template. Class top level template. Class top level template.
+
+
+ [\\"oops\\"]
+}
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gjs/component-class-with-content-before-template.gjs 1`] = `
+"import Component from \\"@glimmer/component\\"
+/** It's a component */
+class MyComponent extends Component {
+ get whatever() {}
+
+
+
+ Class top level template. Class top level template. Class top level
+ template. Class top level template. Class top level template.
+
+
+ [\\"oops\\"]
+}
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = (1)[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+
+;[\\"oops\\"]
+
+const What = Hi
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = (1)[\\"oops\\"]
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/component-class.gts 1`] = `
+"import Component from \\"@glimmer/component\\"
+export interface Signature {
+ Element: HTMLElement
+ Args: {
+ myArg: string
+ }
+ Yields: []
+}
+
+/** It's a component */
+class MyComponent extends Component {
+
+
+ Class top level template. Class top level template. Class top level
+ template. Class top level template. Class top level template.
+
+
+ [\\"oops\\"]
+}
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+ as TemplateOnlyComponent
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+export const Exported: TemplateOnlyComponent =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = (1)[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = (1)[\\"oops\\"]
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar2 =
+ Second module variable template.
+ as TemplateOnlyComponent,
+ num = (1)[\\"oops\\"]
+
+const bool: boolean = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar4 =
+ Second module variable template.
+ as TemplateOnlyComponent
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+
+ what
+ as TemplateOnlyComponent
+;[\\"oops\\"]
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+
+;\`oops\`
+
+const What = Hi
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = 1
+;\`oops\`
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+ as TemplateOnlyComponent
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+export const Exported: TemplateOnlyComponent =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = 1
+;\`oops\`
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar2 =
+ Second module variable template.
+ as TemplateOnlyComponent,
+ num = 1
+;\`oops\`
+
+const bool: boolean = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar4 =
+ Second module variable template.
+ as TemplateOnlyComponent
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+
+ what
+ as TemplateOnlyComponent
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+
+;\`oops\`
+
+const What = Hi
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = 1
+;\`oops\`
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+ as TemplateOnlyComponent
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+export const Exported: TemplateOnlyComponent =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = 1
+;\`oops\`
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar2 =
+ Second module variable template.
+ as TemplateOnlyComponent,
+ num = 1
+;\`oops\`
+
+const bool: boolean = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ as TemplateOnlyComponent,
+ ModVar4 =
+ Second module variable template.
+ as TemplateOnlyComponent
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+
+ what
+ as TemplateOnlyComponent
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+
+;\`oops\`
+
+const What = Hi
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2 = Second module variable template.,
+ num = 1\`oops\`
+
+const bool = false,
+ ModVar3 =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4 = Second module variable template.
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
+ as TemplateOnlyComponent
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+export const Exported: TemplateOnlyComponent =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+export const Exported =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+
+;\`oops\`
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4543,12 +6093,49 @@ const Private =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
as TemplateOnlyComponent
-;[\\"oops\\"]
+;\`oops\`
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = 1\`oops\`
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+
+;\`oops\`
+"
+`;
+
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4565,7 +6152,7 @@ const ModVar1 =
ModVar2 =
Second module variable template.
as TemplateOnlyComponent,
- num = (1)[\\"oops\\"]
+ num = 1\`oops\`
const bool: boolean = false,
ModVar3 =
@@ -4578,12 +6165,13 @@ const bool: boolean = false,
ModVar4 =
Second module variable template.
as TemplateOnlyComponent
-;[\\"oops\\"]
+;\`oops\`
"
`;
-exports[`ambiguous > config > semi: false > ["oops"] > without semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4593,11 +6181,11 @@ export interface Signature {
what
as TemplateOnlyComponent
-;[\\"oops\\"]
+;\`oops\`
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
@@ -4608,7 +6196,7 @@ exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline >
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
@@ -4618,13 +6206,12 @@ exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline >
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1
-;\`oops\`
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1\`oops\`
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
@@ -4637,7 +6224,7 @@ const What = Hi
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -4646,8 +6233,7 @@ exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline >
,
ModVar2 = Second module variable template.,
- num = 1
-;\`oops\`
+ num = 1\`oops\`
const bool = false,
ModVar3 =
@@ -4662,7 +6248,7 @@ const bool = false,
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
@@ -4670,9 +6256,8 @@ exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline >
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4689,9 +6274,8 @@ export interface Signature {
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4707,9 +6291,8 @@ export const Exported: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4725,15 +6308,13 @@ export const Exported =
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1
-;\`oops\`
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1\`oops\`
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4749,9 +6330,8 @@ const Private: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4767,9 +6347,8 @@ const Private =
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4786,8 +6365,7 @@ const ModVar1: TemplateOnlyComponent =
ModVar2: TemplateOnlyComponent =
Second module variable template.
,
- num = 1
-;\`oops\`
+ num = 1\`oops\`
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -4804,9 +6382,8 @@ const bool: boolean = false,
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4823,8 +6400,7 @@ const ModVar1 =
ModVar2 =
Second module variable template.
as TemplateOnlyComponent,
- num = 1
-;\`oops\`
+ num = 1\`oops\`
const bool: boolean = false,
ModVar3 =
@@ -4841,9 +6417,8 @@ const bool: boolean = false,
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
export interface Signature {
Element: HTMLElement
Args: {}
@@ -4857,47 +6432,47 @@ export interface Signature {
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
"const num = 1
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
-;\`oops\`
+;-\\"oops\\"
const What = Hi
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -4907,7 +6482,7 @@ exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newlin
,
ModVar2 = Second module variable template.,
num = 1
-;\`oops\`
+;-\\"oops\\"
const bool = false,
ModVar3 =
@@ -4918,19 +6493,19 @@ const bool = false,
,
ModVar4 = Second module variable template.
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -4945,11 +6520,11 @@ export interface Signature {
component. Explicit default export module top level component. Explicit
default export module top level component.
as TemplateOnlyComponent
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -4963,11 +6538,11 @@ export const Exported: TemplateOnlyComponent =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -4981,17 +6556,17 @@ export const Exported =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
as TemplateOnlyComponent
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
"const num: number = 1
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -5005,11 +6580,11 @@ const Private: TemplateOnlyComponent =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -5023,11 +6598,11 @@ const Private =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
as TemplateOnlyComponent
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -5047,7 +6622,7 @@ const ModVar1: TemplateOnlyComponent =
Second module variable template.
,
num = 1
-;\`oops\`
+;-\\"oops\\"
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -5060,11 +6635,11 @@ const bool: boolean = false,
ModVar4: TemplateOnlyComponent =
Second module variable template.
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -5084,7 +6659,7 @@ const ModVar1 =
Second module variable template.
as TemplateOnlyComponent,
num = 1
-;\`oops\`
+;-\\"oops\\"
const bool: boolean = false,
ModVar3 =
@@ -5097,11 +6672,11 @@ const bool: boolean = false,
ModVar4 =
Second module variable template.
as TemplateOnlyComponent
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -5113,112 +6688,84 @@ export interface Signature {
what
as TemplateOnlyComponent
-;\`oops\`
-"
-`;
-
-exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
-"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
-export interface Signature {
- Element: HTMLElement
- Args: {}
- Yields: []
-}
-
-
+exports[`ambiguous > config > semi: false > -"oops" > with semi, without newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
-;\`oops\`
+
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
-"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
-export interface Signature {
- Element: HTMLElement
- Args: {}
- Yields: []
-}
-
-export const Exported =
+exports[`ambiguous > config > semi: false > -"oops" > with semi, without newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
- as TemplateOnlyComponent
-;\`oops\`
+
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1\`oops\`
+exports[`ambiguous > config > semi: false > -"oops" > with semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
-"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
-export interface Signature {
- Element: HTMLElement
- Args: {}
- Yields: []
-}
-
-const Private =
+exports[`ambiguous > config > semi: false > -"oops" > with semi, without newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
variable template. Private variable template.
- as TemplateOnlyComponent
-;\`oops\`
+
+;-\\"oops\\"
+
+const What = Hi
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
-"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
-
-export interface Signature {
- Element: HTMLElement
- Args: {}
- Yields: []
-}
-
-const ModVar1 =
+exports[`ambiguous > config > semi: false > -"oops" > with semi, without newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+"const ModVar1 =
Module variable template. Module variable template. Module variable
template. Module variable template. Module variable template. Module
variable template. Module variable template. Module variable template.
- as TemplateOnlyComponent,
- ModVar2 =
- Second module variable template.
- as TemplateOnlyComponent,
- num = 1\`oops\`
+ ,
+ ModVar2 = Second module variable template.,
+ num = 1
+;-\\"oops\\"
-const bool: boolean = false,
+const bool = false,
ModVar3 =
Module variable template. Module variable template. Module variable
template. Module variable template. Module variable template. Module
variable template. Module variable template. Module variable template.
- as TemplateOnlyComponent,
- ModVar4 =
- Second module variable template.
- as TemplateOnlyComponent
-;\`oops\`
+ ,
+ ModVar4 = Second module variable template.
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > without semi, with newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, without newline > it formats ../cases/gjs/simple.gjs 1`] = `
+"
+ what
+
+;-\\"oops\\"
+"
+`;
+
+exports[`ambiguous > config > semi: false > -"oops" > with semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -5228,37 +6775,36 @@ export interface Signature {
}
- what
+ Explicit default export module top level component. Explicit default export
+ module top level component. Explicit default export module top level
+ component. Explicit default export module top level component. Explicit
+ default export module top level component.
as TemplateOnlyComponent
-;\`oops\`
-"
-`;
-
-exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, without newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
Yields: []
}
-
- Explicit default export module top level component. Explicit default export
- module top level component. Explicit default export module top level
- component. Explicit default export module top level component. Explicit
- default export module top level component.
- as TemplateOnlyComponent
-;\`oops\`
+export const Exported: TemplateOnlyComponent =
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, without newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
@@ -5270,17 +6816,37 @@ export const Exported =
template. Exported variable template. Exported variable template. Exported
variable template. Exported variable template.
as TemplateOnlyComponent
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1\`oops\`
+exports[`ambiguous > config > semi: false > -"oops" > with semi, without newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, without newline > it formats ../cases/gts/mod-var.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const Private: TemplateOnlyComponent =
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+
+;-\\"oops\\"
+"
+`;
+
+exports[`ambiguous > config > semi: false > -"oops" > with semi, without newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
@@ -5292,12 +6858,50 @@ const Private =
template. Private variable template. Private variable template. Private
variable template. Private variable template.
as TemplateOnlyComponent
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, without newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
+export interface Signature {
+ Element: HTMLElement
+ Args: {}
+ Yields: []
+}
+
+const ModVar1: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar2: TemplateOnlyComponent =
+ Second module variable template.
+ ,
+ num = 1
+;-\\"oops\\"
+
+const bool: boolean = false,
+ ModVar3: TemplateOnlyComponent =
+
+ Module variable template. Module variable template. Module variable
+ template. Module variable template. Module variable template. Module
+ variable template. Module variable template. Module variable template.
+
+ ,
+ ModVar4: TemplateOnlyComponent =
+ Second module variable template.
+
+;-\\"oops\\"
+"
+`;
+
+exports[`ambiguous > config > semi: false > -"oops" > with semi, without newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
@@ -5314,7 +6918,8 @@ const ModVar1 =
ModVar2 =
Second module variable template.
as TemplateOnlyComponent,
- num = 1\`oops\`
+ num = 1
+;-\\"oops\\"
const bool: boolean = false,
ModVar3 =
@@ -5327,12 +6932,13 @@ const bool: boolean = false,
ModVar4 =
Second module variable template.
as TemplateOnlyComponent
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > \`oops\` > without semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > with semi, without newline > it formats ../cases/gts/simple.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
+
export interface Signature {
Element: HTMLElement
Args: {}
@@ -5342,11 +6948,11 @@ export interface Signature {
what
as TemplateOnlyComponent
-;\`oops\`
+;-\\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > without semi, with newline > it formats ../cases/gjs/default-export.gjs 1`] = `
"
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
@@ -5357,7 +6963,7 @@ exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline >
"
`;
-exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > without semi, with newline > it formats ../cases/gjs/exported-mod-var.gjs 1`] = `
"export const Exported =
Exported variable template. Exported variable template. Exported variable
template. Exported variable template. Exported variable template. Exported
@@ -5367,13 +6973,12 @@ exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline >
"
`;
-exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
-"const num = 1
-;-\\"oops\\"
+exports[`ambiguous > config > semi: false > -"oops" > without semi, with newline > it formats ../cases/gjs/js-only.gjs 1`] = `
+"const num = 1 - \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > without semi, with newline > it formats ../cases/gjs/mod-var.gjs 1`] = `
"const Private =
Private variable template. Private variable template. Private variable
template. Private variable template. Private variable template. Private
@@ -5386,7 +6991,7 @@ const What = Hi
"
`;
-exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > without semi, with newline > it formats ../cases/gjs/multiple-declarations.gjs 1`] = `
"const ModVar1 =
Module variable template. Module variable template. Module variable
@@ -5395,8 +7000,7 @@ exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline >
,
ModVar2 = Second module variable template.,
- num = 1
-;-\\"oops\\"
+ num = 1 - \\"oops\\"
const bool = false,
ModVar3 =
@@ -5411,7 +7015,7 @@ const bool = false,
"
`;
-exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > without semi, with newline > it formats ../cases/gjs/simple.gjs 1`] = `
"
what
@@ -5419,7 +7023,7 @@ exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline >
"
`;
-exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > without semi, with newline > it formats ../cases/gts/default-export.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -5428,17 +7032,16 @@ export interface Signature {
Yields: []
}
-
+export default (
Explicit default export module top level component. Explicit default export
module top level component. Explicit default export module top level
component. Explicit default export module top level component. Explicit
default export module top level component.
- as TemplateOnlyComponent
-;-\\"oops\\"
+ as TemplateOnlyComponent) - \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > without semi, with newline > it formats ../cases/gts/exported-mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -5456,7 +7059,7 @@ export const Exported: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > without semi, with newline > it formats ../cases/gts/exported-mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -5465,22 +7068,21 @@ export interface Signature {
Yields: []
}
-export const Exported =
- Exported variable template. Exported variable template. Exported variable
- template. Exported variable template. Exported variable template. Exported
- variable template. Exported variable template.
- as TemplateOnlyComponent
-;-\\"oops\\"
+export const Exported =
+ (
+ Exported variable template. Exported variable template. Exported variable
+ template. Exported variable template. Exported variable template. Exported
+ variable template. Exported variable template.
+ as TemplateOnlyComponent) - \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
-"const num: number = 1
-;-\\"oops\\"
+exports[`ambiguous > config > semi: false > -"oops" > without semi, with newline > it formats ../cases/gts/js-only.gts 1`] = `
+"const num: number = 1 - \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > without semi, with newline > it formats ../cases/gts/mod-var.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -5498,7 +7100,7 @@ const Private: TemplateOnlyComponent =
"
`;
-exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > without semi, with newline > it formats ../cases/gts/mod-var-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -5507,16 +7109,16 @@ export interface Signature {
Yields: []
}
-const Private =
- Private variable template. Private variable template. Private variable
- template. Private variable template. Private variable template. Private
- variable template. Private variable template.
- as TemplateOnlyComponent
-;-\\"oops\\"
+const Private =
+ (
+ Private variable template. Private variable template. Private variable
+ template. Private variable template. Private variable template. Private
+ variable template. Private variable template.
+ as TemplateOnlyComponent) - \\"oops\\"
"
`;
-exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > without semi, with newline > it formats ../cases/gts/multiple-declarations.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -5535,8 +7137,7 @@ const ModVar1: TemplateOnlyComponent =
ModVar2: TemplateOnlyComponent =
Second module variable template.
,
- num = 1
-;-\\"oops\\"
+ num = 1 - \\"oops\\"
const bool: boolean = false,
ModVar3: TemplateOnlyComponent =
@@ -5553,7 +7154,7 @@ const bool: boolean = false,
"
`;
-exports[`ambiguous > config > semi: false > -"oops" > with semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
+exports[`ambiguous > config > semi: false > -"oops" > without semi, with newline > it formats ../cases/gts/multiple-declarations-with-as.gts 1`] = `
"import type { TemplateOnlyComponent } from \\"@ember/component/template-only\\"
export interface Signature {
@@ -5572,8 +7173,7 @@ const ModVar1 =
ModVar2 =
Second module variable template.
as TemplateOnlyComponent,
- num = 1
-;-\\"oops\\"
+ num = 1 - \\"oops\\"
const bool: boolean = false,
ModVar3 =