1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

No reason to test parse failures here

This commit is contained in:
Timothy Clem 2017-08-03 13:59:05 -07:00
parent 6bc00b46d7
commit 28815031eb
10 changed files with 296 additions and 42 deletions

View File

@ -1,8 +1,7 @@
package main
func main() {
func f1() {}
func main() {}
func f1() {}
func f2(a int, b, c, d string) int {}
func f2() (int, error) {}
func f2() (result int, err error) {}
}
func f2() (int, error) {}
func f2() (result int, err error) {}

View File

@ -1,8 +1,7 @@
package main
func main() {
func fa() {}
func main() {}
func fa() {}
func fb(a int, b, c, d string) int {}
func fc() (int, error) {}
func fd() (result int, err error) {}
}
func fc() (int, error) {}
func fd() (result int, err error) {}

View File

@ -1,6 +1,37 @@
{+(ParseError
{+(Program
(Module
(Identifier))
(Identifier)
(Args)
(ParseError))+}
(Function
(Identifier)
(Args))
(Function
(Identifier)
(Args))
(Function
(Identifier)
(Args
(ParameterDecl
(Identifier)
(Identifier))
(Identifier)
(Identifier)
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier))
(Function
(Identifier)
(Args)
(Args
(Identifier)
(Identifier)))
(Function
(Identifier)
(Args)
(Args
(ParameterDecl
(Identifier)
(Identifier))
(ParameterDecl
(Identifier)
(Identifier)))))+}

View File

@ -1,6 +1,37 @@
{+(ParseError
{+(Program
(Module
(Identifier))
(Identifier)
(Args)
(ParseError))+}
(Function
(Identifier)
(Args))
(Function
(Identifier)
(Args))
(Function
(Identifier)
(Args
(ParameterDecl
(Identifier)
(Identifier))
(Identifier)
(Identifier)
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier))
(Function
(Identifier)
(Args)
(Args
(Identifier)
(Identifier)))
(Function
(Identifier)
(Args)
(Args
(ParameterDecl
(Identifier)
(Identifier))
(ParameterDecl
(Identifier)
(Identifier)))))+}

View File

@ -1,6 +1,37 @@
{-(ParseError
{-(Program
(Module
(Identifier))
(Identifier)
(Args)
(ParseError))-}
(Function
(Identifier)
(Args))
(Function
(Identifier)
(Args))
(Function
(Identifier)
(Args
(ParameterDecl
(Identifier)
(Identifier))
(Identifier)
(Identifier)
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier))
(Function
(Identifier)
(Args)
(Args
(Identifier)
(Identifier)))
(Function
(Identifier)
(Args)
(Args
(ParameterDecl
(Identifier)
(Identifier))
(ParameterDecl
(Identifier)
(Identifier)))))-}

View File

@ -1,6 +1,37 @@
{-(ParseError
{-(Program
(Module
(Identifier))
(Identifier)
(Args)
(ParseError))-}
(Function
(Identifier)
(Args))
(Function
(Identifier)
(Args))
(Function
(Identifier)
(Args
(ParameterDecl
(Identifier)
(Identifier))
(Identifier)
(Identifier)
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier))
(Function
(Identifier)
(Args)
(Args
(Identifier)
(Identifier)))
(Function
(Identifier)
(Args)
(Args
(ParameterDecl
(Identifier)
(Identifier))
(ParameterDecl
(Identifier)
(Identifier)))))-}

View File

@ -1,6 +1,41 @@
(ParseError
(Program
(Module
(Identifier))
(Identifier)
(Args)
(ParseError))
(Function
(Identifier)
(Args))
(Function
{ (Identifier)
->(Identifier) }
(Args))
(Function
{ (Identifier)
->(Identifier) }
(Args
(ParameterDecl
(Identifier)
(Identifier))
(Identifier)
(Identifier)
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier))
(Function
{ (Identifier)
->(Identifier) }
(Args)
(Args
(Identifier)
(Identifier)))
(Function
{ (Identifier)
->(Identifier) }
(Args)
(Args
(ParameterDecl
(Identifier)
(Identifier))
(ParameterDecl
(Identifier)
(Identifier)))))

View File

@ -1,6 +1,41 @@
(ParseError
(Program
(Module
(Identifier))
(Identifier)
(Args)
(ParseError))
(Function
(Identifier)
(Args))
(Function
{ (Identifier)
->(Identifier) }
(Args))
(Function
{ (Identifier)
->(Identifier) }
(Args
(ParameterDecl
(Identifier)
(Identifier))
(Identifier)
(Identifier)
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier))
(Function
{ (Identifier)
->(Identifier) }
(Args)
(Args
(Identifier)
(Identifier)))
(Function
{ (Identifier)
->(Identifier) }
(Args)
(Args
(ParameterDecl
(Identifier)
(Identifier))
(ParameterDecl
(Identifier)
(Identifier)))))

View File

@ -1,6 +1,37 @@
(ParseError
(Program
(Module
(Identifier))
(Identifier)
(Args)
(ParseError))
(Function
(Identifier)
(Args))
(Function
(Identifier)
(Args))
(Function
(Identifier)
(Args
(ParameterDecl
(Identifier)
(Identifier))
(Identifier)
(Identifier)
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier))
(Function
(Identifier)
(Args)
(Args
(Identifier)
(Identifier)))
(Function
(Identifier)
(Args)
(Args
(ParameterDecl
(Identifier)
(Identifier))
(ParameterDecl
(Identifier)
(Identifier)))))

View File

@ -1,6 +1,37 @@
(ParseError
(Program
(Module
(Identifier))
(Identifier)
(Args)
(ParseError))
(Function
(Identifier)
(Args))
(Function
(Identifier)
(Args))
(Function
(Identifier)
(Args
(ParameterDecl
(Identifier)
(Identifier))
(Identifier)
(Identifier)
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier))
(Function
(Identifier)
(Args)
(Args
(Identifier)
(Identifier)))
(Function
(Identifier)
(Args)
(Args
(ParameterDecl
(Identifier)
(Identifier))
(ParameterDecl
(Identifier)
(Identifier)))))