| Index: mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/test_included_unions.mojom.dart
|
| diff --git a/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/test_included_unions.mojom.dart b/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/test_included_unions.mojom.dart
|
| index 71cb13463c40ae24bf4b061967904e8839c68fcc..df5f8322c482e973db18ea4a33dd147cea7aedf1 100644
|
| --- a/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/test_included_unions.mojom.dart
|
| +++ b/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/test_included_unions.mojom.dart
|
| @@ -5,9 +5,12 @@
|
| library test_included_unions_mojom;
|
|
|
| import 'dart:async';
|
| +import 'dart:collection';
|
|
|
| import 'package:mojo/bindings.dart' as bindings;
|
| import 'package:mojo/core.dart' as core;
|
| +import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
|
| +
|
|
|
|
|
|
|
| @@ -91,3 +94,39 @@ class IncludedUnion extends bindings.Union {
|
| }
|
| }
|
|
|
| +mojom_types.MojomUnion _test_included_unions_IncludedUnion__() {
|
| + return new mojom_types.MojomUnion()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'IncludedUnion'
|
| + ..fullIdentifier = 'mojo.test.IncludedUnion')
|
| + ..fields = <mojom_types.UnionField>[
|
| + new mojom_types.UnionField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int8)
|
| + ..tag = 0,
|
| + ];
|
| +}
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new HashMap<String, mojom_types.UserDefinedType>();
|
| +map["_test_included_unions_IncludedUnion__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..unionType = _test_included_unions_IncludedUnion__();
|
| +
|
| + return map;
|
| +}
|
| +
|
| +var _MojomDesc;
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + if (_MojomDesc == null) {
|
| + _MojomDesc = _initDescriptions();
|
| + }
|
| + return _MojomDesc;
|
| +}
|
| +
|
|
|