We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you have this IDL:
/* */ const string asdf = 'sdf'
The AST will return an empty document:
{ "type": "ThriftDocument", "body": [] }
Another example:
/* */ some string */ const string test = 'asdf'
You get:
{ "type": "ThriftDocument", "body": [ { "type": "ConstDefinition", "name": { "type": "Identifier", "value": "test", "loc": { "start": { "line": 3, "column": 14, "index": 34 }, "end": { "line": 3, "column": 18, "index": 38 } } }, "fieldType": { "type": "StringKeyword", "loc": { "start": { "line": 3, "column": 7, "index": 27 }, "end": { "line": 3, "column": 13, "index": 33 } } }, "initializer": { "type": "StringLiteral", "value": "asdf", "loc": { "start": { "line": 3, "column": 21, "index": 41 }, "end": { "line": 3, "column": 27, "index": 47 } } }, "comments": [ { "type": "CommentBlock", "value": [ "some string" ], "loc": { "start": { "line": 1, "column": 1, "index": 0 }, "end": { "line": 2, "column": 15, "index": 20 } } } ], "loc": { "start": { "line": 3, "column": 1, "index": 21 }, "end": { "line": 3, "column": 27, "index": 47 } } } ] }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
If you have this IDL:
The AST will return an empty document:
Another example:
You get:
The text was updated successfully, but these errors were encountered: