-
Notifications
You must be signed in to change notification settings - Fork 74
Fix Typed Class Constants parsing #1140
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
Changes from 5 commits
f60fb7a
2c47209
00bfd14
7fb5e37
0ac9d15
94d4069
185fd51
67d8cf3
eddf036
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -308,18 +308,7 @@ Program { | |
| "attrGroups": [], | ||
| "body": [ | ||
| ClassConstant { | ||
| "attrGroups": [ | ||
| AttrGroup { | ||
| "attrs": [ | ||
| Attribute { | ||
| "args": [], | ||
| "kind": "attribute", | ||
| "name": "B", | ||
| }, | ||
| ], | ||
| "kind": "attrgroup", | ||
| }, | ||
| ], | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Attribute groups are lost too |
||
| "attrGroups": undefined, | ||
| "constants": [ | ||
| Constant { | ||
| "kind": "constant", | ||
|
|
@@ -335,7 +324,18 @@ Program { | |
| ], | ||
| "final": false, | ||
| "kind": "classconstant", | ||
| "nullable": false, | ||
| "nullable": [ | ||
| AttrGroup { | ||
| "attrs": [ | ||
| Attribute { | ||
| "args": [], | ||
| "kind": "attribute", | ||
| "name": "B", | ||
| }, | ||
| ], | ||
| "kind": "attrgroup", | ||
| }, | ||
|
||
| ], | ||
| "type": null, | ||
| "visibility": "", | ||
| }, | ||
|
|
@@ -499,18 +499,7 @@ Program { | |
| ], | ||
| "body": [ | ||
| ClassConstant { | ||
| "attrGroups": [ | ||
| AttrGroup { | ||
| "attrs": [ | ||
| Attribute { | ||
| "args": [], | ||
| "kind": "attribute", | ||
| "name": "C", | ||
| }, | ||
| ], | ||
| "kind": "attrgroup", | ||
| }, | ||
| ], | ||
| "attrGroups": undefined, | ||
| "constants": [ | ||
| Constant { | ||
| "kind": "constant", | ||
|
|
@@ -526,7 +515,18 @@ Program { | |
| ], | ||
| "final": false, | ||
| "kind": "classconstant", | ||
| "nullable": false, | ||
| "nullable": [ | ||
| AttrGroup { | ||
| "attrs": [ | ||
| Attribute { | ||
| "args": [], | ||
| "kind": "attribute", | ||
| "name": "C", | ||
| }, | ||
| ], | ||
| "kind": "attrgroup", | ||
| }, | ||
| ], | ||
| "type": null, | ||
| "visibility": "", | ||
| }, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks as though the source code location is lost during parsing as well