Index: Source/core/inspector/CodeGeneratorInstrumentation.py |
diff --git a/Source/core/inspector/CodeGeneratorInstrumentation.py b/Source/core/inspector/CodeGeneratorInstrumentation.py |
index 54e5ce8a4359084ecf615103864ac672b957d494..76bada0666730cc03b72abccee0b24d47812e6a0 100755 |
--- a/Source/core/inspector/CodeGeneratorInstrumentation.py |
+++ b/Source/core/inspector/CodeGeneratorInstrumentation.py |
@@ -336,12 +336,14 @@ class Method: |
elif self.returns_value: |
body_lines.append("\n return %s;" % self.default_return_value) |
- cpp_lines.append(template_outofline.substitute( |
+ generated = template_outofline.substitute( |
vsevik
2014/10/14 14:34:08
Please give it a bit more descriptive name
kozyatinskiy1
2014/10/14 17:17:01
Done.
|
None, |
return_type=self.return_type, |
name=self.name, |
params_impl=", ".join(map(Parameter.to_str_class_and_name, self.params_impl)), |
- impl_lines="".join(body_lines))) |
+ impl_lines="".join(body_lines)) |
+ if generated not in cpp_lines: |
+ cpp_lines.append(generated) |
def generate_agent_call(self, agent): |
agent_class, agent_getter = agent_getter_signature(agent) |