- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for lookupSym (0.18 sec)
-
src/go/doc/doc.go
imports[path] = pkg } return pkg, nil } // lookupSym reports whether the package has a given symbol or method. // // If recv == "", HasSym reports whether the package has a top-level // const, func, type, or var named name. // // If recv != "", HasSym reports whether the package has a type // named recv with a method named name. func (p *Package) lookupSym(recv, name string) bool { if recv != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 11.2K bytes - Viewed (0) -
src/go/doc/comment/parse.go
d := &parseDoc{ Parser: p, Doc: new(Doc), links: make(map[string]*LinkDef), lines: lines, lookupSym: func(recv, name string) bool { return false }, } if p.LookupSym != nil { d.lookupSym = p.LookupSym } // First pass: break into block structure and collect known links. // The text is all recorded as Plain for now. var prev span
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 33.5K bytes - Viewed (0) -
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/debug/gosym/symtab.go
pc := f.LineTable.LineToPC(abs, f.End) if pc != 0 { return pc, f, nil } } return 0, nil, &UnknownLineError{file, line} } // LookupSym returns the text, data, or bss symbol with the given name, // or nil if no such symbol is found. func (t *Table) LookupSym(name string) *Sym { // TODO(austin) Maybe make a map for i := range t.Syms { s := &t.Syms[i] switch s.Type {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 17.9K 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/subr.go
) func AssignConv(n ir.Node, t *types.Type, context string) ir.Node { return assignconvfn(n, t, func() string { return context }) } // LookupNum returns types.LocalPkg.LookupNum(prefix, n). func LookupNum(prefix string, n int) *types.Sym { return types.LocalPkg.LookupNum(prefix, n) } // Given funarg struct list, return list of fn args. func NewFuncParams(origs []*types.Field) []*types.Field {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 19:45:58 UTC 2023 - 20.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"(*Sym).PackageName", Method, 0}, {"(*Sym).ReceiverName", Method, 0}, {"(*Sym).Static", Method, 0}, {"(*Table).LineToPC", Method, 0}, {"(*Table).LookupFunc", Method, 0}, {"(*Table).LookupSym", Method, 0}, {"(*Table).PCToFunc", Method, 0}, {"(*Table).PCToLine", Method, 0}, {"(*Table).SymByAddr", Method, 0}, {"(*UnknownLineError).Error", Method, 0}, {"(Func).BaseName", Method, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
src/cmd/compile/internal/noder/noder.go
// To make it unique within a package and also uncallable, // the name, normally "pkg.init", is altered to "pkg.init.0". var renameinitgen int func Renameinit() *types.Sym { s := typecheck.LookupNum("init.", renameinitgen) renameinitgen++ return s } func checkEmbed(decl *syntax.VarDecl, haveEmbed, withinFunc bool) error { switch { case !haveEmbed:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 11 20:40:57 UTC 2023 - 12.5K bytes - Viewed (0) -
src/cmd/compile/internal/staticinit/sched.go
// StaticName returns a name backed by a (writable) static data symbol. // Use readonlystaticname for read-only node. func StaticName(t *types.Type) *ir.Name { // Don't use LookupNum; it interns the resulting string, but these are all unique. sym := typecheck.Lookup(fmt.Sprintf("%s%d", obj.StaticNamePref, statuniqgen)) statuniqgen++ n := ir.NewNameAt(base.Pos, sym, t) sym.Def = n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 17:16:14 UTC 2024 - 30.7K bytes - Viewed (0) -
src/cmd/compile/internal/ir/func.go
} declareParams := func(params []*types.Field, ctxt Class, prefix string, offset int) { for i, param := range params { sym := param.Sym if sym == nil || sym.IsBlank() { sym = fn.Sym().Pkg.LookupNum(prefix, i) } name := NewNameAt(param.Pos, sym, param.Type) name.Class = ctxt name.Curfn = fn fn.Dcl[offset+i] = name if setNname { param.Nname = name } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 21.1K bytes - Viewed (0)