-
Notifications
You must be signed in to change notification settings - Fork 243
/
meta.go
40 lines (31 loc) · 1013 Bytes
/
meta.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package meta
func Foobar() {}
// ^ ^ offset 25
// \ offset 19
func Barfoo() {}
// ^ ^ offset 84
// \ offset 78
func SetFoo() {}
// ^ ^ offset 143
// \ offset 137
// Note: The locations in this file are connected to the offsets defined in the
// associated meta file. If you move anything above this comment without
// updating the metadata, the test may break.
//- FA.node/kind anchor
//- FA.loc/start 19
//- FA.loc/end 25
//- FA defines/binding Foobar
//- Foobar.node/kind function
//- _Alt=vname(gsig, gcorp, groot, gpath, glang) generates Foobar
//- FB.node/kind anchor
//- FB.loc/start 78
//- FB.loc/end 84
//- FB defines/binding Barfoo
//- Barfoo.node/kind function
//- _AltB=vname(gsig2, gcorp, groot, gpath, glang) generates Barfoo
//- vname("", gcorp, groot, gpath, "") generates vname("", kythe, _, "go/indexer/metadata_test/meta.go", "")
//- SA.node/kind anchor
//- SA.loc/start 137
//- SA.loc/end 143
//- SA defines/binding SetFoo
//- SetFoo.semantic/generated set