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

Side by Side Diff: utils/template/parser.dart

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« no previous file with comments | « utils/template/htmltree.dart ('k') | utils/template/source.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 3
4 class TagStack { 4 class TagStack {
5 List<ASTNode> _stack; 5 List<ASTNode> _stack;
6 6
7 TagStack(var elem) : _stack = [] { 7 TagStack(var elem) : _stack = [] {
8 _stack.add(elem); 8 _stack.add(elem);
9 } 9 }
10 10
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // html foo() { 282 // html foo() {
283 // <div>..</div> 283 // <div>..</div>
284 // } 284 // }
285 // 285 //
286 // C.) 286 // C.)
287 // get { 287 // get {
288 // <div>...</div> 288 // <div>...</div>
289 // } 289 // }
290 // 290 //
291 // D.) 291 // D.)
292 // get foo() { 292 // get foo {
293 // <div>..</div> 293 // <div>..</div>
294 // } 294 // }
295 // 295 //
296 // Only one default allower either A or C the constructor will 296 // Only one default allower either A or C the constructor will
297 // generate a string or a node. 297 // generate a string or a node.
298 // Examples B and D would generate getters that either return 298 // Examples B and D would generate getters that either return
299 // a node for B or a String for D. 299 // a node for B or a String for D.
300 // 300 //
301 List<TemplateGetter> processGetters() { 301 List<TemplateGetter> processGetters() {
302 List<TemplateGetter> getters = []; 302 List<TemplateGetter> getters = [];
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 } 711 }
712 712
713 if (stringValue.length > 0) { 713 if (stringValue.length > 0) {
714 nodes.add(new TemplateText(stringValue.toString(), _makeSpan(start))); 714 nodes.add(new TemplateText(stringValue.toString(), _makeSpan(start)));
715 } 715 }
716 716
717 return nodes; 717 return nodes;
718 } 718 }
719 719
720 } 720 }
OLDNEW
« no previous file with comments | « utils/template/htmltree.dart ('k') | utils/template/source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698