| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |