You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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.
If I run:
The raw AST contains
kotlinFile
/topLevelObject
/declaration
/propertyDeclaration
/propertyDelegate
which describes theby 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. TheKlassDeclararation
forval answer
is there, but it has no children (no expressions or anything else).The text was updated successfully, but these errors were encountered: