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 connection.initProxyInstance(this, {{interface.name}}, receiver); |
7 } | 7 } |
8 | 8 |
9 {{interface.name}}Proxy.prototype.getConnection$ = function() { | 9 {{interface.name}}Proxy.prototype.getConnection$ = function() { |
10 return connection.getProxyConnection(this, {{interface.name}}); | 10 return connection.getProxyConnection(this, {{interface.name}}); |
11 } | 11 } |
12 | 12 |
13 {%- for method in interface.methods %} | 13 {%- for method in interface.methods %} |
14 {{interface.name}}Proxy.prototype.{{method.name|stylize_method}} = function( | 14 {{interface.name}}Proxy.prototype.{{method.name|stylize_method}} = function( |
15 {%- for parameter in method.parameters -%} | 15 {%- for parameter in method.parameters -%} |
16 {{parameter.name}}{% if not loop.last %}, {% endif %} | 16 {{parameter.name}}{% if not loop.last %}, {% endif %} |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 {%- from "enum_definition.tmpl" import enum_def -%} | 201 {%- from "enum_definition.tmpl" import enum_def -%} |
202 {%- for enum in interface.enums %} | 202 {%- for enum in interface.enums %} |
203 {{ enum_def("%s.%s"|format(interface.name, enum.name), enum) }} | 203 {{ enum_def("%s.%s"|format(interface.name, enum.name), enum) }} |
204 {%- endfor %} | 204 {%- endfor %} |
205 {{interface.name}}Stub.prototype.validator = validate{{interface.name}}Request
; | 205 {{interface.name}}Stub.prototype.validator = validate{{interface.name}}Request
; |
206 {%- if interface|has_callbacks %} | 206 {%- if interface|has_callbacks %} |
207 {{interface.name}}Proxy.prototype.validator = validate{{interface.name}}Respon
se; | 207 {{interface.name}}Proxy.prototype.validator = validate{{interface.name}}Respon
se; |
208 {%- else %} | 208 {%- else %} |
209 {{interface.name}}Proxy.prototype.validator = null; | 209 {{interface.name}}Proxy.prototype.validator = null; |
210 {%- endif %} | 210 {%- endif %} |
OLD | NEW |