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

Property delegate not available in summary #69

Open
henrikbarium opened this issue Mar 3, 2022 · 2 comments
Open

Property delegate not available in summary #69

henrikbarium opened this issue Mar 3, 2022 · 2 comments
Labels
enhancement New feature or request feedback waiting for feedback

Comments

@henrikbarium
Copy link

If I run:

KotlinGrammarAntlrKotlinParser.parseKotlinFile(AstSource.String("source", "val answer by lazy { 42 }"))

The raw AST contains kotlinFile/topLevelObject/declaration/propertyDeclaration/propertyDelegate which describes the by lazy { 42 } part.

However, in the summary AST that I get back from rawAst.summary(false).get() I cannot find any reference to the property delegation. The KlassDeclararation for val answer is there, but it has no children (no expressions or anything else).

@drieks
Copy link
Collaborator

drieks commented Mar 3, 2022

Hi @henrikbarium, thank you for reporting, I will fix it.

@drieks
Copy link
Collaborator

drieks commented Mar 4, 2022

Hi @henrikbarium,
code blocks are currently not supported. I can try to add a "by" marker to KlassDeclaration, but the function invocation lazy { 42 } can not be expressed because there are many ast node types missing. See #21 for more details. Please let me know if you have any questions.

@drieks drieks added enhancement New feature or request feedback waiting for feedback labels Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feedback waiting for feedback
Projects
None yet
Development

No branches or pull requests

2 participants