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:
parent
29a0dcf6e9
commit
018e4707ac
2
test/fixtures/go/method-declarations.A.go
vendored
2
test/fixtures/go/method-declarations.A.go
vendored
@ -2,6 +2,8 @@ package main
|
||||
|
||||
func main() {}
|
||||
|
||||
func (s) Method()
|
||||
|
||||
func (self Person) Equals(other Person) bool {}
|
||||
|
||||
func (p *Point) Length() float64 {
|
||||
|
2
test/fixtures/go/method-declarations.B.go
vendored
2
test/fixtures/go/method-declarations.B.go
vendored
@ -2,6 +2,8 @@ package main
|
||||
|
||||
func main() {}
|
||||
|
||||
func (s) Methods()
|
||||
|
||||
func (self Num) Equals(other Num) bool {}
|
||||
|
||||
func (p *Point) OtherLength() float64 {
|
||||
|
16
test/fixtures/go/method-declarations.diffA-B.txt
vendored
16
test/fixtures/go/method-declarations.diffA-B.txt
vendored
@ -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
|
||||
|
16
test/fixtures/go/method-declarations.diffB-A.txt
vendored
16
test/fixtures/go/method-declarations.diffB-A.txt
vendored
@ -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
|
||||
|
15
test/fixtures/go/method-declarations.parseA.txt
vendored
15
test/fixtures/go/method-declarations.parseA.txt
vendored
@ -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
|
||||
|
15
test/fixtures/go/method-declarations.parseB.txt
vendored
15
test/fixtures/go/method-declarations.parseB.txt
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user