1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
semantic/test/fixtures/go/corpus/method-declarations.A.go

19 lines
291 B
Go
Raw Normal View History

2017-02-23 21:06:49 +03:00
package main
func main() {}
2017-11-15 22:08:12 +03:00
func (s) Method()
2017-02-23 21:06:49 +03:00
func (self Person) Equals(other Person) bool {}
func (p *Point) Length() float64 {
return math.Sqrt(p.x * p.x + p.y * p.y)
}
func (p *Point) Scale(factor float64) {
p.x *= factor
p.y *= factor
}
func (f *Field) Alive(x, y int) bool { }