MCPcopy Create free account
hub / github.com/decomp/decomp / parseName

Function parseName

cmd/go-post/fix.go:778–791  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

776}
777
778func parseName(s string) (ptr bool, pkg, nam string) {
779 i := strings.Index(s, ".")
780 if i < 0 {
781 panic("parseName: invalid name " + s)
782 }
783 if strings.HasPrefix(s, "*") {
784 ptr = true
785 s = s[1:]
786 i--
787 }
788 pkg = s[:i]
789 nam = s[i+1:]
790 return
791}
792
793func renameFixTab(f *ast.File, tab []rename) bool {
794 fixed := false

Callers 1

renameFixTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected