-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1825 from xushiwei/q
gop/doc: TestFromTestdata
- Loading branch information
Showing
9 changed files
with
146 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package foo | ||
|
||
const GopPackage = true | ||
|
||
const Gopo_Add = "AddInt,,AddString" | ||
|
||
// Add doc | ||
func Add__1(a, b float64) float64 { | ||
return 0 | ||
} | ||
|
||
// AddInt doc | ||
func AddInt(a, b int) int { | ||
return 0 | ||
} | ||
|
||
// AddString doc | ||
func AddString(a, b string) string { | ||
return "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
== Func Add == | ||
Doc: AddInt doc | ||
|
||
func Add(a, b int) int | ||
== Func Add == | ||
Doc: Add doc | ||
|
||
func Add(a, b float64) float64 | ||
== Func Add == | ||
Doc: AddString doc | ||
|
||
func Add(a, b string) string | ||
== Func AddInt == | ||
Doc: AddInt doc | ||
|
||
func AddInt(a, b int) int | ||
== Func AddString == | ||
Doc: AddString doc | ||
|
||
func AddString(a, b string) string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package foo | ||
|
||
const GopPackage = true | ||
|
||
const Gopo__T__Gop_Add = ".AddInt,AddString" | ||
|
||
type T int | ||
|
||
// AddInt doc | ||
func (p T) AddInt(b int) *T { | ||
return nil | ||
} | ||
|
||
// AddString doc | ||
func AddString(this *T, b string) *T { | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
== Type T == | ||
- Func AddString - | ||
Doc: AddString doc | ||
|
||
func AddString(this *T, b string) *T | ||
- Method AddInt - | ||
Recv: T | ||
Doc: AddInt doc | ||
|
||
func (p T) AddInt(b int) *T | ||
- Method Gop_Add - | ||
Recv: T | ||
Doc: AddInt doc | ||
|
||
func (p T) Gop_Add(b int) *T | ||
- Method Gop_Add - | ||
Recv: *T | ||
Doc: AddString doc | ||
|
||
func (this *T) Gop_Add(b string) *T |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package foo | ||
|
||
const GopPackage = true | ||
|
||
// Bar doc | ||
func Bar__0() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
== Func Bar == | ||
Doc: Bar doc | ||
|
||
func Bar() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package foo | ||
|
||
const GopPackage = true | ||
|
||
type T int | ||
|
||
// Bar doc 1 | ||
func (p *T) Bar__0() { | ||
} | ||
|
||
// Bar doc 2 | ||
func (t T) Bar__1() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
== Type T == | ||
- Method Bar - | ||
Recv: *T | ||
Doc: Bar doc 1 | ||
|
||
func (p *T) Bar() | ||
- Method Bar - | ||
Recv: T | ||
Doc: Bar doc 2 | ||
|
||
func (t T) Bar() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters