mirror of
https://github.com/github/semantic.git
synced 2025-01-05 05:58:34 +03:00
Merge pull request #2092 from github/test-java-assignment-part-2
Test java assignment part 2
This commit is contained in:
commit
986cc48c46
5
test/fixtures/java/corpus/ClassLiteral.B.java
vendored
Normal file
5
test/fixtures/java/corpus/ClassLiteral.B.java
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
class Dino {
|
||||
public static void normalError() {
|
||||
Class<String> c = String.class;
|
||||
}
|
||||
}
|
24
test/fixtures/java/corpus/ClassLiteral.diffA-B.txt
vendored
Normal file
24
test/fixtures/java/corpus/ClassLiteral.diffA-B.txt
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
{+(AccessibilityModifier)+}
|
||||
{+(AccessibilityModifier)+}
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
{+(GreaterThan
|
||||
{+(LessThan
|
||||
{+(Identifier)+}
|
||||
{+(Identifier)+})+}
|
||||
{+(Assignment
|
||||
{+(Identifier)+}
|
||||
{+(ClassLiteral
|
||||
{+(Identifier)+})+})+})+}
|
||||
{-(Call
|
||||
{-(Identifier)-}
|
||||
{-(ClassLiteral
|
||||
{-(Identifier)-})-}
|
||||
{-(Empty)-})-})))))
|
24
test/fixtures/java/corpus/ClassLiteral.diffB-A.txt
vendored
Normal file
24
test/fixtures/java/corpus/ClassLiteral.diffB-A.txt
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
{-(AccessibilityModifier)-}
|
||||
{-(AccessibilityModifier)-}
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
{+(Call
|
||||
{+(Identifier)+}
|
||||
{+(ClassLiteral
|
||||
{+(Identifier)+})+}
|
||||
{+(Empty)+})+}
|
||||
{-(GreaterThan
|
||||
{-(LessThan
|
||||
{-(Identifier)-}
|
||||
{-(Identifier)-})-}
|
||||
{-(Assignment
|
||||
{-(Identifier)-}
|
||||
{-(ClassLiteral
|
||||
{-(Identifier)-})-})-})-})))))
|
14
test/fixtures/java/corpus/ClassLiteral.parseA.txt
vendored
Normal file
14
test/fixtures/java/corpus/ClassLiteral.parseA.txt
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Call
|
||||
(Identifier)
|
||||
(ClassLiteral
|
||||
(Identifier))
|
||||
(Empty)))))))
|
19
test/fixtures/java/corpus/ClassLiteral.parseB.txt
vendored
Normal file
19
test/fixtures/java/corpus/ClassLiteral.parseB.txt
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(AccessibilityModifier)
|
||||
(AccessibilityModifier)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(GreaterThan
|
||||
(LessThan
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Assignment
|
||||
(Identifier)
|
||||
(ClassLiteral
|
||||
(Identifier)))))))))
|
7
test/fixtures/java/corpus/Continue.B.java
vendored
Normal file
7
test/fixtures/java/corpus/Continue.B.java
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
if (i > 4 && i < 9) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
30
test/fixtures/java/corpus/Continue.diffA-B.txt
vendored
Normal file
30
test/fixtures/java/corpus/Continue.diffA-B.txt
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
(Statements
|
||||
(Class
|
||||
{-(AccessibilityModifier)-}
|
||||
(Identifier)
|
||||
(Statements
|
||||
{+(Method
|
||||
{+(Void)+}
|
||||
{+(AccessibilityModifier)+}
|
||||
{+(AccessibilityModifier)+}
|
||||
{+(Empty)+}
|
||||
{+(Identifier)+}
|
||||
{+(Annotation
|
||||
{+(Identifier)+}
|
||||
{+(Array
|
||||
{+(Empty)+}
|
||||
{+(Identifier)+})+})+}
|
||||
{+(Statements
|
||||
{+(If
|
||||
{+(And
|
||||
{+(GreaterThan
|
||||
{+(Identifier)+}
|
||||
{+(Integer)+})+}
|
||||
{+(LessThan
|
||||
{+(Identifier)+}
|
||||
{+(Integer)+})+})+}
|
||||
{+(Statements
|
||||
{+(Continue
|
||||
{+(Empty)+})+})+}
|
||||
{+(Empty)+})+})+})+}
|
||||
{-(Error)-})))
|
30
test/fixtures/java/corpus/Continue.diffB-A.txt
vendored
Normal file
30
test/fixtures/java/corpus/Continue.diffB-A.txt
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
(Statements
|
||||
(Class
|
||||
{+(AccessibilityModifier)+}
|
||||
(Identifier)
|
||||
(Statements
|
||||
{+(Error)+}
|
||||
{-(Method
|
||||
{-(Void)-}
|
||||
{-(AccessibilityModifier)-}
|
||||
{-(AccessibilityModifier)-}
|
||||
{-(Empty)-}
|
||||
{-(Identifier)-}
|
||||
{-(Annotation
|
||||
{-(Identifier)-}
|
||||
{-(Array
|
||||
{-(Empty)-}
|
||||
{-(Identifier)-})-})-}
|
||||
{-(Statements
|
||||
{-(If
|
||||
{-(And
|
||||
{-(GreaterThan
|
||||
{-(Identifier)-}
|
||||
{-(Integer)-})-}
|
||||
{-(LessThan
|
||||
{-(Identifier)-}
|
||||
{-(Integer)-})-})-}
|
||||
{-(Statements
|
||||
{-(Continue
|
||||
{-(Empty)-})-})-}
|
||||
{-(Empty)-})-})-})-})))
|
6
test/fixtures/java/corpus/Continue.parseA.txt
vendored
Normal file
6
test/fixtures/java/corpus/Continue.parseA.txt
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
(Statements
|
||||
(Class
|
||||
(AccessibilityModifier)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Error))))
|
28
test/fixtures/java/corpus/Continue.parseB.txt
vendored
Normal file
28
test/fixtures/java/corpus/Continue.parseB.txt
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(AccessibilityModifier)
|
||||
(AccessibilityModifier)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Array
|
||||
(Empty)
|
||||
(Identifier)))
|
||||
(Statements
|
||||
(If
|
||||
(And
|
||||
(GreaterThan
|
||||
(Identifier)
|
||||
(Integer))
|
||||
(LessThan
|
||||
(Identifier)
|
||||
(Integer)))
|
||||
(Statements
|
||||
(Continue
|
||||
(Empty)))
|
||||
(Empty)))))))
|
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");
|
||||
}
|
||||
}
|
||||
}
|
1
test/fixtures/java/corpus/Dims.A.java
vendored
Normal file
1
test/fixtures/java/corpus/Dims.A.java
vendored
Normal file
@ -0,0 +1 @@
|
||||
class ForDemo { int[] metrics; }
|
20
test/fixtures/java/corpus/Dims.diffA-B.txt
vendored
Normal file
20
test/fixtures/java/corpus/Dims.diffA-B.txt
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
{+(Method
|
||||
{+(Void)+}
|
||||
{+(Empty)+}
|
||||
{+(Identifier)+}
|
||||
{+(Annotation
|
||||
{+(Identifier)+}
|
||||
{+(Array
|
||||
{+(Empty)+}
|
||||
{+(Identifier)+})+})+}
|
||||
{+(Statements)+})+}
|
||||
{-(Statements
|
||||
{-(Variable
|
||||
{-(Array
|
||||
{-(Empty)-}
|
||||
{-(Int)-})-}
|
||||
{-(Identifier)-})-})-})))
|
20
test/fixtures/java/corpus/Dims.diffB-A.txt
vendored
Normal file
20
test/fixtures/java/corpus/Dims.diffB-A.txt
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
{+(Statements
|
||||
{+(Variable
|
||||
{+(Array
|
||||
{+(Empty)+}
|
||||
{+(Int)+})+}
|
||||
{+(Identifier)+})+})+}
|
||||
{-(Method
|
||||
{-(Void)-}
|
||||
{-(Empty)-}
|
||||
{-(Identifier)-}
|
||||
{-(Annotation
|
||||
{-(Identifier)-}
|
||||
{-(Array
|
||||
{-(Empty)-}
|
||||
{-(Identifier)-})-})-}
|
||||
{-(Statements)-})-})))
|
10
test/fixtures/java/corpus/Dims.parseA.txt
vendored
Normal file
10
test/fixtures/java/corpus/Dims.parseA.txt
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Variable
|
||||
(Array
|
||||
(Empty)
|
||||
(Int))
|
||||
(Identifier))))))
|
14
test/fixtures/java/corpus/Dims.parseB.txt
vendored
Normal file
14
test/fixtures/java/corpus/Dims.parseB.txt
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Array
|
||||
(Empty)
|
||||
(Identifier)))
|
||||
(Statements)))))
|
9
test/fixtures/java/corpus/DoWhile.B.java
vendored
Normal file
9
test/fixtures/java/corpus/DoWhile.B.java
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
class WhileDemo {
|
||||
public static void main(String[] args) {
|
||||
int i = 5;
|
||||
do {
|
||||
System.out.println(i);
|
||||
i++;
|
||||
} while (i <= 10);
|
||||
}
|
||||
}
|
51
test/fixtures/java/corpus/DoWhile.diffA-B.txt
vendored
Normal file
51
test/fixtures/java/corpus/DoWhile.diffA-B.txt
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(AccessibilityModifier)
|
||||
(AccessibilityModifier)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Array
|
||||
(Empty)
|
||||
(Identifier)))
|
||||
(Statements
|
||||
{+(Statements
|
||||
{+(Assignment
|
||||
{+(Variable
|
||||
{+(Int)+}
|
||||
{+(Identifier)+})+}
|
||||
{+(Integer)+})+})+}
|
||||
(DoWhile
|
||||
{ (Not
|
||||
{-(Call
|
||||
{-(MemberAccess
|
||||
{-(TextElement)-})-}
|
||||
{-(Identifier)-}
|
||||
{-(Empty)-})-})
|
||||
->(LessThanEqual
|
||||
{+(Identifier)+}
|
||||
{+(Integer)+}) }
|
||||
(Statements
|
||||
(Call
|
||||
{ (MemberAccess
|
||||
{-(MemberAccess
|
||||
{-(Identifier)-})-})
|
||||
->(MemberAccess
|
||||
{+(MemberAccess
|
||||
{+(Identifier)+})+}) }
|
||||
{+(Identifier)+}
|
||||
{-(TextElement)-}
|
||||
(Empty))
|
||||
{+(PostIncrement
|
||||
{+(Identifier)+})+}
|
||||
{-(Assignment
|
||||
{-(Identifier)-}
|
||||
{-(Call
|
||||
{-(MemberAccess
|
||||
{-(Identifier)-})-}
|
||||
{-(Empty)-})-})-})))))))
|
55
test/fixtures/java/corpus/DoWhile.diffB-A.txt
vendored
Normal file
55
test/fixtures/java/corpus/DoWhile.diffB-A.txt
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(AccessibilityModifier)
|
||||
(AccessibilityModifier)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Array
|
||||
(Empty)
|
||||
(Identifier)))
|
||||
(Statements
|
||||
{+(DoWhile
|
||||
{+(Not
|
||||
{+(Call
|
||||
{+(MemberAccess
|
||||
{+(TextElement)+})+}
|
||||
{+(Identifier)+}
|
||||
{+(Empty)+})+})+}
|
||||
{+(Statements
|
||||
{+(Call
|
||||
{+(MemberAccess
|
||||
{+(MemberAccess
|
||||
{+(Identifier)+})+})+}
|
||||
{+(TextElement)+}
|
||||
{+(Empty)+})+}
|
||||
{+(Assignment
|
||||
{+(Identifier)+}
|
||||
{+(Call
|
||||
{+(MemberAccess
|
||||
{+(Identifier)+})+}
|
||||
{+(Empty)+})+})+})+})+}
|
||||
{-(Statements
|
||||
{-(Assignment
|
||||
{-(Variable
|
||||
{-(Int)-}
|
||||
{-(Identifier)-})-}
|
||||
{-(Integer)-})-})-}
|
||||
{-(DoWhile
|
||||
{-(LessThanEqual
|
||||
{-(Identifier)-}
|
||||
{-(Integer)-})-}
|
||||
{-(Statements
|
||||
{-(Call
|
||||
{-(MemberAccess
|
||||
{-(MemberAccess
|
||||
{-(Identifier)-})-})-}
|
||||
{-(Identifier)-}
|
||||
{-(Empty)-})-}
|
||||
{-(PostIncrement
|
||||
{-(Identifier)-})-})-})-})))))
|
36
test/fixtures/java/corpus/DoWhile.parseA.txt
vendored
Normal file
36
test/fixtures/java/corpus/DoWhile.parseA.txt
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(AccessibilityModifier)
|
||||
(AccessibilityModifier)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Array
|
||||
(Empty)
|
||||
(Identifier)))
|
||||
(Statements
|
||||
(DoWhile
|
||||
(Not
|
||||
(Call
|
||||
(MemberAccess
|
||||
(TextElement))
|
||||
(Identifier)
|
||||
(Empty)))
|
||||
(Statements
|
||||
(Call
|
||||
(MemberAccess
|
||||
(MemberAccess
|
||||
(Identifier)))
|
||||
(TextElement)
|
||||
(Empty))
|
||||
(Assignment
|
||||
(Identifier)
|
||||
(Call
|
||||
(MemberAccess
|
||||
(Identifier))
|
||||
(Empty))))))))))
|
35
test/fixtures/java/corpus/DoWhile.parseB.txt
vendored
Normal file
35
test/fixtures/java/corpus/DoWhile.parseB.txt
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(AccessibilityModifier)
|
||||
(AccessibilityModifier)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Array
|
||||
(Empty)
|
||||
(Identifier)))
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Int)
|
||||
(Identifier))
|
||||
(Integer)))
|
||||
(DoWhile
|
||||
(LessThanEqual
|
||||
(Identifier)
|
||||
(Integer))
|
||||
(Statements
|
||||
(Call
|
||||
(MemberAccess
|
||||
(MemberAccess
|
||||
(Identifier)))
|
||||
(Identifier)
|
||||
(Empty))
|
||||
(PostIncrement
|
||||
(Identifier)))))))))
|
3
test/fixtures/java/corpus/EnumDeclaration.A.java
vendored
Normal file
3
test/fixtures/java/corpus/EnumDeclaration.A.java
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
public enum Colour {
|
||||
|
||||
}
|
4
test/fixtures/java/corpus/EnumDeclaration.B.java
vendored
Normal file
4
test/fixtures/java/corpus/EnumDeclaration.B.java
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
enum Colour
|
||||
{
|
||||
RED, GREEN, BLUE;
|
||||
}
|
7
test/fixtures/java/corpus/EnumDeclaration.diffA-B.txt
vendored
Normal file
7
test/fixtures/java/corpus/EnumDeclaration.diffA-B.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
(Statements
|
||||
(EnumDeclaration
|
||||
{-(AccessibilityModifier)-}
|
||||
(Identifier)
|
||||
{+(Identifier)+}
|
||||
{+(Identifier)+}
|
||||
{+(Identifier)+}))
|
7
test/fixtures/java/corpus/EnumDeclaration.diffB-A.txt
vendored
Normal file
7
test/fixtures/java/corpus/EnumDeclaration.diffB-A.txt
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
(Statements
|
||||
(EnumDeclaration
|
||||
{+(AccessibilityModifier)+}
|
||||
(Identifier)
|
||||
{-(Identifier)-}
|
||||
{-(Identifier)-}
|
||||
{-(Identifier)-}))
|
4
test/fixtures/java/corpus/EnumDeclaration.parseA.txt
vendored
Normal file
4
test/fixtures/java/corpus/EnumDeclaration.parseA.txt
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
(Statements
|
||||
(EnumDeclaration
|
||||
(AccessibilityModifier)
|
||||
(Identifier)))
|
6
test/fixtures/java/corpus/EnumDeclaration.parseB.txt
vendored
Normal file
6
test/fixtures/java/corpus/EnumDeclaration.parseB.txt
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
(Statements
|
||||
(EnumDeclaration
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(Identifier)))
|
5
test/fixtures/java/corpus/FieldAccess.B.java
vendored
Normal file
5
test/fixtures/java/corpus/FieldAccess.B.java
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
class Grouped {
|
||||
Flowable(K key) {
|
||||
System.out.println(favorite().mountain);
|
||||
}
|
||||
}
|
23
test/fixtures/java/corpus/FieldAccess.diffA-B.txt
vendored
Normal file
23
test/fixtures/java/corpus/FieldAccess.diffA-B.txt
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Constructor
|
||||
(Identifier)
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Statements
|
||||
{+(Call
|
||||
{+(MemberAccess
|
||||
{+(MemberAccess
|
||||
{+(Identifier)+})+})+}
|
||||
{+(MemberAccess
|
||||
{+(Call
|
||||
{+(Identifier)+}
|
||||
{+(Empty)+})+})+}
|
||||
{+(Empty)+})+}
|
||||
{-(Assignment
|
||||
{-(MemberAccess
|
||||
{-(This)-})-}
|
||||
{-(Identifier)-})-})))))
|
23
test/fixtures/java/corpus/FieldAccess.diffB-A.txt
vendored
Normal file
23
test/fixtures/java/corpus/FieldAccess.diffB-A.txt
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Constructor
|
||||
(Identifier)
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Statements
|
||||
{+(Assignment
|
||||
{+(MemberAccess
|
||||
{+(This)+})+}
|
||||
{+(Identifier)+})+}
|
||||
{-(Call
|
||||
{-(MemberAccess
|
||||
{-(MemberAccess
|
||||
{-(Identifier)-})-})-}
|
||||
{-(MemberAccess
|
||||
{-(Call
|
||||
{-(Identifier)-}
|
||||
{-(Empty)-})-})-}
|
||||
{-(Empty)-})-})))))
|
14
test/fixtures/java/corpus/FieldAccess.parseA.txt
vendored
Normal file
14
test/fixtures/java/corpus/FieldAccess.parseA.txt
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Constructor
|
||||
(Identifier)
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Statements
|
||||
(Assignment
|
||||
(MemberAccess
|
||||
(This))
|
||||
(Identifier)))))))
|
19
test/fixtures/java/corpus/FieldAccess.parseB.txt
vendored
Normal file
19
test/fixtures/java/corpus/FieldAccess.parseB.txt
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Constructor
|
||||
(Identifier)
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Statements
|
||||
(Call
|
||||
(MemberAccess
|
||||
(MemberAccess
|
||||
(Identifier)))
|
||||
(MemberAccess
|
||||
(Call
|
||||
(Identifier)
|
||||
(Empty)))
|
||||
(Empty)))))))
|
7
test/fixtures/java/corpus/Float.B.java
vendored
Normal file
7
test/fixtures/java/corpus/Float.B.java
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
public class Point {
|
||||
void dinosaur() {
|
||||
Float x = 10.0;
|
||||
Float y = 20.0;
|
||||
System.out.print(x + y);
|
||||
}
|
||||
}
|
30
test/fixtures/java/corpus/Float.diffA-B.txt
vendored
Normal file
30
test/fixtures/java/corpus/Float.diffA-B.txt
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
(Statements
|
||||
(Class
|
||||
(AccessibilityModifier)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Float)))
|
||||
{+(Statements
|
||||
{+(Assignment
|
||||
{+(Variable
|
||||
{+(Identifier)+}
|
||||
{+(Identifier)+})+}
|
||||
{+(Float)+})+})+}
|
||||
{+(Call
|
||||
{+(MemberAccess
|
||||
{+(MemberAccess
|
||||
{+(Identifier)+})+})+}
|
||||
{+(Plus
|
||||
{+(Identifier)+}
|
||||
{+(Identifier)+})+}
|
||||
{+(Empty)+})+})))))
|
30
test/fixtures/java/corpus/Float.diffB-A.txt
vendored
Normal file
30
test/fixtures/java/corpus/Float.diffB-A.txt
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
(Statements
|
||||
(Class
|
||||
(AccessibilityModifier)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Float)))
|
||||
{-(Statements
|
||||
{-(Assignment
|
||||
{-(Variable
|
||||
{-(Identifier)-}
|
||||
{-(Identifier)-})-}
|
||||
{-(Float)-})-})-}
|
||||
{-(Call
|
||||
{-(MemberAccess
|
||||
{-(MemberAccess
|
||||
{-(Identifier)-})-})-}
|
||||
{-(Plus
|
||||
{-(Identifier)-}
|
||||
{-(Identifier)-})-}
|
||||
{-(Empty)-})-})))))
|
16
test/fixtures/java/corpus/Float.parseA.txt
vendored
Normal file
16
test/fixtures/java/corpus/Float.parseA.txt
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
(Statements
|
||||
(Class
|
||||
(AccessibilityModifier)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Float))))))))
|
30
test/fixtures/java/corpus/Float.parseB.txt
vendored
Normal file
30
test/fixtures/java/corpus/Float.parseB.txt
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
(Statements
|
||||
(Class
|
||||
(AccessibilityModifier)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Float)))
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Float)))
|
||||
(Call
|
||||
(MemberAccess
|
||||
(MemberAccess
|
||||
(Identifier)))
|
||||
(Plus
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Empty)))))))
|
7
test/fixtures/java/corpus/For.B.java
vendored
Normal file
7
test/fixtures/java/corpus/For.B.java
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
class ForDemo {
|
||||
public static void main(String[] args){
|
||||
for(int i: list){
|
||||
System.out.println("Count is: " + i);
|
||||
}
|
||||
}
|
||||
}
|
52
test/fixtures/java/corpus/For.diffA-B.txt
vendored
Normal file
52
test/fixtures/java/corpus/For.diffA-B.txt
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(AccessibilityModifier)
|
||||
(AccessibilityModifier)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Array
|
||||
(Empty)
|
||||
(Identifier)))
|
||||
(Statements
|
||||
{+(ForEach
|
||||
{+(Variable
|
||||
{+(Int)+}
|
||||
{+(Identifier)+})+}
|
||||
{+(Identifier)+}
|
||||
{+(Statements
|
||||
{+(Call
|
||||
{+(MemberAccess
|
||||
{+(MemberAccess
|
||||
{+(Identifier)+})+})+}
|
||||
{+(Plus
|
||||
{+(TextElement)+}
|
||||
{+(Identifier)+})+}
|
||||
{+(Empty)+})+})+})+}
|
||||
{-(For
|
||||
{-(Statements
|
||||
{-(Assignment
|
||||
{-(Variable
|
||||
{-(Int)-}
|
||||
{-(Identifier)-})-}
|
||||
{-(Integer)-})-})-}
|
||||
{-(LessThan
|
||||
{-(Identifier)-}
|
||||
{-(Integer)-})-}
|
||||
{-(Statements
|
||||
{-(PostIncrement
|
||||
{-(Identifier)-})-})-}
|
||||
{-(Statements
|
||||
{-(Call
|
||||
{-(MemberAccess
|
||||
{-(MemberAccess
|
||||
{-(Identifier)-})-})-}
|
||||
{-(Plus
|
||||
{-(TextElement)-}
|
||||
{-(Identifier)-})-}
|
||||
{-(Empty)-})-})-})-})))))
|
52
test/fixtures/java/corpus/For.diffB-A.txt
vendored
Normal file
52
test/fixtures/java/corpus/For.diffB-A.txt
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(AccessibilityModifier)
|
||||
(AccessibilityModifier)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Array
|
||||
(Empty)
|
||||
(Identifier)))
|
||||
(Statements
|
||||
{+(For
|
||||
{+(Statements
|
||||
{+(Assignment
|
||||
{+(Variable
|
||||
{+(Int)+}
|
||||
{+(Identifier)+})+}
|
||||
{+(Integer)+})+})+}
|
||||
{+(LessThan
|
||||
{+(Identifier)+}
|
||||
{+(Integer)+})+}
|
||||
{+(Statements
|
||||
{+(PostIncrement
|
||||
{+(Identifier)+})+})+}
|
||||
{+(Statements
|
||||
{+(Call
|
||||
{+(MemberAccess
|
||||
{+(MemberAccess
|
||||
{+(Identifier)+})+})+}
|
||||
{+(Plus
|
||||
{+(TextElement)+}
|
||||
{+(Identifier)+})+}
|
||||
{+(Empty)+})+})+})+}
|
||||
{-(ForEach
|
||||
{-(Variable
|
||||
{-(Int)-}
|
||||
{-(Identifier)-})-}
|
||||
{-(Identifier)-}
|
||||
{-(Statements
|
||||
{-(Call
|
||||
{-(MemberAccess
|
||||
{-(MemberAccess
|
||||
{-(Identifier)-})-})-}
|
||||
{-(Plus
|
||||
{-(TextElement)-}
|
||||
{-(Identifier)-})-}
|
||||
{-(Empty)-})-})-})-})))))
|
38
test/fixtures/java/corpus/For.parseA.txt
vendored
Normal file
38
test/fixtures/java/corpus/For.parseA.txt
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(AccessibilityModifier)
|
||||
(AccessibilityModifier)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Array
|
||||
(Empty)
|
||||
(Identifier)))
|
||||
(Statements
|
||||
(For
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Int)
|
||||
(Identifier))
|
||||
(Integer)))
|
||||
(LessThan
|
||||
(Identifier)
|
||||
(Integer))
|
||||
(Statements
|
||||
(PostIncrement
|
||||
(Identifier)))
|
||||
(Statements
|
||||
(Call
|
||||
(MemberAccess
|
||||
(MemberAccess
|
||||
(Identifier)))
|
||||
(Plus
|
||||
(TextElement)
|
||||
(Identifier))
|
||||
(Empty)))))))))
|
30
test/fixtures/java/corpus/For.parseB.txt
vendored
Normal file
30
test/fixtures/java/corpus/For.parseB.txt
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(AccessibilityModifier)
|
||||
(AccessibilityModifier)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Array
|
||||
(Empty)
|
||||
(Identifier)))
|
||||
(Statements
|
||||
(ForEach
|
||||
(Variable
|
||||
(Int)
|
||||
(Identifier))
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Call
|
||||
(MemberAccess
|
||||
(MemberAccess
|
||||
(Identifier)))
|
||||
(Plus
|
||||
(TextElement)
|
||||
(Identifier))
|
||||
(Empty)))))))))
|
2
test/fixtures/java/corpus/If.B.java
vendored
Normal file
2
test/fixtures/java/corpus/If.B.java
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
if (x=1)
|
||||
System.out.print(x);
|
14
test/fixtures/java/corpus/If.diffA-B.txt
vendored
Normal file
14
test/fixtures/java/corpus/If.diffA-B.txt
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
(Statements
|
||||
(If
|
||||
{ (Identifier)
|
||||
->(Assignment
|
||||
{+(Identifier)+}
|
||||
{+(Integer)+}) }
|
||||
{ (Identifier)
|
||||
->(Call
|
||||
{+(MemberAccess
|
||||
{+(MemberAccess
|
||||
{+(Identifier)+})+})+}
|
||||
{+(Identifier)+}
|
||||
{+(Empty)+}) }
|
||||
(Empty)))
|
14
test/fixtures/java/corpus/If.diffB-A.txt
vendored
Normal file
14
test/fixtures/java/corpus/If.diffB-A.txt
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
(Statements
|
||||
(If
|
||||
{ (Assignment
|
||||
{-(Identifier)-}
|
||||
{-(Integer)-})
|
||||
->(Identifier) }
|
||||
{ (Call
|
||||
{-(MemberAccess
|
||||
{-(MemberAccess
|
||||
{-(Identifier)-})-})-}
|
||||
{-(Identifier)-}
|
||||
{-(Empty)-})
|
||||
->(Identifier) }
|
||||
(Empty)))
|
5
test/fixtures/java/corpus/If.parseA.txt
vendored
Normal file
5
test/fixtures/java/corpus/If.parseA.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Statements
|
||||
(If
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(Empty)))
|
12
test/fixtures/java/corpus/If.parseB.txt
vendored
Normal file
12
test/fixtures/java/corpus/If.parseB.txt
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
(Statements
|
||||
(If
|
||||
(Assignment
|
||||
(Identifier)
|
||||
(Integer))
|
||||
(Call
|
||||
(MemberAccess
|
||||
(MemberAccess
|
||||
(Identifier)))
|
||||
(Identifier)
|
||||
(Empty))
|
||||
(Empty)))
|
1
test/fixtures/java/corpus/Import.B.java
vendored
Normal file
1
test/fixtures/java/corpus/Import.B.java
vendored
Normal file
@ -0,0 +1 @@
|
||||
import java.until.*;
|
8
test/fixtures/java/corpus/Import.diffA-B.txt
vendored
Normal file
8
test/fixtures/java/corpus/Import.diffA-B.txt
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
(Statements
|
||||
(Import
|
||||
{+(Identifier)+}
|
||||
{+(Identifier)+}
|
||||
{+(Asterisk)+}
|
||||
{-(Identifier)-}
|
||||
{-(Identifier)-}
|
||||
{-(Identifier)-}))
|
8
test/fixtures/java/corpus/Import.diffB-A.txt
vendored
Normal file
8
test/fixtures/java/corpus/Import.diffB-A.txt
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
(Statements
|
||||
(Import
|
||||
{+(Identifier)+}
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
{-(Asterisk)-}))
|
5
test/fixtures/java/corpus/Import.parseA.txt
vendored
Normal file
5
test/fixtures/java/corpus/Import.parseA.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Statements
|
||||
(Import
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(Identifier)))
|
5
test/fixtures/java/corpus/Import.parseB.txt
vendored
Normal file
5
test/fixtures/java/corpus/Import.parseB.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Statements
|
||||
(Import
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(Asterisk)))
|
7
test/fixtures/java/corpus/Int.B.java
vendored
Normal file
7
test/fixtures/java/corpus/Int.B.java
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
public class Point {
|
||||
void dinosaur() {
|
||||
Int A = 123;
|
||||
Int B = 10;
|
||||
System.out.print(A + B);
|
||||
}
|
||||
}
|
32
test/fixtures/java/corpus/Int.diffA-B.txt
vendored
Normal file
32
test/fixtures/java/corpus/Int.diffA-B.txt
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
(Statements
|
||||
(Class
|
||||
(AccessibilityModifier)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Identifier)
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
{ (Integer)
|
||||
->(Integer) }))
|
||||
{+(Statements
|
||||
{+(Assignment
|
||||
{+(Variable
|
||||
{+(Identifier)+}
|
||||
{+(Identifier)+})+}
|
||||
{+(Integer)+})+})+}
|
||||
{+(Call
|
||||
{+(MemberAccess
|
||||
{+(MemberAccess
|
||||
{+(Identifier)+})+})+}
|
||||
{+(Plus
|
||||
{+(Identifier)+}
|
||||
{+(Identifier)+})+}
|
||||
{+(Empty)+})+})))))
|
32
test/fixtures/java/corpus/Int.diffB-A.txt
vendored
Normal file
32
test/fixtures/java/corpus/Int.diffB-A.txt
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
(Statements
|
||||
(Class
|
||||
(AccessibilityModifier)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Identifier)
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
{ (Integer)
|
||||
->(Integer) }))
|
||||
{-(Statements
|
||||
{-(Assignment
|
||||
{-(Variable
|
||||
{-(Identifier)-}
|
||||
{-(Identifier)-})-}
|
||||
{-(Integer)-})-})-}
|
||||
{-(Call
|
||||
{-(MemberAccess
|
||||
{-(MemberAccess
|
||||
{-(Identifier)-})-})-}
|
||||
{-(Plus
|
||||
{-(Identifier)-}
|
||||
{-(Identifier)-})-}
|
||||
{-(Empty)-})-})))))
|
16
test/fixtures/java/corpus/Int.parseA.txt
vendored
Normal file
16
test/fixtures/java/corpus/Int.parseA.txt
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
(Statements
|
||||
(Class
|
||||
(AccessibilityModifier)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Integer))))))))
|
30
test/fixtures/java/corpus/Int.parseB.txt
vendored
Normal file
30
test/fixtures/java/corpus/Int.parseB.txt
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
(Statements
|
||||
(Class
|
||||
(AccessibilityModifier)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Integer)))
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Integer)))
|
||||
(Call
|
||||
(MemberAccess
|
||||
(MemberAccess
|
||||
(Identifier)))
|
||||
(Plus
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Empty)))))))
|
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)))
|
5
test/fixtures/java/corpus/Lambda.B.java
vendored
Normal file
5
test/fixtures/java/corpus/Lambda.B.java
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
class LambdaTest {
|
||||
void singleton() {
|
||||
stateOwner.add(x -> System.out.println("State changed"));
|
||||
}
|
||||
}
|
26
test/fixtures/java/corpus/Lambda.diffA-B.txt
vendored
Normal file
26
test/fixtures/java/corpus/Lambda.diffA-B.txt
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
{+(Call
|
||||
{+(MemberAccess
|
||||
{+(Identifier)+})+}
|
||||
{+(Lambda
|
||||
{+(Identifier)+}
|
||||
{+(LambdaBody
|
||||
{+(Call
|
||||
{+(MemberAccess
|
||||
{+(MemberAccess
|
||||
{+(Identifier)+})+})+}
|
||||
{+(TextElement)+}
|
||||
{+(Empty)+})+})+})+}
|
||||
{+(Empty)+})+}
|
||||
{-(Lambda
|
||||
{-(Identifier)-}
|
||||
{-(LambdaBody
|
||||
{-(Identifier)-})-})-})))))
|
26
test/fixtures/java/corpus/Lambda.diffB-A.txt
vendored
Normal file
26
test/fixtures/java/corpus/Lambda.diffB-A.txt
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
{+(Lambda
|
||||
{+(Identifier)+}
|
||||
{+(LambdaBody
|
||||
{+(Identifier)+})+})+}
|
||||
{-(Call
|
||||
{-(MemberAccess
|
||||
{-(Identifier)-})-}
|
||||
{-(Lambda
|
||||
{-(Identifier)-}
|
||||
{-(LambdaBody
|
||||
{-(Call
|
||||
{-(MemberAccess
|
||||
{-(MemberAccess
|
||||
{-(Identifier)-})-})-}
|
||||
{-(TextElement)-}
|
||||
{-(Empty)-})-})-})-}
|
||||
{-(Empty)-})-})))))
|
13
test/fixtures/java/corpus/Lambda.parseA.txt
vendored
Normal file
13
test/fixtures/java/corpus/Lambda.parseA.txt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Lambda
|
||||
(Identifier)
|
||||
(LambdaBody
|
||||
(Identifier))))))))
|
22
test/fixtures/java/corpus/Lambda.parseB.txt
vendored
Normal file
22
test/fixtures/java/corpus/Lambda.parseB.txt
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Call
|
||||
(MemberAccess
|
||||
(Identifier))
|
||||
(Lambda
|
||||
(Identifier)
|
||||
(LambdaBody
|
||||
(Call
|
||||
(MemberAccess
|
||||
(MemberAccess
|
||||
(Identifier)))
|
||||
(TextElement)
|
||||
(Empty))))
|
||||
(Empty)))))))
|
25
test/fixtures/java/corpus/ScopedIdentifier.diffA-B.txt
vendored
Normal file
25
test/fixtures/java/corpus/ScopedIdentifier.diffA-B.txt
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
(Statements
|
||||
(Class
|
||||
{+(AccessibilityModifier)+}
|
||||
{+(AccessibilityModifier)+}
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
{+(MemberAccess
|
||||
{+(Identifier)+})+}
|
||||
(Statements
|
||||
{-(Method
|
||||
{-(Int)-}
|
||||
{-(Empty)-}
|
||||
{-(Identifier)-}
|
||||
{-(Annotation
|
||||
{-(Identifier)-}
|
||||
{-(Identifier)-})-}
|
||||
{-(Annotation
|
||||
{-(Identifier)-}
|
||||
{-(Identifier)-})-}
|
||||
{-(Statements
|
||||
{-(Call
|
||||
{-(MemberAccess
|
||||
{-(Identifier)-})-}
|
||||
{-(Identifier)-}
|
||||
{-(Empty)-})-})-})-})))
|
25
test/fixtures/java/corpus/ScopedIdentifier.diffB-A.txt
vendored
Normal file
25
test/fixtures/java/corpus/ScopedIdentifier.diffB-A.txt
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
(Statements
|
||||
(Class
|
||||
{-(AccessibilityModifier)-}
|
||||
{-(AccessibilityModifier)-}
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
{-(MemberAccess
|
||||
{-(Identifier)-})-}
|
||||
(Statements
|
||||
{+(Method
|
||||
{+(Int)+}
|
||||
{+(Empty)+}
|
||||
{+(Identifier)+}
|
||||
{+(Annotation
|
||||
{+(Identifier)+}
|
||||
{+(Identifier)+})+}
|
||||
{+(Annotation
|
||||
{+(Identifier)+}
|
||||
{+(Identifier)+})+}
|
||||
{+(Statements
|
||||
{+(Call
|
||||
{+(MemberAccess
|
||||
{+(Identifier)+})+}
|
||||
{+(Identifier)+}
|
||||
{+(Empty)+})+})+})+})))
|
20
test/fixtures/java/corpus/ScopedIdentifier.parseA.txt
vendored
Normal file
20
test/fixtures/java/corpus/ScopedIdentifier.parseA.txt
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Int)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Annotation
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Statements
|
||||
(Call
|
||||
(MemberAccess
|
||||
(Identifier))
|
||||
(Identifier)
|
||||
(Empty)))))))
|
8
test/fixtures/java/corpus/ScopedIdentifier.parseB.txt
vendored
Normal file
8
test/fixtures/java/corpus/ScopedIdentifier.parseB.txt
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
(Statements
|
||||
(Class
|
||||
(AccessibilityModifier)
|
||||
(AccessibilityModifier)
|
||||
(Identifier)
|
||||
(MemberAccess
|
||||
(Identifier))
|
||||
(Statements)))
|
4
test/fixtures/java/corpus/SpreadParameter.B.java
vendored
Normal file
4
test/fixtures/java/corpus/SpreadParameter.B.java
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
class Dinosaur {
|
||||
Disposable(int ...resources) {
|
||||
}
|
||||
}
|
12
test/fixtures/java/corpus/SpreadParameter.diffA-B.txt
vendored
Normal file
12
test/fixtures/java/corpus/SpreadParameter.diffA-B.txt
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Constructor
|
||||
(Identifier)
|
||||
(SpreadParameter
|
||||
(Variable
|
||||
{ (Identifier)
|
||||
->(Int) }
|
||||
(Identifier)))
|
||||
(Statements)))))
|
12
test/fixtures/java/corpus/SpreadParameter.diffB-A.txt
vendored
Normal file
12
test/fixtures/java/corpus/SpreadParameter.diffB-A.txt
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Constructor
|
||||
(Identifier)
|
||||
(SpreadParameter
|
||||
(Variable
|
||||
{ (Int)
|
||||
->(Identifier) }
|
||||
(Identifier)))
|
||||
(Statements)))))
|
11
test/fixtures/java/corpus/SpreadParameter.parseA.txt
vendored
Normal file
11
test/fixtures/java/corpus/SpreadParameter.parseA.txt
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Constructor
|
||||
(Identifier)
|
||||
(SpreadParameter
|
||||
(Variable
|
||||
(Identifier)
|
||||
(Identifier)))
|
||||
(Statements)))))
|
11
test/fixtures/java/corpus/SpreadParameter.parseB.txt
vendored
Normal file
11
test/fixtures/java/corpus/SpreadParameter.parseB.txt
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Constructor
|
||||
(Identifier)
|
||||
(SpreadParameter
|
||||
(Variable
|
||||
(Int)
|
||||
(Identifier)))
|
||||
(Statements)))))
|
5
test/fixtures/java/corpus/String.B.java
vendored
Normal file
5
test/fixtures/java/corpus/String.B.java
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
public class Point {
|
||||
void dinosaur() {
|
||||
String gfg3 = String.format("%07d", num);
|
||||
}
|
||||
}
|
23
test/fixtures/java/corpus/String.diffA-B.txt
vendored
Normal file
23
test/fixtures/java/corpus/String.diffA-B.txt
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
(Statements
|
||||
(Class
|
||||
(AccessibilityModifier)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Identifier)
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
{ (TextElement)
|
||||
->(Call
|
||||
{+(MemberAccess
|
||||
{+(Identifier)+})+}
|
||||
{+(TextElement)+}
|
||||
{+(Identifier)+}
|
||||
{+(Empty)+}) })))))))
|
23
test/fixtures/java/corpus/String.diffB-A.txt
vendored
Normal file
23
test/fixtures/java/corpus/String.diffB-A.txt
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
(Statements
|
||||
(Class
|
||||
(AccessibilityModifier)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Identifier)
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
{ (Call
|
||||
{-(MemberAccess
|
||||
{-(Identifier)-})-}
|
||||
{-(TextElement)-}
|
||||
{-(Identifier)-}
|
||||
{-(Empty)-})
|
||||
->(TextElement) })))))))
|
16
test/fixtures/java/corpus/String.parseA.txt
vendored
Normal file
16
test/fixtures/java/corpus/String.parseA.txt
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
(Statements
|
||||
(Class
|
||||
(AccessibilityModifier)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(TextElement))))))))
|
21
test/fixtures/java/corpus/String.parseB.txt
vendored
Normal file
21
test/fixtures/java/corpus/String.parseB.txt
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
(Statements
|
||||
(Class
|
||||
(AccessibilityModifier)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Call
|
||||
(MemberAccess
|
||||
(Identifier))
|
||||
(TextElement)
|
||||
(Identifier)
|
||||
(Empty)))))))))
|
17
test/fixtures/java/corpus/Switch.B.java
vendored
Normal file
17
test/fixtures/java/corpus/Switch.B.java
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
public class Test
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
int day = 5;
|
||||
int cupcakes = 2;
|
||||
|
||||
switch (day)
|
||||
{
|
||||
case 1: cupcakes = 1;
|
||||
break;
|
||||
default: cupcakes = 2;
|
||||
break;
|
||||
}
|
||||
System.out.println(dayString);
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user