- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for lookupSym (0.09 sec)
-
src/go/doc/comment/testdata_test.go
} p.LookupPackage = func(name string) (importPath string, ok bool) { if name == "comment" { return "go/doc/comment", true } return DefaultLookupPackage(name) } p.LookupSym = func(recv, name string) (ok bool) { if recv == "Parser" && name == "Parse" || recv == "" && name == "Doc" || recv == "" && name == "NoURL" { return true } return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 4.5K bytes - Viewed (0) -
src/cmd/compile/internal/types/pkg.go
pkg = nopkg } if s := pkg.Syms[string(name)]; s != nil { return s } str := InternString(name) return pkg.Lookup(str) } // LookupNum looks up the symbol starting with prefix and ending with // the decimal n. If prefix is too long, LookupNum panics. func (pkg *Pkg) LookupNum(prefix string, n int) *Sym { var buf [20]byte // plenty long enough for all current users copy(buf[:], prefix)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 16:28:50 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/syms.go
base.Fatalf("autolabel prefix must start with '.', have %q", prefix) } fn := ir.CurFunc if ir.CurFunc == nil { base.Fatalf("autolabel outside function") } n := fn.Label fn.Label++ return LookupNum(prefix, int(n)) } func Lookup(name string) *types.Sym { return types.LocalPkg.Lookup(name) } // InitRuntime loads the definitions for the low-level runtime functions,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 21:17:13 UTC 2023 - 3.7K bytes - Viewed (0)