OLD | NEW |
1 {%- for method in interface.methods %} | 1 {%- for method in interface.methods %} |
2 var k{{interface.name}}_{{method.name}}_Name = {{method.ordinal}}; | 2 var k{{interface.name}}_{{method.name}}_Name = {{method.ordinal}}; |
3 {%- endfor %} | 3 {%- endfor %} |
4 | 4 |
5 function {{interface.name}}Proxy(receiver) { | 5 function {{interface.name}}Proxy(receiver) { |
6 this.receiver_ = receiver; | 6 this.receiver_ = receiver; |
7 } | 7 } |
8 | 8 |
9 {%- for method in interface.methods %} | 9 {%- for method in interface.methods %} |
10 {{interface.name}}Proxy.prototype.{{method.name|stylize_method}} = function( | 10 {{interface.name}}Proxy.prototype.{{method.name|stylize_method}} = function( |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 return false; | 105 return false; |
106 } | 106 } |
107 }; | 107 }; |
108 | 108 |
109 {#--- Enums #} | 109 {#--- Enums #} |
110 {% from "enum_definition.tmpl" import enum_def -%} | 110 {% from "enum_definition.tmpl" import enum_def -%} |
111 {% for enum in interface.enums %} | 111 {% for enum in interface.enums %} |
112 {{enum_def("%sProxy.%s"|format(interface.name, enum.name), enum, module)}} | 112 {{enum_def("%sProxy.%s"|format(interface.name, enum.name), enum, module)}} |
113 {{interface.name}}Stub.{{enum.name}} = {{interface.name}}Proxy.{{enum.name}}; | 113 {{interface.name}}Stub.{{enum.name}} = {{interface.name}}Proxy.{{enum.name}}; |
114 {%- endfor %} | 114 {%- endfor %} |
OLD | NEW |