Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[types] - ctxt attribute #9564

Open
sla100 opened this issue Sep 18, 2024 · 0 comments
Open

[types] - ctxt attribute #9564

sla100 opened this issue Sep 18, 2024 · 0 comments

Comments

@sla100
Copy link

sla100 commented Sep 18, 2024

Type declarations claims that ctxt attribute are part of span object:
https://github.com/swc-project/swc/blob/85cc2bd79c3193cb0a8b54e4fce0efc1aa15b271/packages/types/index.ts#L1163C1-L1167C2

But in fact there are located placed next to each other:

input:

let a;

AST:

{
  "body": [
    {
      "type": "VariableDeclaration",
      "span": {
        "start": 0,
        "end": 6
      },
      "ctxt": 0
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant