| 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 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 |
| 6 import '../util/characters.dart'; | 7 import '../util/characters.dart'; |
| 7 | 8 |
| 8 /** | 9 /** |
| 9 * The [DartString] type represents a Dart string value as a sequence of Unicode | 10 * The [DartString] type represents a Dart string value as a sequence of Unicode |
| 10 * Scalar Values. | 11 * Scalar Values. |
| 11 * After parsing, any valid [LiteralString] will contain a [DartString] | 12 * After parsing, any valid [LiteralString] will contain a [DartString] |
| 12 * representing its content after removing quotes and resolving escapes in | 13 * representing its content after removing quotes and resolving escapes in |
| 13 * its source. | 14 * its source. |
| 14 */ | 15 */ |
| 15 abstract class DartString extends IterableBase<int> { | 16 abstract class DartString extends IterableBase<int> { |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 value = value * 16 + hexDigitValue(source.current); | 257 value = value * 16 + hexDigitValue(source.current); |
| 257 } | 258 } |
| 258 _current = value; | 259 _current = value; |
| 259 break; | 260 break; |
| 260 default: | 261 default: |
| 261 _current = code; | 262 _current = code; |
| 262 } | 263 } |
| 263 return true; | 264 return true; |
| 264 } | 265 } |
| 265 } | 266 } |
| OLD | NEW |