kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/go/indexer/testdata/meta.go (about)

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