Commit 310f96a1 authored by bashi's avatar bashi Committed by Commit bot

bindings: Drop |idl_name| from IdlDefinitions

|idl_name| comes from filename but it's a bad idea to control code
generation by using filename. Fortunately we no longer use it, so let's
remove it.

BUG=658098

Review-Url: https://codereview.chromium.org/2446923002
Cr-Commit-Position: refs/heads/master@{#427281}
parent 7fffd899
......@@ -111,7 +111,7 @@ class IdlReader(object):
if not ast:
raise Exception('Failed to parse %s' % idl_filename)
idl_file_basename, _ = os.path.splitext(os.path.basename(idl_filename))
definitions = IdlDefinitions(idl_file_basename, ast)
definitions = IdlDefinitions(ast)
validate_blink_idl_definitions(
idl_filename, idl_file_basename, definitions)
......
......@@ -446,7 +446,7 @@ def methods_context(interface):
compute_method_overloads_context(interface, methods)
def generated_method(return_type, name, arguments=None, extended_attributes=None, implemented_as=None):
operation = IdlOperation(interface.idl_name)
operation = IdlOperation()
operation.idl_type = return_type
operation.name = name
if arguments:
......@@ -459,7 +459,7 @@ def methods_context(interface):
return v8_methods.method_context(interface, operation)
def generated_argument(idl_type, name, is_optional=False, extended_attributes=None):
argument = IdlArgument(interface.idl_name)
argument = IdlArgument()
argument.idl_type = idl_type
argument.name = name
argument.is_optional = is_optional
......
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