Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for lookupSym (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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