1
1
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:
joshvera 2017-03-16 16:47:14 -04:00
parent 129da112b3
commit 643d289bf0
10 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1 @@
var { x = 0 } = foo;

View File

@ -0,0 +1 @@
var { y = 1 } = foo;

View File

@ -0,0 +1,5 @@
{+(Program
(VarDecl
(VarAssignment
(Other"destructuring_pattern"
(Object (Assignment (Identifier) (NumberLiteral)))) (Identifier))))+}

View File

@ -0,0 +1,6 @@
{+(Program
(VarDecl
(VarAssignment
(Other"destructuring_pattern"
(Object
(Assignment (Identifier) (NumberLiteral)))) (Identifier))))+}

View File

@ -0,0 +1,5 @@
{-(Program
(VarDecl
(VarAssignment
(Other"destructuring_pattern"
(Object (Assignment (Identifier) (NumberLiteral)))) (Identifier))))-}

View File

@ -0,0 +1,6 @@
{-(Program
(VarDecl
(VarAssignment
(Other"destructuring_pattern"
(Object
(Assignment (Identifier) (NumberLiteral)))) (Identifier))))-}

View File

@ -0,0 +1,5 @@
(Program(VarDecl(VarAssignment(Other"destructuring_pattern"(Object(Assignment{
(Identifier)->(Identifier)
}{
(NumberLiteral)->(NumberLiteral)
})))(Identifier))))

View File

@ -0,0 +1,5 @@
(Program(VarDecl(VarAssignment(Other"destructuring_pattern"(Object(Assignment{
(Identifier)->(Identifier)
}{
(NumberLiteral)->(NumberLiteral)
})))(Identifier))))

View File

@ -0,0 +1 @@
(Program(VarDecl(VarAssignment(Other"destructuring_pattern"(Object(Assignment(Identifier)(NumberLiteral))))(Identifier))))

View File

@ -0,0 +1 @@
(Program(VarDecl(VarAssignment(Other"destructuring_pattern"(Object(Assignment(Identifier)(NumberLiteral))))(Identifier))))