Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 69 for setstruct (0.32 sec)

  1. src/cmd/compile/internal/pkginit/initAsanGlobals.go

    		nfield(nxp, fname("odrIndicator"), up),
    	})
    	types.CalcSize(asanGlobal)
    
    	asanLocation := types.NewStruct([]*types.Field{
    		nfield(nxp, fname("filename"), up),
    		nfield(nxp, fname("line"), i32),
    		nfield(nxp, fname("column"), i32),
    	})
    	types.CalcSize(asanLocation)
    
    	defString := types.NewStruct([]*types.Field{
    		types.NewField(nxp, fname("data"), up),
    		types.NewField(nxp, fname("len"), up),
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:24 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  2. src/encoding/gob/type_test.go

    	F ****float64 // will become float64
    	G *Bar
    	H *Bar // should not interpolate the definition of Bar again
    	I *Foo // will not explode
    }
    
    func TestStructType(t *testing.T) {
    	sstruct := getTypeUnlocked("Foo", reflect.TypeFor[Foo]())
    	str := sstruct.string()
    	// If we can print it correctly, we built it correctly.
    	expected := "Foo = struct { A int; B int; C string; D bytes; E float; F float; G Bar = struct { X string; }; H Bar; I Foo; }"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:26:13 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  3. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/psiBased/KtFe10PsiDestructuringDeclarationSymbol.kt

            KaPsiBasedSymbolPointer.createForSymbolFromSource<KaDestructuringDeclarationSymbol>(this)?.let { return it }
            throw CanNotCreateSymbolPointerForLocalLibraryDeclarationException(SpecialNames.DESTRUCT.asString())
        }
    
        override fun equals(other: Any?): Boolean {
            if (this === other) return true
            return other is KaFe10PsiDestructuringDeclarationSymbol && other.psi == this.psi
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu May 23 17:29:30 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/struct.go

    	tags   []string // field tags; nil if there are no tags
    }
    
    // NewStruct returns a new struct with the given fields and corresponding field tags.
    // If a field with index i has a tag, tags[i] must be that tag, but len(tags) may be
    // only as long as required to hold the tag with the largest index i. Consequently,
    // if no field has a tag, tags may be nil.
    func NewStruct(fields []*Var, tags []string) *Struct {
    	var fset objset
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. pkg/wasm/convert_test.go

    func messageToStruct(t *testing.T, m proto.Message) *structpb.Struct {
    	st, err := conversion.MessageToStruct(m)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return st
    }
    
    func newStruct(t *testing.T, m map[string]any) *structpb.Struct {
    	st, err := structpb.NewStruct(m)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return st
    }
    
    func messageToAnyWithTypeURL(t *testing.T, msg proto.Message, typeURL string) *anypb.Any {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. pilot/pkg/util/protoconv/protoconv.go

    		return nil
    	}
    	return out
    }
    
    func TypedStructWithFields(typeURL string, fields map[string]interface{}) *anypb.Any {
    	value, err := structpb.NewStruct(fields)
    	if err != nil {
    		log.Error(fmt.Sprintf("error marshaling struct %s: %v", typeURL, err))
    	}
    	return MessageToAny(&udpa.TypedStruct{
    		TypeUrl: typeURL,
    		Value:   value,
    	})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 04:55:40 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/abiutilsaux_test.go

    	fields := make([]*types.Field, len(fieldtypes))
    	for k, t := range fieldtypes {
    		if t == nil {
    			panic("bad -- field has no type")
    		}
    		f := types.NewField(src.NoXPos, nil, t)
    		fields[k] = f
    	}
    	s := types.NewStruct(fields)
    	return s
    }
    
    func mkFuncType(rcvr *types.Type, ins []*types.Type, outs []*types.Type) *types.Type {
    	q := typecheck.Lookup("?")
    	inf := []*types.Field{}
    	for _, it := range ins {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:34:00 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. operator/pkg/util/util.go

    		return x.StringValue
    	case *structpb.Value_NumberValue:
    		return fmt.Sprint(x.NumberValue)
    	default:
    		return v.String()
    	}
    }
    
    func MustStruct(m map[string]any) *structpb.Struct {
    	s, _ := structpb.NewStruct(m)
    	return s
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 02 13:01:43 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/psiBased/KtFe10PsiValueParameterSymbol.kt

                return type?.toKtType(analysisContext) ?: createErrorType()
            }
    
        override val name: Name
            get() = withValidityAssertion {
                if (psi.destructuringDeclaration != null) SpecialNames.DESTRUCT
                else psi.nameAsSafeName
            }
    
        override fun createPointer(): KaSymbolPointer<KaValueParameterSymbol> = withValidityAssertion {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typebits/typebits.go

    		elt := t.Elem()
    		if elt.Size() == 0 {
    			// Short-circuit for #20739.
    			break
    		}
    		for i := int64(0); i < t.NumElem(); i++ {
    			set(elt, off, bv, skip)
    			off += elt.Size()
    		}
    
    	case types.TSTRUCT:
    		for _, f := range t.Fields() {
    			set(f.Type, off+f.Offset, bv, skip)
    		}
    
    	default:
    		base.Fatalf("typebits.Set: unexpected type, %v", t)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 3.2K bytes
    - Viewed (0)
Back to top