Commit 71385f1
authored
feat(java): add @return.inner & @return.outer text objects (#788)
The query handles methods with a typical return as you'd expect:
```java
class Example {
private String example() {
return "example";
}
}
```
I made the wildcard child node optional `(_)?` in the query so
`@return.outer` matches `void` returns:
```java
class Example {
private void example() {
return;
}
}
```1 parent 89ebe73 commit 71385f1
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
0 commit comments