| Index: tools/dom/scripts/generator.py
|
| diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
|
| index 17db7600a690ba4275f43332749d472bb8dabfa2..b49cf0ac2adc5406a9824142dee0a40529826ed7 100644
|
| --- a/tools/dom/scripts/generator.py
|
| +++ b/tools/dom/scripts/generator.py
|
| @@ -357,6 +357,12 @@ class OperationInfo(object):
|
| right_bracket)
|
| return ', '.join(argtexts)
|
|
|
| + def NumberOfRequiredInDart(self):
|
| + """ Returns a number of required arguments in Dart declaration of
|
| + the operation.
|
| + """
|
| + return len(filter(lambda i: not i.is_optional, self.param_infos))
|
| +
|
| def ParametersAsArgumentList(self, parameter_count=None):
|
| """Returns a string of the parameter names suitable for passing the
|
| parameters as arguments.
|
|
|