| 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; | 5 import 'dart:collection'; |
| 6 import '../util/characters.dart'; |
| 6 | 7 |
| 7 /** | 8 /** |
| 8 * The [DartString] type represents a Dart string value as a sequence of Unicode | 9 * The [DartString] type represents a Dart string value as a sequence of Unicode |
| 9 * Scalar Values. | 10 * Scalar Values. |
| 10 * After parsing, any valid [LiteralString] will contain a [DartString] | 11 * After parsing, any valid [LiteralString] will contain a [DartString] |
| 11 * representing its content after removing quotes and resolving escapes in | 12 * representing its content after removing quotes and resolving escapes in |
| 12 * its source. | 13 * its source. |
| 13 */ | 14 */ |
| 14 abstract class DartString extends IterableBase<int> { | 15 abstract class DartString extends IterableBase<int> { |
| 15 factory DartString.empty() => const LiteralDartString(""); | 16 factory DartString.empty() => const LiteralDartString(""); |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 value = value * 16 + hexDigitValue(source.current); | 242 value = value * 16 + hexDigitValue(source.current); |
| 242 } | 243 } |
| 243 _current = value; | 244 _current = value; |
| 244 break; | 245 break; |
| 245 default: | 246 default: |
| 246 _current = code; | 247 _current = code; |
| 247 } | 248 } |
| 248 return true; | 249 return true; |
| 249 } | 250 } |
| 250 } | 251 } |
| 251 | |
| OLD | NEW |