Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for lookupSym (0.23 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top