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

Unified Diff: mojo/public/tools/bindings/pylib/mojom/generate/data.py

Issue 1637903002: [mojo-bindings] Attribute "native" -> "Native" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « mojo/public/interfaces/bindings/tests/test_native_types.mojom ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/pylib/mojom/generate/data.py
diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/data.py b/mojo/public/tools/bindings/pylib/mojom/generate/data.py
index 60ae1e0d4c55e3df67b6db1c6cfc508696505527..e8c71f33d938ae2201981ec35934eaaefda058ae 100644
--- a/mojo/public/tools/bindings/pylib/mojom/generate/data.py
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/data.py
@@ -225,12 +225,12 @@ def StructFromData(module, data):
struct.fields_data = data['fields']
struct.attributes = data.get('attributes')
- # Enforce that a [native=True] attribute is set to make native-only struct
+ # Enforce that a [Native=True] attribute is set to make native-only struct
# declarations more explicit.
if struct.native_only:
- if not struct.attributes or not struct.attributes.get('native', False):
+ if not struct.attributes or not struct.attributes.get('Native', False):
raise Exception("Native-only struct declarations must include a " +
- "native=True attribute.")
+ "Native=True attribute.")
return struct
« no previous file with comments | « mojo/public/interfaces/bindings/tests/test_native_types.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698