ast
ast copied to clipboard
Generic AST parsing library for kotlin multiplatform
Why column is called `row`? It appears in what `astInfoOrNull` returns. Is it some slang/peculiarity in among parser writers? Or some typo? Or maybe I am mistaken about how English...
https://github.com/kotlinx/ast#using-with-gradle tells me ``` dependencies { // please look at https://jitpack.io/#drieks/antlr-kotlin to find the latest version api("com.github.kotlinx.ast:grammar-kotlin-parser-antlr-kotlin:0123456789") ``` or ``` // please look at https://jitpack.io/#drieks/antlr-kotlin to find the latest version...
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2 to 3.4.1. Release notes Sourced from actions/setup-java's releases. v3.4.1 In scope of this release we updated actions/cache package as the new version contains fixes for caching...
Right now, the Kotlin parser uses `AntlrKotlinErrorListener` to deal with errors while parsing. That class throws `ParseCancellationException` on syntax error, which seems to be a dummy class that doesn't hold...
I used this tool to parse the kotlin source code, but I want to get the code block of each method parsed out for the inspection of method code changes
Bumps logback-classic from 1.2.10 to 1.2.11. [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...
If I run: ```kotlin KotlinGrammarAntlrKotlinParser.parseKotlinFile(AstSource.String("source", "//line comment")) ``` The resulting raw AST contains the line comment (as expected). If I call `summary()` on that AST, the line comment is represented...
If I run: ```kotlin 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...
When parsing AST, how can I find out on which line a particular Class or Function was declared?
These files are currently not included in `SelfTest.kt` because the processing does not finish within a reasonable time: * KotlinLexer.kt * KotlinParser.kt * UnicodeClasses.kt