Commit 639bc351 authored by rockot's avatar rockot Committed by Commit bot

[mojo-bindings] Attribute "native" -> "Native"

We conventionally use CamelCase attribute names.

BUG=581169
R=yzshen@chromium.org

Review URL: https://codereview.chromium.org/1637903002

Cr-Commit-Position: refs/heads/master@{#371528}
parent 6738d64a
......@@ -8,7 +8,7 @@ import "mojo/public/interfaces/bindings/tests/rect.mojom";
// Used to verify that structs can be declared with no body in mojom.
[native=True]
[Native=True]
struct PickledStruct;
interface PicklePasser {
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment