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

Side by Side Diff: packages/template_binding/lib/src/mustache_tokens.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library template_binding.src.mustache_tokens; 5 library template_binding.src.mustache_tokens;
6 6
7 import 'package:observe/observe.dart'; 7 import 'package:observe/observe.dart';
8 8
9 // Dart note: this was added to decouple the parse function below from the rest 9 // Dart note: this was added to decouple the parse function below from the rest
10 // of template_binding. This allows using this code in command-line tools as 10 // of template_binding. This allows using this code in command-line tools as
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 var newValue = new StringBuffer(getText(0)); 144 var newValue = new StringBuffer(getText(0));
145 int len = this.length; 145 int len = this.length;
146 for (var i = 0; i < len; i++) { 146 for (var i = 0; i < len; i++) {
147 var value = values[i]; 147 var value = values[i];
148 if (value != null) newValue.write(value); 148 if (value != null) newValue.write(value);
149 newValue.write(getText(i + 1)); 149 newValue.write(getText(i + 1));
150 } 150 }
151 return newValue.toString(); 151 return newValue.toString();
152 } 152 }
153 } 153 }
OLDNEW
« no previous file with comments | « packages/template_binding/lib/src/instance_binding_map.dart ('k') | packages/template_binding/lib/src/node.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698