mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
interface declaration tests
This commit is contained in:
parent
533b72930b
commit
f524368c0b
14
test/fixtures/java/corpus/Continue0.A.java
vendored
Normal file
14
test/fixtures/java/corpus/Continue0.A.java
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
public class Test {
|
||||
|
||||
public static void main(String args[]) {
|
||||
int [] numbers = {10, 20, 30, 40, 50};
|
||||
|
||||
for(int x : numbers ) {
|
||||
if( x == 30 ) {
|
||||
continue;
|
||||
}
|
||||
System.out.print( x );
|
||||
System.out.print("\n");
|
||||
}
|
||||
}
|
||||
}
|
14
test/fixtures/java/corpus/Continue1.A.java
vendored
Normal file
14
test/fixtures/java/corpus/Continue1.A.java
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
public class Test {
|
||||
|
||||
public static void main(String args[]) {
|
||||
int [] numbers = {10, 20, 30, 40, 50};
|
||||
|
||||
for(int x : numbers ) {
|
||||
if( x == 30 ) {
|
||||
continue;
|
||||
}
|
||||
System.out.print( x );
|
||||
System.out.print("\n");
|
||||
}
|
||||
}
|
||||
}
|
3
test/fixtures/java/corpus/Interface.A.java
vendored
Normal file
3
test/fixtures/java/corpus/Interface.A.java
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
interface Top {
|
||||
}
|
||||
// normal declaration
|
@ -1,3 +1,4 @@
|
||||
@interface TerminationHandle {
|
||||
Bar foo = 1;
|
||||
}
|
||||
// annotation type declaration
|
15
test/fixtures/java/corpus/Interface.diffA-B.txt
vendored
Normal file
15
test/fixtures/java/corpus/Interface.diffA-B.txt
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
(Statements
|
||||
(InterfaceDeclaration
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
(Statements
|
||||
{+(Statements
|
||||
{+(Assignment
|
||||
{+(Variable
|
||||
{+(Identifier)+}
|
||||
{+(Identifier)+})+}
|
||||
{+(Integer)+})+})+}))
|
||||
(Context
|
||||
{ (Comment)
|
||||
->(Comment) }
|
||||
(Empty)))
|
15
test/fixtures/java/corpus/Interface.diffB-A.txt
vendored
Normal file
15
test/fixtures/java/corpus/Interface.diffB-A.txt
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
(Statements
|
||||
(InterfaceDeclaration
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
(Statements
|
||||
{-(Statements
|
||||
{-(Assignment
|
||||
{-(Variable
|
||||
{-(Identifier)-}
|
||||
{-(Identifier)-})-}
|
||||
{-(Integer)-})-})-}))
|
||||
(Context
|
||||
{ (Comment)
|
||||
->(Comment) }
|
||||
(Empty)))
|
7
test/fixtures/java/corpus/Interface.parseA.txt
vendored
Normal file
7
test/fixtures/java/corpus/Interface.parseA.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
(Statements
|
||||
(InterfaceDeclaration
|
||||
(Identifier)
|
||||
(Statements))
|
||||
(Context
|
||||
(Comment)
|
||||
(Empty)))
|
13
test/fixtures/java/corpus/Interface.parseB.txt
vendored
Normal file
13
test/fixtures/java/corpus/Interface.parseB.txt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
(Statements
|
||||
(InterfaceDeclaration
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Integer)))))
|
||||
(Context
|
||||
(Comment)
|
||||
(Empty)))
|
2
test/fixtures/java/corpus/interface.java
vendored
2
test/fixtures/java/corpus/interface.java
vendored
@ -1,2 +0,0 @@
|
||||
interface Top {
|
||||
}
|
Loading…
Reference in New Issue
Block a user