| OLD | NEW |
| 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 tree; |
| 6 |
| 5 /** | 7 /** |
| 6 * The [DartString] type represents a Dart string value as a sequence of Unicode | 8 * The [DartString] type represents a Dart string value as a sequence of Unicode |
| 7 * Scalar Values. | 9 * Scalar Values. |
| 8 * After parsing, any valid [LiteralString] will contain a [DartString] | 10 * After parsing, any valid [LiteralString] will contain a [DartString] |
| 9 * representing its content after removing quotes and resolving escapes in | 11 * representing its content after removing quotes and resolving escapes in |
| 10 * its source. | 12 * its source. |
| 11 */ | 13 */ |
| 12 abstract class DartString implements Iterable<int> { | 14 abstract class DartString implements Iterable<int> { |
| 13 factory DartString.empty() => const LiteralDartString(""); | 15 factory DartString.empty() => const LiteralDartString(""); |
| 14 // This is a convenience constructor. If you need a const literal DartString, | 16 // This is a convenience constructor. If you need a const literal DartString, |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 for (int i = 0; i < 3; i++) { | 202 for (int i = 0; i < 3; i++) { |
| 201 code = source.next(); | 203 code = source.next(); |
| 202 value = value * 16 + hexDigitValue(code); | 204 value = value * 16 + hexDigitValue(code); |
| 203 } | 205 } |
| 204 return value; | 206 return value; |
| 205 } | 207 } |
| 206 return code; | 208 return code; |
| 207 } | 209 } |
| 208 } | 210 } |
| 209 | 211 |
| OLD | NEW |