1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 09:55:52 +03:00

Bump the examples for for/in nodes.

This commit is contained in:
Rob Rix 2017-08-14 20:56:11 -04:00
parent bea008329b
commit a8b98b9892
8 changed files with 43 additions and 30 deletions

View File

@ -1,10 +1,12 @@
{+(Program {+(Program
(For (For
(Identifier) (Identifier)
(Identifier) (Other "in"
(Identifier))
(Identifier)) (Identifier))
(For (For
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier) (Other "in"
(Identifier))
(Identifier)))+} (Identifier)))+}

View File

@ -1,10 +1,11 @@
{+(Program {+(Program
(For (For
(Identifier) (Identifier)
(ArrayLiteral (Other "in"
(IntegerLiteral) (ArrayLiteral
(IntegerLiteral) (IntegerLiteral)
(IntegerLiteral)) (IntegerLiteral)
(IntegerLiteral)))
(MethodCall (MethodCall
(Identifier) (Identifier)
(Identifier))))+} (Identifier))))+}

View File

@ -1,10 +1,12 @@
{-(Program {-(Program
(For (For
(Identifier) (Identifier)
(Identifier) (Other "in"
(Identifier))
(Identifier)) (Identifier))
(For (For
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier) (Other "in"
(Identifier))
(Identifier)))-} (Identifier)))-}

View File

@ -1,10 +1,11 @@
{-(Program {-(Program
(For (For
(Identifier) (Identifier)
(ArrayLiteral (Other "in"
(IntegerLiteral) (ArrayLiteral
(IntegerLiteral) (IntegerLiteral)
(IntegerLiteral)) (IntegerLiteral)
(IntegerLiteral)))
(MethodCall (MethodCall
(Identifier) (Identifier)
(Identifier))))-} (Identifier))))-}

View File

@ -2,11 +2,12 @@
(For (For
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
{ (Identifier) (Other "in"
->(ArrayLiteral {+(ArrayLiteral
(IntegerLiteral) (IntegerLiteral)
(IntegerLiteral) (IntegerLiteral)
(IntegerLiteral)) } (IntegerLiteral))+}
{-(Identifier)-})
{ (Identifier) { (Identifier)
->(MethodCall ->(MethodCall
(Identifier) (Identifier)
@ -14,5 +15,6 @@
{-(For {-(For
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier) (Other "in"
(Identifier))
(Identifier))-}) (Identifier))-})

View File

@ -2,11 +2,12 @@
(For (For
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
{ (ArrayLiteral (Other "in"
(IntegerLiteral) {+(Identifier)+}
(IntegerLiteral) {-(ArrayLiteral
(IntegerLiteral)) (IntegerLiteral)
->(Identifier) } (IntegerLiteral)
(IntegerLiteral))-})
{ (MethodCall { (MethodCall
(Identifier) (Identifier)
(Identifier)) (Identifier))
@ -14,5 +15,6 @@
{+(For {+(For
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier) (Other "in"
(Identifier))
(Identifier))+}) (Identifier))+})

View File

@ -1,10 +1,12 @@
(Program (Program
(For (For
(Identifier) (Identifier)
(Identifier) (Other "in"
(Identifier))
(Identifier)) (Identifier))
(For (For
(Identifier) (Identifier)
(Identifier) (Identifier)
(Identifier) (Other "in"
(Identifier))
(Identifier))) (Identifier)))

View File

@ -1,10 +1,11 @@
(Program (Program
(For (For
(Identifier) (Identifier)
(ArrayLiteral (Other "in"
(IntegerLiteral) (ArrayLiteral
(IntegerLiteral) (IntegerLiteral)
(IntegerLiteral)) (IntegerLiteral)
(IntegerLiteral)))
(MethodCall (MethodCall
(Identifier) (Identifier)
(Identifier)))) (Identifier))))