Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(917)

Unified Diff: mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart

Issue 1933563002: Mojom frontend: Start populating |resolved_concrete_value| field in mojom_types.mojom (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Grammar fix. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/public/interfaces/bindings/mojom_types.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart
diff --git a/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart b/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart
index 6d7f8152ef1d1692add50a01740ae067caa0ad59..f98a5a6ba6c3ed914ae848b1aea6757ca2c1cea0 100644
--- a/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart
+++ b/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart
@@ -2002,11 +2002,12 @@ class UserValueReference extends bindings.Struct {
class DeclaredConstant extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
- const bindings.StructDataHeader(48, 0)
+ const bindings.StructDataHeader(64, 0)
];
DeclarationData declData = null;
Type type = null;
Value value = null;
+ Value resolvedConcreteValue = null;
DeclaredConstant() : super(kVersions.last.size);
@@ -2064,6 +2065,10 @@ class DeclaredConstant extends bindings.Struct {
'Trying to decode null union for non-nullable Value.');
}
}
+ if (mainDataHeader.version >= 0) {
+
+ result.resolvedConcreteValue = Value.decode(decoder0, 48);
+ }
return result;
}
@@ -2090,13 +2095,21 @@ class DeclaredConstant extends bindings.Struct {
"value of struct DeclaredConstant: $e";
rethrow;
}
+ try {
+ encoder0.encodeUnion(resolvedConcreteValue, 48, true);
+ } on bindings.MojoCodecError catch(e) {
+ e.message = "Error encountered while encoding field "
+ "resolvedConcreteValue of struct DeclaredConstant: $e";
+ rethrow;
+ }
}
String toString() {
return "DeclaredConstant("
"declData: $declData" ", "
"type: $type" ", "
- "value: $value" ")";
+ "value: $value" ", "
+ "resolvedConcreteValue: $resolvedConcreteValue" ")";
}
Map toJson() {
@@ -2104,6 +2117,7 @@ class DeclaredConstant extends bindings.Struct {
map["declData"] = declData;
map["type"] = type;
map["value"] = value;
+ map["resolvedConcreteValue"] = resolvedConcreteValue;
return map;
}
}
« no previous file with comments | « no previous file | mojo/public/interfaces/bindings/mojom_types.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698