-
Notifications
You must be signed in to change notification settings - Fork 23
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
Constructor parameters and properties defined in constructor #1
Comments
Hi @martinflorek, please try Version I removed KlassArgument and the constructor is now reported as You can find the new AST structure of your test case here: https://github.com/kotlinx/ast/blob/4f20128eaf4d5d59b6c68448bfa53c266c823eec/kotlin/src/commonTest/resources/testdata/ConstructorParametersAndProperties.summary.txt |
Now all my tests are crashing on calling Parsing anything leads to a new structure and |
Sorry, this is not true. The constructor works OK and I have other special case that is causing the crash with |
Hi @martinflorek, can you provide a stacktrace? Or a small kotlin file example causing this? All unit tests included in I will add a test that tries to parse https://github.com/arrow-kt/arrow to find the bug this evening (I'm living in Germany, currently GMT+2) |
I have added a minimalistic example in #2 that leads to weird AST structure which crashes after calling |
I think this issue is resolved now, like #2. |
The parser now handles "escaped" characters inside annotations' values but I have found another missing node.
The AST does not contain constructor parameters and properties declared in constructor e.g.:
The text was updated successfully, but these errors were encountered: