Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 57 for dumpfields (0.11 sec)

  1. src/go/types/predicates.go

    		// and identical tags. Two embedded fields are considered to have the same
    		// name. Lower-case field names from different packages are always different.
    		if y, ok := y.(*Struct); ok {
    			if x.NumFields() == y.NumFields() {
    				for i, f := range x.fields {
    					g := y.fields[i]
    					if f.embedded != g.embedded ||
    						!c.ignoreTags && x.Tag(i) != y.Tag(i) ||
    						!f.sameId(g.pkg, g.name, false) ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/predicates.go

    		// and identical tags. Two embedded fields are considered to have the same
    		// name. Lower-case field names from different packages are always different.
    		if y, ok := y.(*Struct); ok {
    			if x.NumFields() == y.NumFields() {
    				for i, f := range x.fields {
    					g := y.fields[i]
    					if f.embedded != g.embedded ||
    						!c.ignoreTags && x.Tag(i) != y.Tag(i) ||
    						!f.sameId(g.pkg, g.name, false) ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/types.go

    	case *types.Struct:
    		// report whether all the elements of the struct match the expected type. For
    		// instance, with "%d" all the elements must be printable with the "%d" format.
    		for i := 0; i < typ.NumFields(); i++ {
    			typf := typ.Field(i)
    			if !m.match(typf.Type(), false) {
    				return false
    			}
    			if m.t&argString != 0 && !typf.Exported() && isConvertibleToString(typf.Type()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  4. src/go/types/mono.go

    			tuple := func(tup *Tuple) {
    				for i := 0; i < tup.Len(); i++ {
    					do(tup.At(i).Type())
    				}
    			}
    			tuple(typ.Params())
    			tuple(typ.Results())
    		case *Struct:
    			for i := 0; i < typ.NumFields(); i++ {
    				do(typ.Field(i).Type())
    			}
    		}
    	}
    	do(targ)
    }
    
    // localNamedVertex returns the index of the vertex representing
    // named, or -1 if named doesn't need representation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go

    	case asmStruct:
    		tu := t.Underlying().(*types.Struct)
    		fields := make([]*types.Var, tu.NumFields())
    		for i := 0; i < tu.NumFields(); i++ {
    			fields[i] = tu.Field(i)
    		}
    		offsets := arch.sizes.Offsetsof(fields)
    		for i, f := range fields {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    	// TODO(adonovan): remove workaround when we drop go1.10.
    	if analysisutil.IsNamedType(typ, "sync", "noCopy") {
    		return []string{typ.String()}
    	}
    
    	nfields := styp.NumFields()
    	for i := 0; i < nfields; i++ {
    		ftyp := styp.Field(i).Type()
    		subpath := lockPath(tpkg, ftyp, seen)
    		if subpath != nil {
    			return append(subpath, typ.String())
    		}
    	}
    
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/mono.go

    			tuple := func(tup *Tuple) {
    				for i := 0; i < tup.Len(); i++ {
    					do(tup.At(i).Type())
    				}
    			}
    			tuple(typ.Params())
    			tuple(typ.Results())
    		case *Struct:
    			for i := 0; i < typ.NumFields(); i++ {
    				do(typ.Field(i).Type())
    			}
    		}
    	}
    	do(targ)
    }
    
    // localNamedVertex returns the index of the vertex representing
    // named, or -1 if named doesn't need representation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 00:05:29 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/assign.go

    // check assign type list to
    // an expression list. called in
    //
    //	expr-list = func()
    func ascompatet(nl ir.Nodes, nr *types.Type) []ir.Node {
    	if len(nl) != nr.NumFields() {
    		base.Fatalf("ascompatet: assignment count mismatch: %d = %d", len(nl), nr.NumFields())
    	}
    
    	var nn ir.Nodes
    	for i, l := range nl {
    		if ir.IsBlank(l) {
    			continue
    		}
    		r := nr.Field(i)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go

    			return r
    		}
    		if r := find(obj, T.Params(), append(path, opParams), seen); r != nil {
    			return r
    		}
    		return find(obj, T.Results(), append(path, opResults), seen)
    	case *types.Struct:
    		for i := 0; i < T.NumFields(); i++ {
    			fld := T.Field(i)
    			path2 := appendOpArg(path, opField, i)
    			if fld == obj {
    				return path2 // found field var
    			}
    			if r := find(obj, fld.Type(), append(path2, opType), seen); r != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall.go

    		return false
    	case *types.Pointer:
    		return typeOKForCgoCall(t.Elem(), m)
    	case *types.Array:
    		return typeOKForCgoCall(t.Elem(), m)
    	case *types.Struct:
    		for i := 0; i < t.NumFields(); i++ {
    			if !typeOKForCgoCall(t.Field(i).Type(), m) {
    				return false
    			}
    		}
    	}
    	return true
    }
    
    func isUnsafePointer(info *types.Info, e ast.Expr) bool {
    	t := info.Types[e].Type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.2K bytes
    - Viewed (0)
Back to top