1
1
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:
Rick Winfrey 2017-11-29 12:54:28 -08:00
parent 410b8e12e0
commit 31d8962b7b
8 changed files with 76 additions and 52 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)))
([])))))))

View File

@ -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) }))))

View File

@ -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) }))))

View File

@ -10,7 +10,8 @@
(Negate
(Identifier))
(Not
(Identifier))
(ReceiveOperator
(Identifier)))
(Pointer
(Call
(Identifier)
@ -19,4 +20,5 @@
(Identifier))
(Reference
(Identifier))
(Identifier))))
(ReceiveOperator
(Identifier)))))

View File

@ -10,7 +10,8 @@
(Negate
(Identifier))
(Not
(Identifier))
(ReceiveOperator
(Identifier)))
(Pointer
(Call
(Identifier)
@ -19,4 +20,5 @@
(Identifier))
(Reference
(Identifier))
(Identifier))))
(ReceiveOperator
(Identifier)))))