Skip to content

Change the variant Lit in JsxAttrValue into Str #10584

@bvanjoi

Description

@bvanjoi

We should change Lit to Str because the other variants do not represent valid syntax.

#[tag("StringLiteral")]
#[tag("BooleanLiteral")]
#[tag("NullLiteral")]
#[tag("NumericLiteral")]
#[tag("RegExpLiteral")]
#[tag("JSXText")]
Lit(Lit),

reference:

https://github.com/microsoft/TypeScript/blob/355b9e0984671f7eea9040f0ac8b68c16361729a/src/compiler/types.ts#L3282

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions