Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for lookup_type (0.21 sec)

  1. src/runtime/runtime-gdb.py

    	except gdb.error:
    		pass
    
    
    def lookup_type(name):
    	try:
    		return gdb.lookup_type(name)
    	except gdb.error:
    		pass
    	try:
    		return gdb.lookup_type('struct ' + name)
    	except gdb.error:
    		pass
    	try:
    		return gdb.lookup_type('struct ' + name[1:]).pointer()
    	except gdb.error:
    		pass
    
    
    def iface_commontype(obj):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  2. src/go/doc/reader.go

    func (r *reader) isVisible(name string) bool {
    	return r.mode&AllDecls != 0 || token.IsExported(name)
    }
    
    // lookupType returns the base type with the given name.
    // If the base type has not been encountered yet, a new
    // type with the given name but no associated declaration
    // is added to the type map.
    func (r *reader) lookupType(name string) *namedType {
    	if name == "" || name == "_" {
    		return nil // no type docs for anonymous types
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  3. src/cmd/link/internal/wasm/asm.go

    					wi := readWasmImport(ldr, lsym)
    					hostImportMap[fn] = int64(len(hostImports))
    					hostImports = append(hostImports, &wasmFunc{
    						Module: wi.Module,
    						Name:   wi.Name,
    						Type: lookupType(&wasmFuncType{
    							Params:  fieldsToTypes(wi.Params),
    							Results: fieldsToTypes(wi.Results),
    						}, &types),
    					})
    				} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/lookup.go

    	prev := make(map[Type]int) // index at which type was previously seen
    	for _, e := range list {
    		if i, found := lookupType(prev, e.typ); found {
    			list[i].multiples = true
    			// ignore this entry
    		} else {
    			prev[e.typ] = n
    			list[n] = e
    			n++
    		}
    	}
    	return list[:n]
    }
    
    func lookupType(m map[Type]int, typ Type) (int, bool) {
    	// fast path: maybe the types are equal
    	if i, found := m[typ]; found {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  5. src/go/types/lookup.go

    	prev := make(map[Type]int) // index at which type was previously seen
    	for _, e := range list {
    		if i, found := lookupType(prev, e.typ); found {
    			list[i].multiples = true
    			// ignore this entry
    		} else {
    			prev[e.typ] = n
    			list[n] = e
    			n++
    		}
    	}
    	return list[:n]
    }
    
    func lookupType(m map[Type]int, typ Type) (int, bool) {
    	// fast path: maybe the types are equal
    	if i, found := m[typ]; found {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 19.9K bytes
    - Viewed (0)
Back to top