mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
test variable declaration
This commit is contained in:
parent
632bf50506
commit
7a7c9ba222
5
test/fixtures/java/corpus/VariableDeclaration.A.java
vendored
Normal file
5
test/fixtures/java/corpus/VariableDeclaration.A.java
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
class Dino {
|
||||
void test() {
|
||||
int x = 3;
|
||||
}
|
||||
}
|
5
test/fixtures/java/corpus/VariableDeclaration.B.java
vendored
Normal file
5
test/fixtures/java/corpus/VariableDeclaration.B.java
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
class Dino {
|
||||
void test() {
|
||||
float x = 3.0;
|
||||
}
|
||||
}
|
17
test/fixtures/java/corpus/VariableDeclaration.diffA-B.txt
vendored
Normal file
17
test/fixtures/java/corpus/VariableDeclaration.diffA-B.txt
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
{ (Int)
|
||||
->(Float) }
|
||||
(Identifier))
|
||||
{ (Integer)
|
||||
->(Float) })))))))
|
17
test/fixtures/java/corpus/VariableDeclaration.diffB-A.txt
vendored
Normal file
17
test/fixtures/java/corpus/VariableDeclaration.diffB-A.txt
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
{ (Float)
|
||||
->(Int) }
|
||||
(Identifier))
|
||||
{ (Float)
|
||||
->(Integer) })))))))
|
15
test/fixtures/java/corpus/VariableDeclaration.parseA.txt
vendored
Normal file
15
test/fixtures/java/corpus/VariableDeclaration.parseA.txt
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Int)
|
||||
(Identifier))
|
||||
(Integer))))))))
|
15
test/fixtures/java/corpus/VariableDeclaration.parseB.txt
vendored
Normal file
15
test/fixtures/java/corpus/VariableDeclaration.parseB.txt
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
(Statements
|
||||
(Class
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Method
|
||||
(Void)
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Statements
|
||||
(Statements
|
||||
(Assignment
|
||||
(Variable
|
||||
(Float)
|
||||
(Identifier))
|
||||
(Float))))))))
|
@ -1 +0,0 @@
|
||||
int x = 3;
|
Loading…
Reference in New Issue
Block a user