forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Units,java: record an input file causing a bug (universal-ctags#1739,…
… anonymous class) Signed-off-by: Masatake YAMATO <yamato@redhat.com>
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--sort=no | ||
--fields=+n | ||
--kinds-Java=+l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
input input.java /^public class input {$/;" c line:2 | ||
greeting input.java /^ interface greeting {$/;" i line:3 class:input | ||
greet input.java /^ public void greet(String word);$/;" m line:4 interface:input.greeting | ||
hello input.java /^ public void hello () {$/;" m line:7 class:input | ||
g input.java /^ greeting g = new greeting() {$/;" l line:8 method:input.hello | ||
anonXXX input.java /^ greeting g = new greeting() {$/;" c line:8 method:input.hello | ||
greet input.java /^ public void greet (String word) {$/;" m line:9 method:input.hello.anonXXX | ||
bye input.java /^ public void bye () {$/;" m line:14 class:input | ||
h input.java /^ greeting h = new greeting() {$/;" l line:15 | ||
anonYYY input.java /^ greeting g = new greeting() {$/;" c line:15 method:input.bye | ||
greet input.java /^ public void greet (String word) {$/;" m line:16 method:input.hello.anonYYY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// See #1739 | ||
public class input { | ||
interface greeting { | ||
public void greet(String word); | ||
} | ||
|
||
public void hello () { | ||
greeting g = new greeting() { | ||
public void greet (String word) { | ||
} | ||
}; | ||
g.greet("hello"); | ||
} | ||
public void bye () { | ||
greeting h = new greeting() { | ||
public void greet (String word) { | ||
} | ||
}; | ||
h.greet("bye"); | ||
} | ||
|
||
} |