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

Side by Side Diff: tools/dom/templates/html/impl/impl_Storage.darttemplate

Issue 12024002: Fixing cleanup of dart:html annotation generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of html; 5 part of html;
6 $ANNOTATIONS 6
7 class $CLASSNAME$EXTENDS implements Map<String, String> $NATIVESPEC { 7 $(ANNOTATIONS)class $CLASSNAME$EXTENDS implements Map<String, String>
8 $NATIVESPEC {
8 9
9 // TODO(nweiz): update this when maps support lazy iteration 10 // TODO(nweiz): update this when maps support lazy iteration
10 bool containsValue(String value) => values.any((e) => e == value); 11 bool containsValue(String value) => values.any((e) => e == value);
11 12
12 bool containsKey(String key) => $dom_getItem(key) != null; 13 bool containsKey(String key) => $dom_getItem(key) != null;
13 14
14 String operator [](String key) => $dom_getItem(key); 15 String operator [](String key) => $dom_getItem(key);
15 16
16 void operator []=(String key, String value) { $dom_setItem(key, value); } 17 void operator []=(String key, String value) { $dom_setItem(key, value); }
17 18
(...skipping 29 matching lines...) Expand all
47 final values = []; 48 final values = [];
48 forEach((k, v) => values.add(v)); 49 forEach((k, v) => values.add(v));
49 return values; 50 return values;
50 } 51 }
51 52
52 int get length => $dom_length; 53 int get length => $dom_length;
53 54
54 bool get isEmpty => $dom_key(0) == null; 55 bool get isEmpty => $dom_key(0) == null;
55 $!MEMBERS 56 $!MEMBERS
56 } 57 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate ('k') | tools/dom/templates/html/impl/impl_Text.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698