2018-12-14 13:46:12 -07:00
|
|
|
package b
|
|
|
|
|
|
|
|
import (
|
|
|
|
"golang.org/fake/a"
|
|
|
|
)
|
|
|
|
|
|
|
|
func useThings() {
|
|
|
|
t := a.Thing{} //@mark(bStructType, "ing")
|
|
|
|
fmt.Print(t.Member) //@mark(bMember, "ember")
|
|
|
|
fmt.Print(a.Other) //@mark(bVar, "ther")
|
|
|
|
a.Things() //@mark(bFunc, "ings")
|
|
|
|
}
|
|
|
|
|
|
|
|
/*@
|
2019-02-19 19:11:15 -07:00
|
|
|
definition(bStructType, "", Thing, "$file:$line:$col-$ecol: defined here as type a.Thing struct{Member string}")
|
2018-12-14 13:46:12 -07:00
|
|
|
definition(bStructType, "-emulate=guru", Thing, "$file:$line:$col: defined here as type golang.org/fake/a.Thing")
|
|
|
|
|
2019-02-19 19:11:15 -07:00
|
|
|
definition(bMember, "", Member, "$file:$line:$col-$ecol: defined here as field Member string")
|
2018-12-14 13:46:12 -07:00
|
|
|
definition(bMember, "-emulate=guru", Member, "$file:$line:$col: defined here as field Member string")
|
|
|
|
|
2019-02-19 19:11:15 -07:00
|
|
|
definition(bVar, "", Other, "$file:$line:$col-$ecol: defined here as var a.Other a.Thing")
|
2018-12-14 13:46:12 -07:00
|
|
|
definition(bVar, "-emulate=guru", Other, "$file:$line:$col: defined here as var golang.org/fake/a.Other")
|
|
|
|
|
2019-02-19 19:11:15 -07:00
|
|
|
definition(bFunc, "", Things, "$file:$line:$col-$ecol: defined here as func a.Things(val []string) []a.Thing")
|
2018-12-14 13:46:12 -07:00
|
|
|
definition(bFunc, "-emulate=guru", Things, "$file:$line:$col: defined here as func golang.org/fake/a.Things(val []string) []golang.org/fake/a.Thing")
|
|
|
|
*/
|