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 main() {}
func (s) Method()
func (self Person) Equals(other Person) bool {} func (self Person) Equals(other Person) bool {}
func (p *Point) Length() float64 { func (p *Point) Length() float64 {

View File

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

View File

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

View File

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

View File

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

View File

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