Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: sky/engine/bindings/scripts/templates/interface_dart.template

Issue 981733009: Fix all dartanalyzer errors in dart:sky except the Native ones. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 part of sky.core; 6 part of dart.sky;
7 7
8 {% macro args_macro(args) -%} 8 {% macro args_macro(args) -%}
9 {%- for arg in args -%} 9 {%- for arg in args -%}
10 {%- if arg.is_optional and (loop.first or not args[arg.index-1].is_optio nal) -%} 10 {%- if arg.is_optional and (loop.first or not args[arg.index-1].is_optio nal) -%}
11 {{ '{' if arg.is_named else '[' }} 11 {{ '{' if arg.is_named else '[' }}
12 {%- endif -%} 12 {%- endif -%}
13 {{ arg.dart_type }} {{ arg.name }} 13 {{ arg.dart_type }} {{ arg.name }}
14 {%- if arg.is_optional %} {{ ':' if arg.is_named else '='}} {{ arg.dart_ default_value }} 14 {%- if arg.is_optional %} {{ ':' if arg.is_named else '='}} {{ arg.dart_ default_value }}
15 {#- TODO(eseidel): This does not support having both optional and named arguments! -#} 15 {#- TODO(eseidel): This does not support having both optional and named arguments! -#}
16 {%- if loop.last -%}{{ '}' if arg.is_named else ']' }}{%- endif -%} 16 {%- if loop.last -%}{{ '}' if arg.is_named else ']' }}{%- endif -%}
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 {% endfor %} 50 {% endfor %}
51 51
52 // Operators 52 // Operators
53 {% if named_property_getter %} 53 {% if named_property_getter %}
54 String operator[](String name) native "{{interface_name}}___getter___Callbac k"; 54 String operator[](String name) native "{{interface_name}}___getter___Callbac k";
55 {% endif %} 55 {% endif %}
56 {% if named_property_setter %} 56 {% if named_property_setter %}
57 void operator[]=(String name, String value) native "{{interface_name}}___set ter___Callback"; 57 void operator[]=(String name, String value) native "{{interface_name}}___set ter___Callback";
58 {% endif %} 58 {% endif %}
59 } 59 }
OLDNEW
« no previous file with comments | « sky/engine/bindings/scripts/templates/dart_blink.template ('k') | sky/engine/core/animation/Animation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698