Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 50 for MapType (0.27 sec)

  1. src/go/ast/filter.go

    		b2 := filterParamList(t.Results, f, export)
    		return b1 || b2
    	case *InterfaceType:
    		if filterFieldList(t.Methods, f, export) {
    			t.Incomplete = true
    		}
    		return len(t.Methods.List) > 0
    	case *MapType:
    		b1 := filterType(t.Key, f, export)
    		b2 := filterType(t.Value, f, export)
    		return b1 || b2
    	case *ChanType:
    		return filterType(t.Value, f, export)
    	}
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. src/cmd/fix/fix.go

    		}
    		walkBeforeAfter(&n.Params, before, after)
    		if n.Results != nil {
    			walkBeforeAfter(&n.Results, before, after)
    		}
    	case *ast.InterfaceType:
    		walkBeforeAfter(&n.Methods, before, after)
    	case *ast.MapType:
    		walkBeforeAfter(&n.Key, before, after)
    		walkBeforeAfter(&n.Value, before, after)
    	case *ast.ChanType:
    		walkBeforeAfter(&n.Value, before, after)
    
    	case *ast.BadStmt:
    	case *ast.DeclStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 14.6K bytes
    - Viewed (0)
  3. src/runtime/alg.go

    		return h
    	default:
    		// Should never happen, as typehash should only be called
    		// with comparable types.
    		panic(errorString("hash of unhashable type " + toRType(t).string()))
    	}
    }
    
    func mapKeyError(t *maptype, p unsafe.Pointer) error {
    	if !t.HashMightPanic() {
    		return nil
    	}
    	return mapKeyError2(t.Key, p)
    }
    
    func mapKeyError2(t *_type, p unsafe.Pointer) error {
    	if t.TFlag&abi.TFlagRegularMemory != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/typexpr.go

    		check.funcType(typ, nil, nil, e)
    		return typ
    
    	case *syntax.InterfaceType:
    		typ := check.newInterface()
    		setDefType(def, typ)
    		check.interfaceType(typ, e, def)
    		return typ
    
    	case *syntax.MapType:
    		typ := new(Map)
    		setDefType(def, typ)
    
    		typ.key = check.varType(e.Key)
    		typ.elem = check.varType(e.Value)
    
    		// spec: "The comparison operators == and != must be fully defined
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. src/internal/reflectlite/type.go

    func (t rtype) In(i int) Type {
    	tt := t.Type.FuncType()
    	if tt == nil {
    		panic("reflect: In of non-func type")
    	}
    	return toType(tt.InSlice()[i])
    }
    
    func (t rtype) Key() Type {
    	tt := t.Type.MapType()
    	if tt == nil {
    		panic("reflect: Key of non-map type")
    	}
    	return toType(tt.Key)
    }
    
    func (t rtype) Len() int {
    	tt := t.Type.ArrayType()
    	if tt == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. src/go/types/typexpr.go

    		check.funcType(typ, nil, e)
    		return typ
    
    	case *ast.InterfaceType:
    		typ := check.newInterface()
    		setDefType(def, typ)
    		check.interfaceType(typ, e, def)
    		return typ
    
    	case *ast.MapType:
    		typ := new(Map)
    		setDefType(def, typ)
    
    		typ.key = check.varType(e.Key)
    		typ.elem = check.varType(e.Value)
    
    		// spec: "The comparison operators == and != must be fully defined
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/deadcode.go

    	case abi.Slice: // reflect.sliceType
    		off += arch.PtrSize
    	case abi.Array: // reflect.arrayType
    		off += 3 * arch.PtrSize
    	case abi.Chan: // reflect.chanType
    		off += 2 * arch.PtrSize
    	case abi.Map: // reflect.mapType
    		off += 4*arch.PtrSize + 8
    	case abi.Interface: // reflect.interfaceType
    		off += 3 * arch.PtrSize
    	default:
    		// just Sizeof(rtype)
    	}
    
    	mcount := int(decodeInuxi(arch, p[off+4:], 2))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  8. src/encoding/gob/debug.go

    		com := deb.common()
    		// Field number 1 is type Id of key
    		deb.delta(1)
    		keyId := deb.typeId()
    		// Field number 2 is type Id of elem
    		deb.delta(1)
    		elemId := deb.typeId()
    		wire.MapT = &mapType{com, keyId, elemId}
    	case 4: // GobEncoder type, one field of {{Common}}
    		// Field number 0 is CommonType
    		deb.delta(1)
    		com := deb.common()
    		wire.GobEncoderT = &gobEncoderType{com}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 09:34:41 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  9. src/cmd/fix/typecheck.go

    					case *ast.StructType:
    						for _, f := range st.Fields.List {
    							for _, n := range f.Names {
    								t.Field[n.Name] = gofmt(f.Type)
    							}
    						}
    					case *ast.ArrayType, *ast.StarExpr, *ast.MapType:
    						t.Def = gofmt(st)
    					}
    				}
    			}
    		}
    	}
    
    	typecheck1(cfg1, f, typeof, assign)
    	return typeof, assign
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/printer.go

    			p.print(newline, indent)
    			p.printMethodList(n.MethodList)
    			p.print(outdent, newline)
    		} else {
    			p.print(_Lbrace)
    			p.printMethodList(n.MethodList)
    		}
    		p.print(_Rbrace)
    
    	case *MapType:
    		p.print(_Map, _Lbrack, n.Key, _Rbrack, n.Value)
    
    	case *ChanType:
    		if n.Dir == RecvOnly {
    			p.print(_Arrow)
    		}
    		p.print(_Chan)
    		if n.Dir == SendOnly {
    			p.print(_Arrow)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
Back to top