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

[svelte-parse] shorthand property missing position info #175

Closed
halfnelson opened this issue Nov 9, 2020 · 2 comments
Closed

[svelte-parse] shorthand property missing position info #175

halfnelson opened this issue Nov 9, 2020 · 2 comments

Comments

@halfnelson
Copy link
Contributor

When I parse

<test {value} />

I get a svelteElement with a svelteProperty as expected, but the expression is missing position information, and the property is missing end location

I get

      ...
      "type": "svelteElement",
      "tagName": "test",
      "properties": [
        {
          "type": "svelteProperty",
          "name": "value",
          "value": [
            {
              "type": "svelteExpression",
              "value": "value"
            }
          ],
          "modifiers": [],
          "shorthand": "expression",
          "position": {
            "start": {
              "line": 1,
              "column": 7,
              "offset": 6
            },
            "end": {}
          }
        }
      ],
@halfnelson
Copy link
Contributor Author

Thanks 👍

@pngwn
Copy link
Owner

pngwn commented Nov 10, 2020

The publish step has decided to fail for some reason, I'll take a closer look at this tonight. I'm not sure what is going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants