Chromium Code Reviews| Index: mojo/public/tools/bindings/pylib/mojom/generate/module.py |
| diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/module.py b/mojo/public/tools/bindings/pylib/mojom/generate/module.py |
| index cf5777932c5a272d564d92161b9b09f6dd52bc0b..06809ebef45fe80ca0b063602477d47fa9315eb2 100644 |
| --- a/mojo/public/tools/bindings/pylib/mojom/generate/module.py |
| +++ b/mojo/public/tools/bindings/pylib/mojom/generate/module.py |
| @@ -334,6 +334,10 @@ def IsBoolKind(kind): |
| return kind.spec == BOOL.spec |
| +def IsFloatKind(kind): |
| + return kind is not None and kind.spec == FLOAT.spec |
|
yzshen1
2014/09/24 22:49:25
nit: All surrounding functions don't test kind is
hansmuller
2014/09/24 23:33:11
I've moved to the "is not None" test to the call s
|
| + |
| + |
| def IsStringKind(kind): |
| return kind.spec == STRING.spec or kind.spec == NULLABLE_STRING.spec |