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

Function getType

cmd/go-post/typecheck.go:57–62  ·  view source on GitHub ↗
(t string)

Source from the content-addressed store, hash-verified

55}
56
57func getType(t string) string {
58 if !isType(t) {
59 return ""
60 }
61 return t[len("type "):]
62}
63
64func isType(t string) bool {
65 return strings.HasPrefix(t, "type ")

Callers 2

typecheckFunction · 0.85
typecheck1Function · 0.85

Calls 1

isTypeFunction · 0.85

Tested by

no test coverage detected