mirror of
https://github.com/github/semantic.git
synced 2024-12-25 16:02:43 +03:00
Add tests for assignment-pattern
This commit is contained in:
parent
129da112b3
commit
643d289bf0
1
test/fixtures/javascript/assignment-pattern.A.js
vendored
Normal file
1
test/fixtures/javascript/assignment-pattern.A.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var { x = 0 } = foo;
|
1
test/fixtures/javascript/assignment-pattern.B.js
vendored
Normal file
1
test/fixtures/javascript/assignment-pattern.B.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var { y = 1 } = foo;
|
5
test/fixtures/javascript/assignment-pattern.diff+A.txt
vendored
Normal file
5
test/fixtures/javascript/assignment-pattern.diff+A.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{+(Program
|
||||
(VarDecl
|
||||
(VarAssignment
|
||||
(Other"destructuring_pattern"
|
||||
(Object (Assignment (Identifier) (NumberLiteral)))) (Identifier))))+}
|
6
test/fixtures/javascript/assignment-pattern.diff+B.txt
vendored
Normal file
6
test/fixtures/javascript/assignment-pattern.diff+B.txt
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{+(Program
|
||||
(VarDecl
|
||||
(VarAssignment
|
||||
(Other"destructuring_pattern"
|
||||
(Object
|
||||
(Assignment (Identifier) (NumberLiteral)))) (Identifier))))+}
|
5
test/fixtures/javascript/assignment-pattern.diff-A.txt
vendored
Normal file
5
test/fixtures/javascript/assignment-pattern.diff-A.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{-(Program
|
||||
(VarDecl
|
||||
(VarAssignment
|
||||
(Other"destructuring_pattern"
|
||||
(Object (Assignment (Identifier) (NumberLiteral)))) (Identifier))))-}
|
6
test/fixtures/javascript/assignment-pattern.diff-B.txt
vendored
Normal file
6
test/fixtures/javascript/assignment-pattern.diff-B.txt
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{-(Program
|
||||
(VarDecl
|
||||
(VarAssignment
|
||||
(Other"destructuring_pattern"
|
||||
(Object
|
||||
(Assignment (Identifier) (NumberLiteral)))) (Identifier))))-}
|
5
test/fixtures/javascript/assignment-pattern.diffA-B.txt
vendored
Normal file
5
test/fixtures/javascript/assignment-pattern.diffA-B.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Program(VarDecl(VarAssignment(Other"destructuring_pattern"(Object(Assignment{
|
||||
(Identifier)->(Identifier)
|
||||
}{
|
||||
(NumberLiteral)->(NumberLiteral)
|
||||
})))(Identifier))))
|
5
test/fixtures/javascript/assignment-pattern.diffB-A.txt
vendored
Normal file
5
test/fixtures/javascript/assignment-pattern.diffB-A.txt
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(Program(VarDecl(VarAssignment(Other"destructuring_pattern"(Object(Assignment{
|
||||
(Identifier)->(Identifier)
|
||||
}{
|
||||
(NumberLiteral)->(NumberLiteral)
|
||||
})))(Identifier))))
|
1
test/fixtures/javascript/assignment-pattern.parseA.txt
vendored
Normal file
1
test/fixtures/javascript/assignment-pattern.parseA.txt
vendored
Normal file
@ -0,0 +1 @@
|
||||
(Program(VarDecl(VarAssignment(Other"destructuring_pattern"(Object(Assignment(Identifier)(NumberLiteral))))(Identifier))))
|
1
test/fixtures/javascript/assignment-pattern.parseB.txt
vendored
Normal file
1
test/fixtures/javascript/assignment-pattern.parseB.txt
vendored
Normal file
@ -0,0 +1 @@
|
||||
(Program(VarDecl(VarAssignment(Other"destructuring_pattern"(Object(Assignment(Identifier)(NumberLiteral))))(Identifier))))
|
Loading…
Reference in New Issue
Block a user