Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 231 for elem (0.17 sec)

  1. src/cmd/compile/internal/types2/typexpr.go

    			typ.len = -1
    		}
    		typ.elem = check.varType(e.Elem)
    		if typ.len >= 0 {
    			return typ
    		}
    		// report error if we encountered [...]
    
    	case *syntax.SliceType:
    		typ := new(Slice)
    		setDefType(def, typ)
    		typ.elem = check.varType(e.Elem)
    		return typ
    
    	case *syntax.DotsType:
    		// dots are handled explicitly where they are legal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/rsc.io/markdown/parse.go

    		prevEnd = b.Pos().EndLine
    		s.prefix1 = "" // item prefix only for first block
    	}
    }
    
    var (
    	blockType   = reflect.TypeOf(new(Block)).Elem()
    	blocksType  = reflect.TypeOf(new([]Block)).Elem()
    	inlinesType = reflect.TypeOf(new([]Inline)).Elem()
    )
    
    func printb(buf *bytes.Buffer, b Block, prefix string) {
    	fmt.Fprintf(buf, "(%T", b)
    	v := reflect.ValueOf(b)
    	v = reflect.Indirect(v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. src/cmd/go/internal/clean/clean.go

    		}
    		keep(p.GoFiles)
    		keep(p.CgoFiles)
    		keep(p.TestGoFiles)
    		keep(p.XTestGoFiles)
    	}
    
    	_, elem := filepath.Split(p.Dir)
    	var allRemove []string
    
    	// Remove dir-named executable only if this is package main.
    	if p.Name == "main" {
    		allRemove = append(allRemove,
    			elem,
    			elem+".exe",
    			p.DefaultExecName(),
    			p.DefaultExecName()+".exe",
    		)
    	}
    
    	// Remove package test executables.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/mod/module/module.go

    func checkElem(elem string, kind pathKind) error {
    	if elem == "" {
    		return fmt.Errorf("empty path element")
    	}
    	if strings.Count(elem, ".") == len(elem) {
    		return fmt.Errorf("invalid path element %q", elem)
    	}
    	if elem[0] == '.' && kind == modulePath {
    		return fmt.Errorf("leading dot in path element")
    	}
    	if elem[len(elem)-1] == '.' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  5. schema/serializer.go

    			return fmt.Errorf("failed to unmarshal JSONB value: %#v", dbValue)
    		}
    
    		if len(bytes) > 0 {
    			err = json.Unmarshal(bytes, fieldValue.Interface())
    		}
    	}
    
    	field.ReflectValueOf(ctx, dst).Set(fieldValue.Elem())
    	return
    }
    
    // Value implements serializer interface
    func (JSONSerializer) Value(ctx context.Context, field *Field, dst reflect.Value, fieldValue interface{}) (interface{}, error) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 08:28:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/named_test.go

    		t.Fatal(err)
    	}
    
    	firstFieldType := func(n *Named) *Named {
    		return n.Underlying().(*Struct).Field(0).Type().(*Pointer).Elem().(*Named)
    	}
    
    	Inst := Unalias(pkg.Scope().Lookup("Inst").Type()).(*Pointer).Elem().(*Named)
    	Node := firstFieldType(Inst)
    	Tree := firstFieldType(Node)
    	if !Identical(Inst, Tree) {
    		t.Fatalf("Not a cycle: got %v, want %v", Tree, Inst)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 21:06:56 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go

    		return nil
    	case *types.Pointer:
    		return find(obj, T.Elem(), append(path, opElem), seen)
    	case *types.Slice:
    		return find(obj, T.Elem(), append(path, opElem), seen)
    	case *types.Array:
    		return find(obj, T.Elem(), append(path, opElem), seen)
    	case *types.Chan:
    		return find(obj, T.Elem(), append(path, opElem), seen)
    	case *types.Map:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/testdata/deadcode/ifacemethod5.go

    type I interface{ M() }
    
    type T float64
    
    func (t T) F(s S) {}
    
    func main() {
    	var t T
    	meth, _ := reflect.TypeOf(t).MethodByName("F")
    	ft := meth.Type
    	at := ft.In(1)
    	v := reflect.New(at).Elem()
    	v.Interface().(I).M()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:07:26 UTC 2023
    - 777 bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/under.go

    	if Identical(x, y) {
    		return x
    	}
    
    	// We may have channels that differ in direction only.
    	if x, _ := x.(*Chan); x != nil {
    		if y, _ := y.(*Chan); y != nil && Identical(x.elem, y.elem) {
    			// We have channels that differ in direction only.
    			// If there's an unrestricted channel, select the restricted one.
    			switch {
    			case x.dir == SendRecv:
    				return y
    			case y.dir == SendRecv:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 22:34:27 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. statement.go

    			for destValue.Kind() == reflect.Ptr {
    				destValue = destValue.Elem()
    			}
    
    			if stmt.ReflectValue != destValue {
    				if !destValue.CanAddr() {
    					destValueCanAddr := reflect.New(destValue.Type())
    					destValueCanAddr.Elem().Set(destValue)
    					stmt.Dest = destValueCanAddr.Interface()
    					destValue = destValueCanAddr.Elem()
    				}
    
    				switch destValue.Kind() {
    				case reflect.Struct:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 19.8K bytes
    - Viewed (0)
Back to top