Repository navigation
Closed
Description
I attempted to invoke rewrap on this comment:
/**
* Corresponds to a path in expression position.
*
* ```hbs
* this
* this.x
* @x
* @x.y
* x
* x.y
* ```
*
* ## Note
*
* An expression is **not** an `ASTv2.PathExpression` if it is a bare identifier and that identifier
* is not in scope or a known keyword.
*
* In strict mode, all identifiers resolve to {@linkcode PathExpressions} or syntax errors if they
* refer to variables that are not in scope.
*
* In classic mode, they
* may also resolve to {@linkcode ResolvedAppendable}s, {@linkcode ResolvedHelperCallee},
* {@linkcode ResolvedModifierCallee} or {@linkcode ResolvedComponentCallee}s.
*
* ### `ResolvedAppendable`
*
* ```hbs
* {{hello @world}}
* ```
*
* In this example, `hello` is not an `ASTv2.PathExpression`, since it is not in scope. Instead, it
* is represented as a {@linkcode ResolvedAppendable}, since it may either be a component or helper,
* depending on the value of `hello` resolved at runtime.
*
* ### `ResolvedHelperCallee`
*
* In this example:
*
* ```hbs
* {{#let (helper 'hello') as |hello|}}
* {{hello (world)}}
* {{/let}}
* ```
*
* - `hello` is a `PathExpression`, since it is an in-scope variable.
* - `world` is a `ResolvedHelperCallee`, since the `()` syntax only allows free references to
* resolve to a helper.
*
* ### `PathExpression`
*
* Finally, in this example:
*
* ```hbs
* {{#let @hello as |hello|}}
* {{hello @world}}
*
* {{#let hello as |h|}}
* {{h @world}}
* {{/let}}
* {{/let}}
* </template>
* ```
*
* Both `hello` and `h` are represented as `PathExpression`s, since they are in-scope variables.
*/And rewrap replaced the spaces with nulls:
I can reproduce the bug by creating a new file with just the comment in it, setting the language to TypeScript, and invoking rewrap.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone

Activity
dnut commentedon Oct 24, 2026
This has been fixed and released in version 18.3.0.