tree-sitter-java icon indicating copy to clipboard operation
tree-sitter-java copied to clipboard

Java grammar for tree-sitter

Results 33 tree-sitter-java issues
Sort by recently updated
recently updated
newest added

### Situation description Hi there, thank you for creating this great library! I am in a situation where it would be great to have access to the JSON representation of...

```java "This is a " + "two-line string"; ``` currently results in the following parse tree: ``` (program (string_literal) (string_literal) (string_literal) (ERROR (string_literal) (UNEXPECTED '+')) (string_literal)) ```

todo

Hello, can you add to your readme which version of java you are able to process ?

### Problem description Consider the following snippet where error happens if `pos++` is changed to `++pos` . ``` switch (c) { case '\r': case '\n': case '\t': case ' ':...

### Problem description Consider the following method: ``` @CheckReturnValue @Nonnull static public String arrayToString(@Nonnull E[] v){ StringBuilder retval=new StringBuilder(); boolean first=true; for ( E e : v) { if (!first)...

### Problem description Incorrect type assigned to attributes when you use the entire namespace. Working with Spring you use `@Service` and it's recognized as an attribute (this is correct) ![image](https://user-images.githubusercontent.com/58179604/133937537-44e1ad93-b6f4-445e-9b84-f5e4d41c68bb.png)...

Checklist: - [ ] All tests pass in CI. - [ ] There are sufficient tests for the new fix/feature. - [x] Grammar rules have not been renamed unless absolutely...

### Problem description Consider the following file: ``` import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Retention; import org.junit.Test; import org.junit.runners.JUnit4; /** @author [email protected] (Liam Miller-Cushon) */ @RunWith(JUnit4.class) public class SuggestedFixesTest { /** Edit...

### Problem description I noticed method references are not yet supported (NeoVim 0.5 nightly with the nvim-treesitter plugin), for example: ```java Interface::methodName Class::methodName this::methodName ```

These are the repositories I'm testing the Java parser against. | Repository | % error free 3/6 | % error free 3/13 | Pass? | |---|---|---|---| | [`google/guave`](https://github.com/google/guava) | 44%...