Skip to content

"Token end is child end" when '= ${id}id' is used in a property annotation #63598

Description

@DanielRosenwasser

Happens in both 6.0 and 7.0 at the moment.

type X = { prop: = `${abc}`xyz }

Format the document.

Debug Failure. False expression: Token end is child end
Error: Debug Failure. False expression: Token end is child end
    at processChildNode (typescript.js:182787:17)
    at typescript.js:182718:9
    at visitNode2 (typescript.js:32551:18)
    at forEachChildInPropertySignature (typescript.js:32607:59)
    at forEachChild (typescript.js:33072:35)
    at processNode (typescript.js:182715:5)
    at processChildNode (typescript.js:182794:7)
    at processChildNodes (typescript.js:182837:32)
    at typescript.js:182731:9
    at visitNodes (typescript.js:32556:14)
    at forEachChildInTypeLiteral (typescript.js:32666:12)
    at forEachChild (typescript.js:33072:35)
    at processNode (typescript.js:182715:5)
    at processChildNode (typescript.js:182794:7)
    at typescript.js:182718:9
    at visitNode2 (typescript.js:32551:18)
    at forEachChildInTypeAliasDeclaration (typescript.js:32842:144)
    at forEachChild (typescript.js:33072:35)
    at processNode (typescript.js:182715:5)
    at formatSpanWorker (typescript.js:182512:5)
    at typescript.js:182482:19
    at getFormattingScanner (typescript.js:181224:15)
    at formatSpan (typescript.js:182477:10)
    at Object.formatSelection (typescript.js:182348:10)
    at Object.getFormattingEditsForRange (typescript.js:154136:34)
    at IpcIOSession.getFormattingEditsForRange (typescript.js:196749:35)
    at format (typescript.js:195068:43)
    at typescript.js:197591:15
    at IpcIOSession.executeWithRequestId (typescript.js:197580:14)
    at IpcIOSession.executeCommand (typescript.js:197589:29)
    at IpcIOSession.onMessage (typescript.js:197637:68)
    at process.<anonymous> (_tsserver.js:519:14)
    at process.emit (node:events:509:28)
    at emit (node:internal/child_process:972:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:91:21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions