mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Update tests for receive operator
This commit is contained in:
parent
410b8e12e0
commit
31d8962b7b
26
test/fixtures/go/select-statements.diffA-B.txt
vendored
26
test/fixtures/go/select-statements.diffA-B.txt
vendored
@ -12,7 +12,8 @@
|
||||
(Receive
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
(Identifier))
|
||||
(ReceiveOperator
|
||||
(Identifier)))
|
||||
(Call
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
@ -29,13 +30,14 @@
|
||||
(Pattern
|
||||
(Receive
|
||||
(Empty)
|
||||
(Call
|
||||
(MemberAccess
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
{ (Integer)
|
||||
->(Integer) }
|
||||
(Empty)))
|
||||
(ReceiveOperator
|
||||
(Call
|
||||
(MemberAccess
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
{ (Integer)
|
||||
->(Integer) }
|
||||
(Empty))))
|
||||
(
|
||||
(Call
|
||||
(Identifier)
|
||||
@ -83,13 +85,15 @@
|
||||
(Pattern
|
||||
(Receive
|
||||
(Empty)
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
(ReceiveOperator
|
||||
{ (Identifier)
|
||||
->(Identifier) }))
|
||||
([]))
|
||||
(Pattern
|
||||
(Receive
|
||||
(Empty)
|
||||
(Identifier))
|
||||
(ReceiveOperator
|
||||
(Identifier)))
|
||||
([]))
|
||||
{-(Pattern
|
||||
{-(DefaultPattern
|
||||
|
26
test/fixtures/go/select-statements.diffB-A.txt
vendored
26
test/fixtures/go/select-statements.diffB-A.txt
vendored
@ -12,7 +12,8 @@
|
||||
(Receive
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
(Identifier))
|
||||
(ReceiveOperator
|
||||
(Identifier)))
|
||||
(Call
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
@ -29,13 +30,14 @@
|
||||
(Pattern
|
||||
(Receive
|
||||
(Empty)
|
||||
(Call
|
||||
(MemberAccess
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
{ (Integer)
|
||||
->(Integer) }
|
||||
(Empty)))
|
||||
(ReceiveOperator
|
||||
(Call
|
||||
(MemberAccess
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
{ (Integer)
|
||||
->(Integer) }
|
||||
(Empty))))
|
||||
(
|
||||
(Call
|
||||
(Identifier)
|
||||
@ -83,13 +85,15 @@
|
||||
(Pattern
|
||||
(Receive
|
||||
(Empty)
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
(ReceiveOperator
|
||||
{ (Identifier)
|
||||
->(Identifier) }))
|
||||
([]))
|
||||
(Pattern
|
||||
(Receive
|
||||
(Empty)
|
||||
(Identifier))
|
||||
(ReceiveOperator
|
||||
(Identifier)))
|
||||
([]))
|
||||
{+(Pattern
|
||||
{+(DefaultPattern
|
||||
|
22
test/fixtures/go/select-statements.parseA.txt
vendored
22
test/fixtures/go/select-statements.parseA.txt
vendored
@ -11,7 +11,8 @@
|
||||
(Pattern
|
||||
(Receive
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(ReceiveOperator
|
||||
(Identifier)))
|
||||
(Call
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
@ -27,12 +28,13 @@
|
||||
(Pattern
|
||||
(Receive
|
||||
(Empty)
|
||||
(Call
|
||||
(MemberAccess
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Integer)
|
||||
(Empty)))
|
||||
(ReceiveOperator
|
||||
(Call
|
||||
(MemberAccess
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Integer)
|
||||
(Empty))))
|
||||
(
|
||||
(Call
|
||||
(Identifier)
|
||||
@ -64,12 +66,14 @@
|
||||
(Pattern
|
||||
(Receive
|
||||
(Empty)
|
||||
(Identifier))
|
||||
(ReceiveOperator
|
||||
(Identifier)))
|
||||
([]))
|
||||
(Pattern
|
||||
(Receive
|
||||
(Empty)
|
||||
(Identifier))
|
||||
(ReceiveOperator
|
||||
(Identifier)))
|
||||
([]))
|
||||
(Pattern
|
||||
(DefaultPattern
|
||||
|
22
test/fixtures/go/select-statements.parseB.txt
vendored
22
test/fixtures/go/select-statements.parseB.txt
vendored
@ -11,7 +11,8 @@
|
||||
(Pattern
|
||||
(Receive
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(ReceiveOperator
|
||||
(Identifier)))
|
||||
(Call
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
@ -27,12 +28,13 @@
|
||||
(Pattern
|
||||
(Receive
|
||||
(Empty)
|
||||
(Call
|
||||
(MemberAccess
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Integer)
|
||||
(Empty)))
|
||||
(ReceiveOperator
|
||||
(Call
|
||||
(MemberAccess
|
||||
(Identifier)
|
||||
(Identifier))
|
||||
(Integer)
|
||||
(Empty))))
|
||||
(
|
||||
(Call
|
||||
(Identifier)
|
||||
@ -64,10 +66,12 @@
|
||||
(Pattern
|
||||
(Receive
|
||||
(Empty)
|
||||
(Identifier))
|
||||
(ReceiveOperator
|
||||
(Identifier)))
|
||||
([]))
|
||||
(Pattern
|
||||
(Receive
|
||||
(Empty)
|
||||
(Identifier))
|
||||
(ReceiveOperator
|
||||
(Identifier)))
|
||||
([])))))))
|
||||
|
10
test/fixtures/go/unary-expressions.diffA-B.txt
vendored
10
test/fixtures/go/unary-expressions.diffA-B.txt
vendored
@ -12,8 +12,9 @@
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
(Not
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
(ReceiveOperator
|
||||
{ (Identifier)
|
||||
->(Identifier) }))
|
||||
(Pointer
|
||||
(Call
|
||||
{ (Identifier)
|
||||
@ -25,5 +26,6 @@
|
||||
(Reference
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
{ (Identifier)
|
||||
->(Identifier) })))
|
||||
(ReceiveOperator
|
||||
{ (Identifier)
|
||||
->(Identifier) }))))
|
||||
|
10
test/fixtures/go/unary-expressions.diffB-A.txt
vendored
10
test/fixtures/go/unary-expressions.diffB-A.txt
vendored
@ -12,8 +12,9 @@
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
(Not
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
(ReceiveOperator
|
||||
{ (Identifier)
|
||||
->(Identifier) }))
|
||||
(Pointer
|
||||
(Call
|
||||
{ (Identifier)
|
||||
@ -25,5 +26,6 @@
|
||||
(Reference
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
{ (Identifier)
|
||||
->(Identifier) })))
|
||||
(ReceiveOperator
|
||||
{ (Identifier)
|
||||
->(Identifier) }))))
|
||||
|
@ -10,7 +10,8 @@
|
||||
(Negate
|
||||
(Identifier))
|
||||
(Not
|
||||
(Identifier))
|
||||
(ReceiveOperator
|
||||
(Identifier)))
|
||||
(Pointer
|
||||
(Call
|
||||
(Identifier)
|
||||
@ -19,4 +20,5 @@
|
||||
(Identifier))
|
||||
(Reference
|
||||
(Identifier))
|
||||
(Identifier))))
|
||||
(ReceiveOperator
|
||||
(Identifier)))))
|
||||
|
@ -10,7 +10,8 @@
|
||||
(Negate
|
||||
(Identifier))
|
||||
(Not
|
||||
(Identifier))
|
||||
(ReceiveOperator
|
||||
(Identifier)))
|
||||
(Pointer
|
||||
(Call
|
||||
(Identifier)
|
||||
@ -19,4 +20,5 @@
|
||||
(Identifier))
|
||||
(Reference
|
||||
(Identifier))
|
||||
(Identifier))))
|
||||
(ReceiveOperator
|
||||
(Identifier)))))
|
||||
|
Loading…
Reference in New Issue
Block a user