Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(go_indexer): add support for using file as top-level caller (#5637)
- Loading branch information
1 parent
0efe65e
commit da6a8bd
Showing
5 changed files
with
42 additions
and
0 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
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
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
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,12 @@ | ||
// Package pkginit tests callgraph relationships for calls occurring at the | ||
// top-level file. | ||
package pkginit | ||
|
||
import "fmt" | ||
|
||
// Ensure that callsites at the package level are blamed on the file. | ||
|
||
//- A=@"fmt.Sprint(27)" ref/call _FmtSprint | ||
//- A childof File | ||
//- File.node/kind file | ||
var p = fmt.Sprint(27) |
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