Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for elem1 (0.09 sec)

  1. src/cmd/compile/internal/syntax/parser.go

    		return p.sliceType(pos)
    	}
    
    	// x [n]E or x[n,], x[n1, n2], ...
    	n, comma := p.typeList(false)
    	p.want(_Rbrack)
    	if !comma {
    		if elem := p.typeOrNil(); elem != nil {
    			// x [n]E
    			t := new(ArrayType)
    			t.pos = pos
    			t.Len = n
    			t.Elem = elem
    			return t
    		}
    	}
    
    	// x[n,], x[n1, n2], ...
    	t := new(IndexExpr)
    	t.pos = pos
    	// t.X will be filled in by caller
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/runtime/framework.go

    // plugin weights there is not an overflow of MaxTotalScore.
    func getScoreWeights(f *frameworkImpl, plugins []config.Plugin) error {
    	var totalPriority int64
    	scorePlugins := reflect.ValueOf(&f.scorePlugins).Elem()
    	pluginType := scorePlugins.Type().Elem()
    	for _, e := range plugins {
    		pg := f.pluginsMap[e.Name]
    		if !reflect.TypeOf(pg).Implements(pluginType) {
    			continue
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  3. src/cmd/dist/build.go

    		if gohostos == "darwin" && filepath.Base(f) == ".DS_Store" {
    			continue // unfortunate but not unexpected
    		}
    		elem := strings.TrimSuffix(filepath.Base(f), ".exe")
    		if !ok[f] && elem != "go" && elem != "gofmt" && elem != goos+"_"+goarch {
    			fatalf("unexpected new file in $GOROOT/bin: %s", elem)
    		}
    	}
    
    	// Remove go_bootstrap now that we're done.
    	xremove(pathf("%s/go_bootstrap"+exe, tooldir))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  4. src/go/types/expr.go

    			// See analogous comment for *Array.
    			if utyp.elem == nil {
    				check.error(e, InvalidTypeCycle, "invalid recursive type")
    				goto Error
    			}
    			check.indexedElts(e.Elts, utyp.elem, -1)
    
    		case *Map:
    			// Prevent crash if the map referred to is not yet set up.
    			// See analogous comment for *Array.
    			if utyp.key == nil || utyp.elem == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/expr.go

    			// See analogous comment for *Array.
    			if utyp.elem == nil {
    				check.error(e, InvalidTypeCycle, "invalid recursive type")
    				goto Error
    			}
    			check.indexedElts(e.ElemList, utyp.elem, -1)
    
    		case *Map:
    			// Prevent crash if the map referred to is not yet set up.
    			// See analogous comment for *Array.
    			if utyp.key == nil || utyp.elem == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  6. src/encoding/json/decode_test.go

    				}
    				vv := reflect.New(reflect.TypeOf(tt.ptr).Elem())
    				dec = NewDecoder(bytes.NewReader(enc))
    				if tt.useNumber {
    					dec.UseNumber()
    				}
    				if err := dec.Decode(vv.Interface()); err != nil {
    					t.Fatalf("%s: Decode(%#q) error after roundtrip: %v", tt.Where, enc, err)
    				}
    				if !reflect.DeepEqual(v.Elem().Interface(), vv.Elem().Interface()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  7. src/go/build/build.go

    	OpenFile func(path string) (io.ReadCloser, error)
    }
    
    // joinPath calls ctxt.JoinPath (if not nil) or else filepath.Join.
    func (ctxt *Context) joinPath(elem ...string) string {
    	if f := ctxt.JoinPath; f != nil {
    		return f(elem...)
    	}
    	return filepath.Join(elem...)
    }
    
    // splitPathList calls ctxt.SplitPathList (if not nil) or else filepath.SplitList.
    func (ctxt *Context) splitPathList(s string) []string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/dwarf.go

    		typedefdie = d.dotypedef(&dwtypes, name, die)
    		newattr(die, dwarf.DW_AT_byte_size, dwarf.DW_CLS_CONSTANT, bytesize, 0)
    		s := decodetypeArrayElem(d.ldr, d.arch, gotype)
    		elem := d.defgotype(s)
    		d.newrefattr(die, dwarf.DW_AT_go_elem, elem)
    
    	case abi.String:
    		die = d.newdie(&dwtypes, dwarf.DW_ABRV_STRINGTYPE, name)
    		newattr(die, dwarf.DW_AT_byte_size, dwarf.DW_CLS_CONSTANT, bytesize, 0)
    
    	case abi.Struct:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                } catch (Exception e) {
                    throw new RuntimeException(e);
                }
            }
    
            private <T> Set<T> concat(Set<T> set, T elem) {
                Set<T> newSet = new HashSet<>(set);
                newSet.add(elem);
                return newSet;
            }
    
            @SuppressWarnings("checkstyle:parameternumber")
            private InterimResult build(
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 16:34:29 UTC 2024
    - 57.1K bytes
    - Viewed (0)
  10. src/sync/atomic/atomic_test.go

    		i Int64
    	}
    	if o := reflect.TypeOf(&signed).Elem().Field(1).Offset; o != 8 {
    		t.Fatalf("Int64 offset = %d, want 8", o)
    	}
    	if p := reflect.ValueOf(&signed).Elem().Field(1).Addr().Pointer(); p&7 != 0 {
    		t.Fatalf("Int64 pointer = %#x, want 8-aligned", p)
    	}
    
    	var unsigned struct {
    		_ uint32
    		i Uint64
    	}
    	if o := reflect.TypeOf(&unsigned).Elem().Field(1).Offset; o != 8 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 71.4K bytes
    - Viewed (0)
Back to top