rahul3509

Results 8 comments of rahul3509

Hi @timtebeek, I am currently debugging the issue, i am new to antlr so most of my free time is going into understanding ANTLRv4. Although I have observed another odd...

While debugging I observed that comments are added to prefix object where it considers both whitespaces and comments as equal probability of occurrence. Forwarding both white spaces and comments to...

I was able to pin point the methods responsible to identify comments, as i mentioned in the previous comment prefix object is what stores the comments, this code here https://github.com/openrewrite/rewrite/blob/6602fe7ddc634787070bd58c1aa96081fb6c6c7c/rewrite-hcl/src/main/java/org/openrewrite/hcl/internal/HclParserVisitor.java#L689...

Hey @timtebeek https://github.com/openrewrite/rewrite/blob/6602fe7ddc634787070bd58c1aa96081fb6c6c7c/rewrite-hcl/src/main/java/org/openrewrite/hcl/internal/HclParserVisitor.java#L180 here there is a call for the spaces and comments present after the `a=1` and https://github.com/openrewrite/rewrite/blob/6602fe7ddc634787070bd58c1aa96081fb6c6c7c/rewrite-hcl/src/main/java/org/openrewrite/hcl/internal/HclParserVisitor.java#L717 This function will get the source before some delimiter, not when...

hi @timtebeek , can you tell me why case '//': is empty. And also when the value is '//' it is matching with '/*' which shouldn't happen. ![image](https://github.com/user-attachments/assets/561b0f34-31d8-4c21-b0df-1c0134651214)

worked, I think we fixed the issue. One weird thing that is happening here in switch case is that. when `source.substring(delimIndex, delimIndex + 2)` value is `//` but it matches...

How do i verify that it doesn't break anything else? will running all the tests be enough?

Can you tell what are the next steps to do? All tests passed.