OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 fletchc.test.source_update; | 5 library dartino_compiler.test.source_update; |
6 | 6 |
7 /// Returns [updates] expanded to full compilation units/source files. | 7 /// Returns [updates] expanded to full compilation units/source files. |
8 /// | 8 /// |
9 /// [updates] is a convenient way to write updates/patches to a single source | 9 /// [updates] is a convenient way to write updates/patches to a single source |
10 /// file without repeating common parts. | 10 /// file without repeating common parts. |
11 /// | 11 /// |
12 /// For example: | 12 /// For example: |
13 /// ["head ", ["v1", "v2"], " tail"] | 13 /// ["head ", ["v1", "v2"], " tail"] |
14 /// expands to: | 14 /// expands to: |
15 /// ["head v1 tail", "head v2 tail"] | 15 /// ["head v1 tail", "head v2 tail"] |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 } | 145 } |
146 } else if (line.startsWith("<<<<")) { | 146 } else if (line.startsWith("<<<<")) { |
147 inDiff = true; | 147 inDiff = true; |
148 result.add(<StringBuffer>[new StringBuffer()]); | 148 result.add(<StringBuffer>[new StringBuffer()]); |
149 } else { | 149 } else { |
150 result.last.write(line); | 150 result.last.write(line); |
151 } | 151 } |
152 } | 152 } |
153 return result; | 153 return result; |
154 } | 154 } |
OLD | NEW |