| Index: mojom/mojom_parser/generated/mojom_types/mojom_types.mojom.go
|
| diff --git a/mojom/mojom_parser/generated/mojom_types/mojom_types.mojom.go b/mojom/mojom_parser/generated/mojom_types/mojom_types.mojom.go
|
| index 0210d95f9ecdb40d2e225a1d181f3f941a66d390..07409a3eb12dbb36c9b56d036e1aa5499d6764a7 100644
|
| --- a/mojom/mojom_parser/generated/mojom_types/mojom_types.mojom.go
|
| +++ b/mojom/mojom_parser/generated/mojom_types/mojom_types.mojom.go
|
| @@ -11,234 +11,11 @@
|
| package mojom_types
|
|
|
| import (
|
| - "fmt"
|
| - "mojo/public/go/bindings"
|
| - "sort"
|
| + sort "sort"
|
| + fmt "fmt"
|
| + bindings "mojo/public/go/bindings"
|
| )
|
|
|
| -// These IDs are the Mojom Identifiers / Type Keys.
|
| -// Mojom libraries importing this one will use these identifiers when building
|
| -// TypeReference objects.
|
| -var ID_mojom_types_SimpleType__ string = "mojom_types_SimpleType__"
|
| -var ID_mojom_types_BuiltinConstantValue__ string = "mojom_types_BuiltinConstantValue__"
|
| -var ID_mojom_types_Kind__ string = "mojom_types_Kind__"
|
| -var ID_mojom_types_StringType__ string = "mojom_types_StringType__"
|
| -var ID_mojom_types_HandleType__ string = "mojom_types_HandleType__"
|
| -var ID_mojom_types_ArrayType__ string = "mojom_types_ArrayType__"
|
| -var ID_mojom_types_MapType__ string = "mojom_types_MapType__"
|
| -var ID_mojom_types_TypeReference__ string = "mojom_types_TypeReference__"
|
| -var ID_mojom_types_StructField__ string = "mojom_types_StructField__"
|
| -var ID_mojom_types_DefaultKeyword__ string = "mojom_types_DefaultKeyword__"
|
| -var ID_mojom_types_StructVersion__ string = "mojom_types_StructVersion__"
|
| -var ID_mojom_types_MojomStruct__ string = "mojom_types_MojomStruct__"
|
| -var ID_mojom_types_UnionField__ string = "mojom_types_UnionField__"
|
| -var ID_mojom_types_MojomUnion__ string = "mojom_types_MojomUnion__"
|
| -var ID_mojom_types_EnumValue__ string = "mojom_types_EnumValue__"
|
| -var ID_mojom_types_MojomEnum__ string = "mojom_types_MojomEnum__"
|
| -var ID_mojom_types_MojomMethod__ string = "mojom_types_MojomMethod__"
|
| -var ID_mojom_types_MojomInterface__ string = "mojom_types_MojomInterface__"
|
| -var ID_mojom_types_UserValueReference__ string = "mojom_types_UserValueReference__"
|
| -var ID_mojom_types_DeclaredConstant__ string = "mojom_types_DeclaredConstant__"
|
| -var ID_mojom_types_Attribute__ string = "mojom_types_Attribute__"
|
| -var ID_mojom_types_DeclarationData__ string = "mojom_types_DeclarationData__"
|
| -var ID_mojom_types_SourceFileInfo__ string = "mojom_types_SourceFileInfo__"
|
| -var ID_mojom_types_ContainedDeclarations__ string = "mojom_types_ContainedDeclarations__"
|
| -var ID_mojom_types_Type__ string = "mojom_types_Type__"
|
| -var ID_mojom_types_UserDefinedType__ string = "mojom_types_UserDefinedType__"
|
| -var ID_mojom_types_DefaultFieldValue__ string = "mojom_types_DefaultFieldValue__"
|
| -var ID_mojom_types_Value__ string = "mojom_types_Value__"
|
| -var ID_mojom_types_LiteralValue__ string = "mojom_types_LiteralValue__"
|
| -var ID_mojom_types_UserDefinedValue__ string = "mojom_types_UserDefinedValue__"
|
| -
|
| -var mojom_typesDesc__ = make(map[string]UserDefinedType)
|
| -func init() {
|
| - mojom_typesDesc__["mojom_types_SimpleType__"] = &UserDefinedTypeEnumType{
|
| - Value: mojom_types_SimpleType__(),
|
| - }
|
| - mojom_typesDesc__["mojom_types_BuiltinConstantValue__"] = &UserDefinedTypeEnumType{
|
| - Value: mojom_types_BuiltinConstantValue__(),
|
| - }
|
| - mojom_typesDesc__["mojom_types_Kind__"] = &UserDefinedTypeEnumType{
|
| - Value: mojom_types_Kind__(),
|
| - }
|
| - mojom_typesDesc__["mojom_types_StringType__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_StringType__(),
|
| - }
|
| -
|
| - mojom_typesDesc__["mojom_types_HandleType__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_HandleType__(),
|
| - }
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_ArrayType__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_ArrayType__(),
|
| - }
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_Type__"] = &UserDefinedTypeUnionType{
|
| - Value: mojom_types_Type__(),
|
| - }
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_MapType__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_MapType__(),
|
| - }
|
| -
|
| -
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_TypeReference__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_TypeReference__(),
|
| - }
|
| -
|
| -
|
| -
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_StructField__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_StructField__(),
|
| - }
|
| - mojom_typesDesc__["mojom_types_DeclarationData__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_DeclarationData__(),
|
| - }
|
| -
|
| -
|
| -
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_SourceFileInfo__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_SourceFileInfo__(),
|
| - }
|
| -
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_ContainedDeclarations__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_ContainedDeclarations__(),
|
| - }
|
| -
|
| -
|
| -
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_DefaultFieldValue__"] = &UserDefinedTypeUnionType{
|
| - Value: mojom_types_DefaultFieldValue__(),
|
| - }
|
| - mojom_typesDesc__["mojom_types_Value__"] = &UserDefinedTypeUnionType{
|
| - Value: mojom_types_Value__(),
|
| - }
|
| - mojom_typesDesc__["mojom_types_LiteralValue__"] = &UserDefinedTypeUnionType{
|
| - Value: mojom_types_LiteralValue__(),
|
| - }
|
| -
|
| -
|
| -
|
| -
|
| -
|
| -
|
| -
|
| -
|
| -
|
| -
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_UserValueReference__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_UserValueReference__(),
|
| - }
|
| -
|
| -
|
| -
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_DefaultKeyword__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_DefaultKeyword__(),
|
| - }
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_StructVersion__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_StructVersion__(),
|
| - }
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_MojomStruct__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_MojomStruct__(),
|
| - }
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_UnionField__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_UnionField__(),
|
| - }
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_MojomUnion__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_MojomUnion__(),
|
| - }
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_EnumValue__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_EnumValue__(),
|
| - }
|
| -
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_MojomEnum__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_MojomEnum__(),
|
| - }
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_MojomMethod__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_MojomMethod__(),
|
| - }
|
| -
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_MojomInterface__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_MojomInterface__(),
|
| - }
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_DeclaredConstant__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_DeclaredConstant__(),
|
| - }
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_Attribute__"] = &UserDefinedTypeStructType{
|
| - Value: mojom_types_Attribute__(),
|
| - }
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_UserDefinedType__"] = &UserDefinedTypeUnionType{
|
| - Value: mojom_types_UserDefinedType__(),
|
| - }
|
| -
|
| -
|
| -
|
| -
|
| - mojom_typesDesc__["mojom_types_UserDefinedValue__"] = &UserDefinedTypeUnionType{
|
| - Value: mojom_types_UserDefinedValue__(),
|
| - }
|
| -
|
| -
|
| -
|
| -}
|
| -func GetAllMojomTypeDefinitions() map[string]UserDefinedType {
|
| - return mojom_typesDesc__
|
| -}
|
|
|
| type SimpleType int32
|
|
|
| @@ -256,96 +33,7 @@ const (
|
| SimpleType_UinT64 = SimpleType_UinT32 + 1;
|
| )
|
|
|
| -// String names and labels used by the MojomEnum types.
|
| -var (
|
| - enumName_SimpleType = "SimpleType"
|
| - enumFieldName_SimpleType_Bool = "Bool"
|
| - enumFieldName_SimpleType_Double = "Double"
|
| - enumFieldName_SimpleType_Float = "Float"
|
| - enumFieldName_SimpleType_InT8 = "InT8"
|
| - enumFieldName_SimpleType_InT16 = "InT16"
|
| - enumFieldName_SimpleType_InT32 = "InT32"
|
| - enumFieldName_SimpleType_InT64 = "InT64"
|
| - enumFieldName_SimpleType_UinT8 = "UinT8"
|
| - enumFieldName_SimpleType_UinT16 = "UinT16"
|
| - enumFieldName_SimpleType_UinT32 = "UinT32"
|
| - enumFieldName_SimpleType_UinT64 = "UinT64"
|
| -)
|
|
|
| -func mojom_types_SimpleType__() MojomEnum {
|
| - return MojomEnum{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumName_SimpleType,
|
| - },
|
| - Values: []EnumValue{EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_SimpleType_Bool,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_SimpleType__,
|
| - IntValue: int32(0),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_SimpleType_Double,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_SimpleType__,
|
| - IntValue: int32(1),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_SimpleType_Float,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_SimpleType__,
|
| - IntValue: int32(2),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_SimpleType_InT8,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_SimpleType__,
|
| - IntValue: int32(3),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_SimpleType_InT16,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_SimpleType__,
|
| - IntValue: int32(4),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_SimpleType_InT32,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_SimpleType__,
|
| - IntValue: int32(5),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_SimpleType_InT64,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_SimpleType__,
|
| - IntValue: int32(6),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_SimpleType_UinT8,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_SimpleType__,
|
| - IntValue: int32(7),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_SimpleType_UinT16,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_SimpleType__,
|
| - IntValue: int32(8),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_SimpleType_UinT32,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_SimpleType__,
|
| - IntValue: int32(9),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_SimpleType_UinT64,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_SimpleType__,
|
| - IntValue: int32(10),
|
| - },},
|
| - }
|
| -}
|
|
|
| type BuiltinConstantValue int32
|
|
|
| @@ -358,61 +46,7 @@ const (
|
| BuiltinConstantValue_FloatNan = BuiltinConstantValue_FloatNegativeInfinity + 1;
|
| )
|
|
|
| -// String names and labels used by the MojomEnum types.
|
| -var (
|
| - enumName_BuiltinConstantValue = "BuiltinConstantValue"
|
| - enumFieldName_BuiltinConstantValue_DoubleInfinity = "DoubleInfinity"
|
| - enumFieldName_BuiltinConstantValue_DoubleNegativeInfinity = "DoubleNegativeInfinity"
|
| - enumFieldName_BuiltinConstantValue_DoubleNan = "DoubleNan"
|
| - enumFieldName_BuiltinConstantValue_FloatInfinity = "FloatInfinity"
|
| - enumFieldName_BuiltinConstantValue_FloatNegativeInfinity = "FloatNegativeInfinity"
|
| - enumFieldName_BuiltinConstantValue_FloatNan = "FloatNan"
|
| -)
|
|
|
| -func mojom_types_BuiltinConstantValue__() MojomEnum {
|
| - return MojomEnum{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumName_BuiltinConstantValue,
|
| - },
|
| - Values: []EnumValue{EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_BuiltinConstantValue_DoubleInfinity,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_BuiltinConstantValue__,
|
| - IntValue: int32(0),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_BuiltinConstantValue_DoubleNegativeInfinity,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_BuiltinConstantValue__,
|
| - IntValue: int32(1),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_BuiltinConstantValue_DoubleNan,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_BuiltinConstantValue__,
|
| - IntValue: int32(2),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_BuiltinConstantValue_FloatInfinity,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_BuiltinConstantValue__,
|
| - IntValue: int32(3),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_BuiltinConstantValue_FloatNegativeInfinity,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_BuiltinConstantValue__,
|
| - IntValue: int32(4),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_BuiltinConstantValue_FloatNan,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_BuiltinConstantValue__,
|
| - IntValue: int32(5),
|
| - },},
|
| - }
|
| -}
|
|
|
| type HandleType_Kind int32
|
|
|
| @@ -424,54 +58,7 @@ const (
|
| HandleType_Kind_SharedBuffer = HandleType_Kind_DataPipeProducer + 1;
|
| )
|
|
|
| -// String names and labels used by the MojomEnum types.
|
| -var (
|
| - enumName_HandleType_Kind = "HandleType_Kind"
|
| - enumFieldName_HandleType_Kind_Unspecified = "Unspecified"
|
| - enumFieldName_HandleType_Kind_MessagePipe = "MessagePipe"
|
| - enumFieldName_HandleType_Kind_DataPipeConsumer = "DataPipeConsumer"
|
| - enumFieldName_HandleType_Kind_DataPipeProducer = "DataPipeProducer"
|
| - enumFieldName_HandleType_Kind_SharedBuffer = "SharedBuffer"
|
| -)
|
|
|
| -func mojom_types_Kind__() MojomEnum {
|
| - return MojomEnum{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumName_HandleType_Kind,
|
| - },
|
| - Values: []EnumValue{EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_HandleType_Kind_Unspecified,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_Kind__,
|
| - IntValue: int32(0),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_HandleType_Kind_MessagePipe,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_Kind__,
|
| - IntValue: int32(1),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_HandleType_Kind_DataPipeConsumer,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_Kind__,
|
| - IntValue: int32(2),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_HandleType_Kind_DataPipeProducer,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_Kind__,
|
| - IntValue: int32(3),
|
| - },EnumValue{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &enumFieldName_HandleType_Kind_SharedBuffer,
|
| - },
|
| - EnumTypeKey: ID_mojom_types_Kind__,
|
| - IntValue: int32(4),
|
| - },},
|
| - }
|
| -}
|
|
|
| type StringType struct {
|
| Nullable bool
|
| @@ -524,24 +111,7 @@ func (s *StringType) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_StringType = "StringType"
|
| - structFieldName_StringType_Nullable = "Nullable"
|
| -)
|
|
|
| -func mojom_types_StringType__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_StringType,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_StringType_Nullable,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_Bool},
|
| - },},
|
| - }
|
| -}
|
|
|
| type HandleType struct {
|
| Nullable bool
|
| @@ -605,33 +175,7 @@ func (s *HandleType) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_HandleType = "HandleType"
|
| - structFieldName_HandleType_Nullable = "Nullable"
|
| - structFieldName_HandleType_Kind = "Kind"
|
| -)
|
|
|
| -func mojom_types_HandleType__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_HandleType,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_HandleType_Nullable,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_Bool},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_HandleType_Kind,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_Kind__,
|
| - TypeKey: &ID_mojom_types_Kind__,},
|
| -},
|
| - },},
|
| - }
|
| -}
|
|
|
| type ArrayType struct {
|
| Nullable bool
|
| @@ -712,39 +256,7 @@ func (s *ArrayType) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_ArrayType = "ArrayType"
|
| - structFieldName_ArrayType_Nullable = "Nullable"
|
| - structFieldName_ArrayType_FixedLength = "FixedLength"
|
| - structFieldName_ArrayType_ElementType = "ElementType"
|
| -)
|
|
|
| -func mojom_types_ArrayType__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_ArrayType,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_ArrayType_Nullable,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_Bool},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_ArrayType_FixedLength,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_InT32},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_ArrayType_ElementType,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_Type__,
|
| - TypeKey: &ID_mojom_types_Type__,},
|
| -},
|
| - },},
|
| - }
|
| -}
|
|
|
| type MapType struct {
|
| Nullable bool
|
| @@ -831,42 +343,7 @@ func (s *MapType) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_MapType = "MapType"
|
| - structFieldName_MapType_Nullable = "Nullable"
|
| - structFieldName_MapType_KeyType = "KeyType"
|
| - structFieldName_MapType_ValueType = "ValueType"
|
| -)
|
|
|
| -func mojom_types_MapType__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_MapType,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MapType_Nullable,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_Bool},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MapType_KeyType,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_Type__,
|
| - TypeKey: &ID_mojom_types_Type__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MapType_ValueType,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_Type__,
|
| - TypeKey: &ID_mojom_types_Type__,},
|
| -},
|
| - },},
|
| - }
|
| -}
|
|
|
| type TypeReference struct {
|
| Nullable bool
|
| @@ -984,42 +461,7 @@ func (s *TypeReference) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_TypeReference = "TypeReference"
|
| - structFieldName_TypeReference_Nullable = "Nullable"
|
| - structFieldName_TypeReference_IsInterfaceRequest = "IsInterfaceRequest"
|
| - structFieldName_TypeReference_Identifier = "Identifier"
|
| - structFieldName_TypeReference_TypeKey = "TypeKey"
|
| -)
|
|
|
| -func mojom_types_TypeReference__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_TypeReference,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_TypeReference_Nullable,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_Bool},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_TypeReference_IsInterfaceRequest,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_Bool},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_TypeReference_Identifier,
|
| - },
|
| - Type: &TypeStringType{StringType{true}},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_TypeReference_TypeKey,
|
| - },
|
| - Type: &TypeStringType{StringType{true}},
|
| - },},
|
| - }
|
| -}
|
|
|
| type StructField struct {
|
| DeclData *DeclarationData
|
| @@ -1129,51 +571,7 @@ func (s *StructField) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_StructField = "StructField"
|
| - structFieldName_StructField_DeclData = "DeclData"
|
| - structFieldName_StructField_Type = "Type"
|
| - structFieldName_StructField_DefaultValue = "DefaultValue"
|
| - structFieldName_StructField_Offset = "Offset"
|
| -)
|
|
|
| -func mojom_types_StructField__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_StructField,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_StructField_DeclData,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Nullable: true,Identifier: &ID_mojom_types_DeclarationData__,
|
| - TypeKey: &ID_mojom_types_DeclarationData__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_StructField_Type,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_Type__,
|
| - TypeKey: &ID_mojom_types_Type__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_StructField_DefaultValue,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Nullable: true,Identifier: &ID_mojom_types_DefaultFieldValue__,
|
| - TypeKey: &ID_mojom_types_DefaultFieldValue__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_StructField_Offset,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_InT32},
|
| - },},
|
| - }
|
| -}
|
|
|
| type DefaultKeyword struct {
|
| }
|
| @@ -1215,18 +613,7 @@ func (s *DefaultKeyword) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_DefaultKeyword = "DefaultKeyword"
|
| -)
|
|
|
| -func mojom_types_DefaultKeyword__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_DefaultKeyword,
|
| - },Fields: []StructField{},
|
| - }
|
| -}
|
|
|
| type StructVersion struct {
|
| VersionNumber uint32
|
| @@ -1301,36 +688,7 @@ func (s *StructVersion) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_StructVersion = "StructVersion"
|
| - structFieldName_StructVersion_VersionNumber = "VersionNumber"
|
| - structFieldName_StructVersion_NumFields = "NumFields"
|
| - structFieldName_StructVersion_NumBytes = "NumBytes"
|
| -)
|
|
|
| -func mojom_types_StructVersion__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_StructVersion,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_StructVersion_VersionNumber,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_UinT32},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_StructVersion_NumFields,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_UinT32},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_StructVersion_NumBytes,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_UinT32},
|
| - },},
|
| - }
|
| -}
|
|
|
| type MojomStruct struct {
|
| DeclData *DeclarationData
|
| @@ -1496,51 +854,7 @@ func (s *MojomStruct) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_MojomStruct = "MojomStruct"
|
| - structFieldName_MojomStruct_DeclData = "DeclData"
|
| - structFieldName_MojomStruct_Fields = "Fields"
|
| - structFieldName_MojomStruct_VersionInfo = "VersionInfo"
|
| -)
|
|
|
| -func mojom_types_MojomStruct__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_MojomStruct,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MojomStruct_DeclData,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Nullable: true,Identifier: &ID_mojom_types_DeclarationData__,
|
| - TypeKey: &ID_mojom_types_DeclarationData__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MojomStruct_Fields,
|
| - },
|
| - Type: &TypeArrayType{
|
| - Value: ArrayType{ElementType: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_StructField__,
|
| - TypeKey: &ID_mojom_types_StructField__,},
|
| -},
|
| - },
|
| - },
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MojomStruct_VersionInfo,
|
| - },
|
| - Type: &TypeArrayType{
|
| - Value: ArrayType{Nullable: true,ElementType: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_StructVersion__,
|
| - TypeKey: &ID_mojom_types_StructVersion__,},
|
| -},
|
| - },
|
| - },
|
| - },},
|
| - }
|
| -}
|
|
|
| type UnionField struct {
|
| DeclData *DeclarationData
|
| @@ -1635,42 +949,7 @@ func (s *UnionField) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_UnionField = "UnionField"
|
| - structFieldName_UnionField_DeclData = "DeclData"
|
| - structFieldName_UnionField_Type = "Type"
|
| - structFieldName_UnionField_Tag = "Tag"
|
| -)
|
|
|
| -func mojom_types_UnionField__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_UnionField,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_UnionField_DeclData,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Nullable: true,Identifier: &ID_mojom_types_DeclarationData__,
|
| - TypeKey: &ID_mojom_types_DeclarationData__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_UnionField_Type,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_Type__,
|
| - TypeKey: &ID_mojom_types_Type__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_UnionField_Tag,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_UinT32},
|
| - },},
|
| - }
|
| -}
|
|
|
| type MojomUnion struct {
|
| DeclData *DeclarationData
|
| @@ -1784,39 +1063,7 @@ func (s *MojomUnion) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_MojomUnion = "MojomUnion"
|
| - structFieldName_MojomUnion_DeclData = "DeclData"
|
| - structFieldName_MojomUnion_Fields = "Fields"
|
| -)
|
|
|
| -func mojom_types_MojomUnion__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_MojomUnion,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MojomUnion_DeclData,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Nullable: true,Identifier: &ID_mojom_types_DeclarationData__,
|
| - TypeKey: &ID_mojom_types_DeclarationData__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MojomUnion_Fields,
|
| - },
|
| - Type: &TypeArrayType{
|
| - Value: ArrayType{ElementType: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_UnionField__,
|
| - TypeKey: &ID_mojom_types_UnionField__,},
|
| -},
|
| - },
|
| - },
|
| - },},
|
| - }
|
| -}
|
|
|
| type EnumValue struct {
|
| DeclData *DeclarationData
|
| @@ -1931,48 +1178,7 @@ func (s *EnumValue) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_EnumValue = "EnumValue"
|
| - structFieldName_EnumValue_DeclData = "DeclData"
|
| - structFieldName_EnumValue_EnumTypeKey = "EnumTypeKey"
|
| - structFieldName_EnumValue_InitializerValue = "InitializerValue"
|
| - structFieldName_EnumValue_IntValue = "IntValue"
|
| -)
|
|
|
| -func mojom_types_EnumValue__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_EnumValue,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_EnumValue_DeclData,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Nullable: true,Identifier: &ID_mojom_types_DeclarationData__,
|
| - TypeKey: &ID_mojom_types_DeclarationData__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_EnumValue_EnumTypeKey,
|
| - },
|
| - Type: &TypeStringType{StringType{false}},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_EnumValue_InitializerValue,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Nullable: true,Identifier: &ID_mojom_types_Value__,
|
| - TypeKey: &ID_mojom_types_Value__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_EnumValue_IntValue,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_InT32},
|
| - },},
|
| - }
|
| -}
|
|
|
| type MojomEnum struct {
|
| DeclData *DeclarationData
|
| @@ -2086,39 +1292,7 @@ func (s *MojomEnum) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_MojomEnum = "MojomEnum"
|
| - structFieldName_MojomEnum_DeclData = "DeclData"
|
| - structFieldName_MojomEnum_Values = "Values"
|
| -)
|
|
|
| -func mojom_types_MojomEnum__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_MojomEnum,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MojomEnum_DeclData,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Nullable: true,Identifier: &ID_mojom_types_DeclarationData__,
|
| - TypeKey: &ID_mojom_types_DeclarationData__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MojomEnum_Values,
|
| - },
|
| - Type: &TypeArrayType{
|
| - Value: ArrayType{ElementType: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_EnumValue__,
|
| - TypeKey: &ID_mojom_types_EnumValue__,},
|
| -},
|
| - },
|
| - },
|
| - },},
|
| - }
|
| -}
|
|
|
| type MojomMethod struct {
|
| DeclData *DeclarationData
|
| @@ -2241,55 +1415,11 @@ func (s *MojomMethod) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_MojomMethod = "MojomMethod"
|
| - structFieldName_MojomMethod_DeclData = "DeclData"
|
| - structFieldName_MojomMethod_Parameters = "Parameters"
|
| - structFieldName_MojomMethod_ResponseParams = "ResponseParams"
|
| - structFieldName_MojomMethod_Ordinal = "Ordinal"
|
| -)
|
|
|
| -func mojom_types_MojomMethod__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_MojomMethod,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MojomMethod_DeclData,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Nullable: true,Identifier: &ID_mojom_types_DeclarationData__,
|
| - TypeKey: &ID_mojom_types_DeclarationData__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MojomMethod_Parameters,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_MojomStruct__,
|
| - TypeKey: &ID_mojom_types_MojomStruct__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MojomMethod_ResponseParams,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Nullable: true,Identifier: &ID_mojom_types_MojomStruct__,
|
| - TypeKey: &ID_mojom_types_MojomStruct__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MojomMethod_Ordinal,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_UinT32},
|
| - },},
|
| - }
|
| -}
|
|
|
| type MojomInterface struct {
|
| DeclData *DeclarationData
|
| - InterfaceName string
|
| + ServiceName *string
|
| Methods map[uint32]MojomMethod
|
| }
|
|
|
| @@ -2305,11 +1435,15 @@ func (s *MojomInterface) Encode(encoder *bindings.Encoder) error {
|
| return err
|
| }
|
| }
|
| - if err := encoder.WritePointer(); err != nil {
|
| - return err
|
| - }
|
| - if err := encoder.WriteString(s.InterfaceName); err != nil {
|
| - return err
|
| + if s.ServiceName == nil {
|
| + encoder.WriteNullPointer()
|
| + } else {
|
| + if err := encoder.WritePointer(); err != nil {
|
| + return err
|
| + }
|
| + if err := encoder.WriteString((*s.ServiceName)); err != nil {
|
| + return err
|
| + }
|
| }
|
| if err := encoder.WritePointer(); err != nil {
|
| return err
|
| @@ -2402,13 +1536,14 @@ func (s *MojomInterface) Decode(decoder *bindings.Decoder) error {
|
| return err
|
| }
|
| if pointer0 == 0 {
|
| - return &bindings.ValidationError{bindings.UnexpectedNullPointer, "unexpected null pointer"}
|
| + s.ServiceName = nil
|
| } else {
|
| + s.ServiceName = new(string)
|
| value0, err := decoder.ReadString()
|
| if err != nil {
|
| return err
|
| }
|
| - s.InterfaceName = value0
|
| + (*s.ServiceName) = value0
|
| }
|
| }
|
| if header.ElementsOrVersion >= 0 {
|
| @@ -2502,46 +1637,7 @@ func (s *MojomInterface) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_MojomInterface = "MojomInterface"
|
| - structFieldName_MojomInterface_DeclData = "DeclData"
|
| - structFieldName_MojomInterface_InterfaceName = "InterfaceName"
|
| - structFieldName_MojomInterface_Methods = "Methods"
|
| -)
|
|
|
| -func mojom_types_MojomInterface__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_MojomInterface,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MojomInterface_DeclData,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Nullable: true,Identifier: &ID_mojom_types_DeclarationData__,
|
| - TypeKey: &ID_mojom_types_DeclarationData__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MojomInterface_InterfaceName,
|
| - },
|
| - Type: &TypeStringType{StringType{false}},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_MojomInterface_Methods,
|
| - },
|
| - Type: &TypeMapType{
|
| - Value: MapType{KeyType: &TypeSimpleType{SimpleType_UinT32},
|
| - ValueType: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_MojomMethod__,
|
| - TypeKey: &ID_mojom_types_MojomMethod__,},
|
| -},
|
| - },
|
| - },
|
| - },},
|
| - }
|
| -}
|
|
|
| type UserValueReference struct {
|
| Identifier string
|
| @@ -2647,39 +1743,7 @@ func (s *UserValueReference) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_UserValueReference = "UserValueReference"
|
| - structFieldName_UserValueReference_Identifier = "Identifier"
|
| - structFieldName_UserValueReference_ValueKey = "ValueKey"
|
| - structFieldName_UserValueReference_ResolvedConcreteValue = "ResolvedConcreteValue"
|
| -)
|
|
|
| -func mojom_types_UserValueReference__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_UserValueReference,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_UserValueReference_Identifier,
|
| - },
|
| - Type: &TypeStringType{StringType{false}},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_UserValueReference_ValueKey,
|
| - },
|
| - Type: &TypeStringType{StringType{true}},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_UserValueReference_ResolvedConcreteValue,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Nullable: true,Identifier: &ID_mojom_types_Value__,
|
| - TypeKey: &ID_mojom_types_Value__,},
|
| -},
|
| - },},
|
| - }
|
| -}
|
|
|
| type DeclaredConstant struct {
|
| DeclData DeclarationData
|
| @@ -2775,45 +1839,7 @@ func (s *DeclaredConstant) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_DeclaredConstant = "DeclaredConstant"
|
| - structFieldName_DeclaredConstant_DeclData = "DeclData"
|
| - structFieldName_DeclaredConstant_Type = "Type"
|
| - structFieldName_DeclaredConstant_Value = "Value"
|
| -)
|
|
|
| -func mojom_types_DeclaredConstant__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_DeclaredConstant,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_DeclaredConstant_DeclData,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_DeclarationData__,
|
| - TypeKey: &ID_mojom_types_DeclarationData__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_DeclaredConstant_Type,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_Type__,
|
| - TypeKey: &ID_mojom_types_Type__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_DeclaredConstant_Value,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_Value__,
|
| - TypeKey: &ID_mojom_types_Value__,},
|
| -},
|
| - },},
|
| - }
|
| -}
|
|
|
| type Attribute struct {
|
| Key string
|
| @@ -2894,33 +1920,7 @@ func (s *Attribute) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_Attribute = "Attribute"
|
| - structFieldName_Attribute_Key = "Key"
|
| - structFieldName_Attribute_Value = "Value"
|
| -)
|
|
|
| -func mojom_types_Attribute__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_Attribute,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_Attribute_Key,
|
| - },
|
| - Type: &TypeStringType{StringType{false}},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_Attribute_Value,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_LiteralValue__,
|
| - TypeKey: &ID_mojom_types_LiteralValue__,},
|
| -},
|
| - },},
|
| - }
|
| -}
|
|
|
| type DeclarationData struct {
|
| Attributes *[]Attribute
|
| @@ -3178,84 +2178,7 @@ func (s *DeclarationData) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_DeclarationData = "DeclarationData"
|
| - structFieldName_DeclarationData_Attributes = "Attributes"
|
| - structFieldName_DeclarationData_MinVersion = "MinVersion"
|
| - structFieldName_DeclarationData_ShortName = "ShortName"
|
| - structFieldName_DeclarationData_FullIdentifier = "FullIdentifier"
|
| - structFieldName_DeclarationData_DeclaredOrdinal = "DeclaredOrdinal"
|
| - structFieldName_DeclarationData_DeclarationOrder = "DeclarationOrder"
|
| - structFieldName_DeclarationData_SourceFileInfo = "SourceFileInfo"
|
| - structFieldName_DeclarationData_ContainedDeclarations = "ContainedDeclarations"
|
| - structFieldName_DeclarationData_ContainerTypeKey = "ContainerTypeKey"
|
| -)
|
|
|
| -func mojom_types_DeclarationData__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_DeclarationData,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_DeclarationData_Attributes,
|
| - },
|
| - Type: &TypeArrayType{
|
| - Value: ArrayType{Nullable: true,ElementType: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_Attribute__,
|
| - TypeKey: &ID_mojom_types_Attribute__,},
|
| -},
|
| - },
|
| - },
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_DeclarationData_MinVersion,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_InT32},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_DeclarationData_ShortName,
|
| - },
|
| - Type: &TypeStringType{StringType{true}},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_DeclarationData_FullIdentifier,
|
| - },
|
| - Type: &TypeStringType{StringType{true}},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_DeclarationData_DeclaredOrdinal,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_InT32},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_DeclarationData_DeclarationOrder,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_InT32},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_DeclarationData_SourceFileInfo,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Nullable: true,Identifier: &ID_mojom_types_SourceFileInfo__,
|
| - TypeKey: &ID_mojom_types_SourceFileInfo__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_DeclarationData_ContainedDeclarations,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Nullable: true,Identifier: &ID_mojom_types_ContainedDeclarations__,
|
| - TypeKey: &ID_mojom_types_ContainedDeclarations__,},
|
| -},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_DeclarationData_ContainerTypeKey,
|
| - },
|
| - Type: &TypeStringType{StringType{true}},
|
| - },},
|
| - }
|
| -}
|
|
|
| type SourceFileInfo struct {
|
| FileName string
|
| @@ -3341,36 +2264,7 @@ func (s *SourceFileInfo) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_SourceFileInfo = "SourceFileInfo"
|
| - structFieldName_SourceFileInfo_FileName = "FileName"
|
| - structFieldName_SourceFileInfo_LineNumber = "LineNumber"
|
| - structFieldName_SourceFileInfo_ColumnNumber = "ColumnNumber"
|
| -)
|
|
|
| -func mojom_types_SourceFileInfo__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_SourceFileInfo,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_SourceFileInfo_FileName,
|
| - },
|
| - Type: &TypeStringType{StringType{false}},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_SourceFileInfo_LineNumber,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_UinT32},
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_SourceFileInfo_ColumnNumber,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_UinT32},
|
| - },},
|
| - }
|
| -}
|
|
|
| type ContainedDeclarations struct {
|
| Enums *[]string
|
| @@ -3520,36 +2414,7 @@ func (s *ContainedDeclarations) Decode(decoder *bindings.Decoder) error {
|
| return nil
|
| }
|
|
|
| -// String names and labels used by the MojomStruct types.
|
| -var (
|
| - structName_ContainedDeclarations = "ContainedDeclarations"
|
| - structFieldName_ContainedDeclarations_Enums = "Enums"
|
| - structFieldName_ContainedDeclarations_Constants = "Constants"
|
| -)
|
|
|
| -func mojom_types_ContainedDeclarations__() MojomStruct {
|
| - return MojomStruct{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structName_ContainedDeclarations,
|
| - },Fields: []StructField{StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_ContainedDeclarations_Enums,
|
| - },
|
| - Type: &TypeArrayType{
|
| - Value: ArrayType{Nullable: true,ElementType: &TypeStringType{StringType{false}},
|
| - },
|
| - },
|
| - },StructField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &structFieldName_ContainedDeclarations_Constants,
|
| - },
|
| - Type: &TypeArrayType{
|
| - Value: ArrayType{Nullable: true,ElementType: &TypeStringType{StringType{false}},
|
| - },
|
| - },
|
| - },},
|
| - }
|
| -}
|
|
|
| type Type interface {
|
| Tag() uint32
|
| @@ -3832,78 +2697,7 @@ func (u *TypeTypeReference) decodeInternal(decoder *bindings.Decoder) error {
|
| }
|
|
|
|
|
| -// String names and labels used by the MojomUnion types.
|
| -var (
|
| - unionName_Type = "Type"
|
| - unionFieldName_Type_SimpleType = "SimpleType"
|
| - unionFieldName_Type_StringType = "StringType"
|
| - unionFieldName_Type_ArrayType = "ArrayType"
|
| - unionFieldName_Type_MapType = "MapType"
|
| - unionFieldName_Type_HandleType = "HandleType"
|
| - unionFieldName_Type_TypeReference = "TypeReference"
|
| -)
|
|
|
| -func mojom_types_Type__() MojomUnion {
|
| - return MojomUnion{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionName_Type,
|
| - },Fields: []UnionField{UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_Type_SimpleType,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_SimpleType__,
|
| - TypeKey: &ID_mojom_types_SimpleType__,},
|
| -},
|
| - Tag: 0,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_Type_StringType,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_StringType__,
|
| - TypeKey: &ID_mojom_types_StringType__,},
|
| -},
|
| - Tag: 1,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_Type_ArrayType,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_ArrayType__,
|
| - TypeKey: &ID_mojom_types_ArrayType__,},
|
| -},
|
| - Tag: 2,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_Type_MapType,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_MapType__,
|
| - TypeKey: &ID_mojom_types_MapType__,},
|
| -},
|
| - Tag: 3,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_Type_HandleType,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_HandleType__,
|
| - TypeKey: &ID_mojom_types_HandleType__,},
|
| -},
|
| - Tag: 4,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_Type_TypeReference,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_TypeReference__,
|
| - TypeKey: &ID_mojom_types_TypeReference__,},
|
| -},
|
| - Tag: 5,
|
| - },},
|
| - }
|
| -}
|
|
|
| type UserDefinedType interface {
|
| Tag() uint32
|
| @@ -4111,58 +2905,7 @@ func (u *UserDefinedTypeInterfaceType) decodeInternal(decoder *bindings.Decoder)
|
| }
|
|
|
|
|
| -// String names and labels used by the MojomUnion types.
|
| -var (
|
| - unionName_UserDefinedType = "UserDefinedType"
|
| - unionFieldName_UserDefinedType_EnumType = "EnumType"
|
| - unionFieldName_UserDefinedType_StructType = "StructType"
|
| - unionFieldName_UserDefinedType_UnionType = "UnionType"
|
| - unionFieldName_UserDefinedType_InterfaceType = "InterfaceType"
|
| -)
|
|
|
| -func mojom_types_UserDefinedType__() MojomUnion {
|
| - return MojomUnion{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionName_UserDefinedType,
|
| - },Fields: []UnionField{UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_UserDefinedType_EnumType,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_MojomEnum__,
|
| - TypeKey: &ID_mojom_types_MojomEnum__,},
|
| -},
|
| - Tag: 0,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_UserDefinedType_StructType,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_MojomStruct__,
|
| - TypeKey: &ID_mojom_types_MojomStruct__,},
|
| -},
|
| - Tag: 1,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_UserDefinedType_UnionType,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_MojomUnion__,
|
| - TypeKey: &ID_mojom_types_MojomUnion__,},
|
| -},
|
| - Tag: 2,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_UserDefinedType_InterfaceType,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_MojomInterface__,
|
| - TypeKey: &ID_mojom_types_MojomInterface__,},
|
| -},
|
| - Tag: 3,
|
| - },},
|
| - }
|
| -}
|
|
|
| type DefaultFieldValue interface {
|
| Tag() uint32
|
| @@ -4302,38 +3045,7 @@ func (u *DefaultFieldValueDefaultKeyword) decodeInternal(decoder *bindings.Decod
|
| }
|
|
|
|
|
| -// String names and labels used by the MojomUnion types.
|
| -var (
|
| - unionName_DefaultFieldValue = "DefaultFieldValue"
|
| - unionFieldName_DefaultFieldValue_Value = "Value"
|
| - unionFieldName_DefaultFieldValue_DefaultKeyword = "DefaultKeyword"
|
| -)
|
|
|
| -func mojom_types_DefaultFieldValue__() MojomUnion {
|
| - return MojomUnion{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionName_DefaultFieldValue,
|
| - },Fields: []UnionField{UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_DefaultFieldValue_Value,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_Value__,
|
| - TypeKey: &ID_mojom_types_Value__,},
|
| -},
|
| - Tag: 0,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_DefaultFieldValue_DefaultKeyword,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_DefaultKeyword__,
|
| - TypeKey: &ID_mojom_types_DefaultKeyword__,},
|
| -},
|
| - Tag: 1,
|
| - },},
|
| - }
|
| -}
|
|
|
| type Value interface {
|
| Tag() uint32
|
| @@ -4506,48 +3218,7 @@ func (u *ValueBuiltinValue) decodeInternal(decoder *bindings.Decoder) error {
|
| }
|
|
|
|
|
| -// String names and labels used by the MojomUnion types.
|
| -var (
|
| - unionName_Value = "Value"
|
| - unionFieldName_Value_LiteralValue = "LiteralValue"
|
| - unionFieldName_Value_UserValueReference = "UserValueReference"
|
| - unionFieldName_Value_BuiltinValue = "BuiltinValue"
|
| -)
|
|
|
| -func mojom_types_Value__() MojomUnion {
|
| - return MojomUnion{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionName_Value,
|
| - },Fields: []UnionField{UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_Value_LiteralValue,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_LiteralValue__,
|
| - TypeKey: &ID_mojom_types_LiteralValue__,},
|
| -},
|
| - Tag: 0,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_Value_UserValueReference,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_UserValueReference__,
|
| - TypeKey: &ID_mojom_types_UserValueReference__,},
|
| -},
|
| - Tag: 1,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_Value_BuiltinValue,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_BuiltinConstantValue__,
|
| - TypeKey: &ID_mojom_types_BuiltinConstantValue__,},
|
| -},
|
| - Tag: 2,
|
| - },},
|
| - }
|
| -}
|
|
|
| type LiteralValue interface {
|
| Tag() uint32
|
| @@ -4994,102 +3665,7 @@ func (u *LiteralValueUint64Value) decodeInternal(decoder *bindings.Decoder) erro
|
| }
|
|
|
|
|
| -// String names and labels used by the MojomUnion types.
|
| -var (
|
| - unionName_LiteralValue = "LiteralValue"
|
| - unionFieldName_LiteralValue_BoolValue = "BoolValue"
|
| - unionFieldName_LiteralValue_DoubleValue = "DoubleValue"
|
| - unionFieldName_LiteralValue_FloatValue = "FloatValue"
|
| - unionFieldName_LiteralValue_Int8Value = "Int8Value"
|
| - unionFieldName_LiteralValue_Int16Value = "Int16Value"
|
| - unionFieldName_LiteralValue_Int32Value = "Int32Value"
|
| - unionFieldName_LiteralValue_Int64Value = "Int64Value"
|
| - unionFieldName_LiteralValue_StringValue = "StringValue"
|
| - unionFieldName_LiteralValue_Uint8Value = "Uint8Value"
|
| - unionFieldName_LiteralValue_Uint16Value = "Uint16Value"
|
| - unionFieldName_LiteralValue_Uint32Value = "Uint32Value"
|
| - unionFieldName_LiteralValue_Uint64Value = "Uint64Value"
|
| -)
|
|
|
| -func mojom_types_LiteralValue__() MojomUnion {
|
| - return MojomUnion{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionName_LiteralValue,
|
| - },Fields: []UnionField{UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_LiteralValue_BoolValue,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_Bool},
|
| - Tag: 0,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_LiteralValue_DoubleValue,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_Double},
|
| - Tag: 1,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_LiteralValue_FloatValue,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_Float},
|
| - Tag: 2,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_LiteralValue_Int8Value,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_InT8},
|
| - Tag: 3,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_LiteralValue_Int16Value,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_InT16},
|
| - Tag: 4,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_LiteralValue_Int32Value,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_InT32},
|
| - Tag: 5,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_LiteralValue_Int64Value,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_InT64},
|
| - Tag: 6,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_LiteralValue_StringValue,
|
| - },
|
| - Type: &TypeStringType{StringType{false}},
|
| - Tag: 7,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_LiteralValue_Uint8Value,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_UinT8},
|
| - Tag: 8,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_LiteralValue_Uint16Value,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_UinT16},
|
| - Tag: 9,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_LiteralValue_Uint32Value,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_UinT32},
|
| - Tag: 10,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_LiteralValue_Uint64Value,
|
| - },
|
| - Type: &TypeSimpleType{SimpleType_UinT64},
|
| - Tag: 11,
|
| - },},
|
| - }
|
| -}
|
|
|
| type UserDefinedValue interface {
|
| Tag() uint32
|
| @@ -5213,36 +3789,5 @@ func (u *UserDefinedValueDeclaredConstant) decodeInternal(decoder *bindings.Deco
|
| }
|
|
|
|
|
| -// String names and labels used by the MojomUnion types.
|
| -var (
|
| - unionName_UserDefinedValue = "UserDefinedValue"
|
| - unionFieldName_UserDefinedValue_EnumValue = "EnumValue"
|
| - unionFieldName_UserDefinedValue_DeclaredConstant = "DeclaredConstant"
|
| -)
|
|
|
| -func mojom_types_UserDefinedValue__() MojomUnion {
|
| - return MojomUnion{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionName_UserDefinedValue,
|
| - },Fields: []UnionField{UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_UserDefinedValue_EnumValue,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_EnumValue__,
|
| - TypeKey: &ID_mojom_types_EnumValue__,},
|
| -},
|
| - Tag: 0,
|
| - },UnionField{
|
| - DeclData: &DeclarationData{
|
| - ShortName: &unionFieldName_UserDefinedValue_DeclaredConstant,
|
| - },
|
| - Type: &TypeTypeReference{
|
| - Value: TypeReference {Identifier: &ID_mojom_types_DeclaredConstant__,
|
| - TypeKey: &ID_mojom_types_DeclaredConstant__,},
|
| -},
|
| - Tag: 1,
|
| - },},
|
| - }
|
| -}
|
|
|
|
|