Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for lookupSym (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. api/go1.19.txt

    pkg go/doc/comment, type Parser struct #51082
    pkg go/doc/comment, type Parser struct, LookupPackage func(string) (string, bool) #51082
    pkg go/doc/comment, type Parser struct, LookupSym func(string, string) bool #51082
    pkg go/doc/comment, type Parser struct, Words map[string]string #51082
    pkg go/doc/comment, type Plain string #51082
    pkg go/doc/comment, type Printer struct #51082
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:29:41 UTC 2022
    - 17.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/compile/internal/typecheck/func.go

    	it := NewClosureStructIter(clo.Func.ClosureVars)
    	i := 0
    	for {
    		n, typ, _ := it.Next()
    		if n == nil {
    			break
    		}
    		fields[1+i] = types.NewField(base.AutogeneratedPos, types.LocalPkg.LookupNum("X", i), typ)
    		i++
    	}
    	typ := types.NewStruct(fields)
    	typ.SetNoalg(true)
    	return typ
    }
    
    // MethodValueType returns the struct type used to hold all the information
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top