1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 16:33:03 +03:00

Update function declaration tests

This commit is contained in:
Rick Winfrey 2017-11-14 15:33:07 -08:00
parent 77bdbdbb77
commit b034e471fa
6 changed files with 33 additions and 4 deletions

View File

@ -5,3 +5,4 @@ func f1() {}
func f2(a int, b, c, d string) int {}
func f2() (int, error) {}
func f2() (result int, err error) {}
func lockedOSThread() bool

View File

@ -6,3 +6,4 @@ func fb(a int, b, c, d string) int {}
func fc() (int, error) {}
func fd() (result int, err error) {}
func fe() () {;}
func lockOSThread() int

View File

@ -54,4 +54,11 @@
{+([])+}
{+([])+}
{+(NoOp
{+(Empty)+})+})+})
{+(Empty)+})+})+}
(Function
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }
([])
(Empty)))

View File

@ -48,10 +48,20 @@
(Identifier)
(Identifier)))
([]))
{+(Function
{+(Identifier)+}
{+(Identifier)+}
{+([])+}
{+(Empty)+})+}
{-(Function
{-(Empty)-}
{-(Identifier)-}
{-([])-}
{-([])-}
{-(NoOp
{-(Empty)-})-})-})
{-(Empty)-})-})-}
{-(Function
{-(Identifier)-}
{-(Identifier)-}
{-([])-}
{-(Empty)-})-})

View File

@ -43,4 +43,9 @@
(
(Identifier)
(Identifier)))
([])))
([]))
(Function
(Identifier)
(Identifier)
([])
(Empty)))

View File

@ -50,4 +50,9 @@
([])
([])
(NoOp
(Empty))))
(Empty)))
(Function
(Identifier)
(Identifier)
([])
(Empty)))