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

Update method declarations tests

This commit is contained in:
Rick Winfrey 2017-11-15 11:08:12 -08:00
parent 29a0dcf6e9
commit 018e4707ac
6 changed files with 54 additions and 12 deletions

View File

@ -2,6 +2,8 @@ package main
func main() {}
func (s) Method()
func (self Person) Equals(other Person) bool {}
func (p *Point) Length() float64 {

View File

@ -2,6 +2,8 @@ package main
func main() {}
func (s) Methods()
func (self Num) Equals(other Num) bool {}
func (p *Point) OtherLength() float64 {

View File

@ -7,7 +7,15 @@
([])
([]))
(Method
(Empty)
(Identifier)
{ (Identifier)
->(Identifier) }
([])
(Empty))
(Method
(
(Identifier))
(
(Identifier)
{ (Identifier)
@ -20,7 +28,8 @@
->(Identifier) }))
([]))
(Method
(Identifier)
(
(Identifier))
(
(Identifier)
(Pointer
@ -76,7 +85,7 @@
{+(Identifier)+}) })
(Empty))))
(Method
(Empty)
([])
(
{ (Identifier)
->(Identifier) }
@ -108,7 +117,8 @@
(Identifier))
(Identifier)))))
(Method
(Identifier)
(
(Identifier))
(
(Identifier)
(Pointer

View File

@ -7,7 +7,15 @@
([])
([]))
(Method
(Empty)
(Identifier)
{ (Identifier)
->(Identifier) }
([])
(Empty))
(Method
(
(Identifier))
(
(Identifier)
{ (Identifier)
@ -20,7 +28,8 @@
->(Identifier) }))
([]))
(Method
(Identifier)
(
(Identifier))
(
(Identifier)
(Pointer
@ -76,7 +85,7 @@
{+(Identifier)+})+}) })
(Empty))))
(Method
(Empty)
([])
(
{ (Identifier)
->(Identifier) }
@ -108,7 +117,8 @@
(Identifier))
(Identifier)))))
(Method
(Identifier)
(
(Identifier))
(
(Identifier)
(Pointer

View File

@ -7,7 +7,14 @@
([])
([]))
(Method
(Empty)
(Identifier)
(Identifier)
([])
(Empty))
(Method
(
(Identifier))
(
(Identifier)
(Identifier))
@ -18,7 +25,8 @@
(Identifier)))
([]))
(Method
(Identifier)
(
(Identifier))
(
(Identifier)
(Pointer
@ -47,7 +55,7 @@
(Identifier))))
(Empty))))
(Method
(Empty)
([])
(
(Identifier)
(Pointer
@ -77,7 +85,8 @@
(Identifier))
(Identifier)))))
(Method
(Identifier)
(
(Identifier))
(
(Identifier)
(Pointer

View File

@ -7,7 +7,14 @@
([])
([]))
(Method
(Empty)
(Identifier)
(Identifier)
([])
(Empty))
(Method
(
(Identifier))
(
(Identifier)
(Identifier))
@ -18,7 +25,8 @@
(Identifier)))
([]))
(Method
(Identifier)
(
(Identifier))
(
(Identifier)
(Pointer
@ -59,7 +67,7 @@
(Identifier)))
(Empty))))
(Method
(Empty)
([])
(
(Identifier)
(Pointer
@ -89,7 +97,8 @@
(Identifier))
(Identifier)))))
(Method
(Identifier)
(
(Identifier))
(
(Identifier)
(Pointer