From 018e4707ac3a12654a289b27c1913f0542670a2c Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Wed, 15 Nov 2017 11:08:12 -0800 Subject: [PATCH] Update method declarations tests --- test/fixtures/go/method-declarations.A.go | 2 ++ test/fixtures/go/method-declarations.B.go | 2 ++ test/fixtures/go/method-declarations.diffA-B.txt | 16 +++++++++++++--- test/fixtures/go/method-declarations.diffB-A.txt | 16 +++++++++++++--- test/fixtures/go/method-declarations.parseA.txt | 15 ++++++++++++--- test/fixtures/go/method-declarations.parseB.txt | 15 ++++++++++++--- 6 files changed, 54 insertions(+), 12 deletions(-) diff --git a/test/fixtures/go/method-declarations.A.go b/test/fixtures/go/method-declarations.A.go index fc2c62578..c532285c8 100644 --- a/test/fixtures/go/method-declarations.A.go +++ b/test/fixtures/go/method-declarations.A.go @@ -2,6 +2,8 @@ package main func main() {} +func (s) Method() + func (self Person) Equals(other Person) bool {} func (p *Point) Length() float64 { diff --git a/test/fixtures/go/method-declarations.B.go b/test/fixtures/go/method-declarations.B.go index 482af2b85..2c4eb17d6 100644 --- a/test/fixtures/go/method-declarations.B.go +++ b/test/fixtures/go/method-declarations.B.go @@ -2,6 +2,8 @@ package main func main() {} +func (s) Methods() + func (self Num) Equals(other Num) bool {} func (p *Point) OtherLength() float64 { diff --git a/test/fixtures/go/method-declarations.diffA-B.txt b/test/fixtures/go/method-declarations.diffA-B.txt index cf8b0c348..a1ba81c96 100644 --- a/test/fixtures/go/method-declarations.diffA-B.txt +++ b/test/fixtures/go/method-declarations.diffA-B.txt @@ -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 diff --git a/test/fixtures/go/method-declarations.diffB-A.txt b/test/fixtures/go/method-declarations.diffB-A.txt index 88a702429..863c977e8 100644 --- a/test/fixtures/go/method-declarations.diffB-A.txt +++ b/test/fixtures/go/method-declarations.diffB-A.txt @@ -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 diff --git a/test/fixtures/go/method-declarations.parseA.txt b/test/fixtures/go/method-declarations.parseA.txt index e69e33acd..1dacc8716 100644 --- a/test/fixtures/go/method-declarations.parseA.txt +++ b/test/fixtures/go/method-declarations.parseA.txt @@ -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 diff --git a/test/fixtures/go/method-declarations.parseB.txt b/test/fixtures/go/method-declarations.parseB.txt index 8204c9023..308e77240 100644 --- a/test/fixtures/go/method-declarations.parseB.txt +++ b/test/fixtures/go/method-declarations.parseB.txt @@ -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