OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 fasta.quote; | 5 library fasta.quote; |
6 | 6 |
7 import 'errors.dart' show inputError, internalError; | 7 import 'errors.dart' show inputError, internalError; |
8 | 8 |
9 import 'package:front_end/src/fasta/scanner/characters.dart' | 9 import 'scanner/characters.dart' |
10 show | 10 show |
11 $BACKSLASH, | 11 $BACKSLASH, |
12 $BS, | 12 $BS, |
13 $CLOSE_CURLY_BRACKET, | 13 $CLOSE_CURLY_BRACKET, |
14 $CR, | 14 $CR, |
15 $FF, | 15 $FF, |
16 $LF, | 16 $LF, |
17 $OPEN_CURLY_BRACKET, | 17 $OPEN_CURLY_BRACKET, |
18 $SPACE, | 18 $SPACE, |
19 $TAB, | 19 $TAB, |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 } | 230 } |
231 } else { | 231 } else { |
232 // Nothing, escaped character is passed through; | 232 // Nothing, escaped character is passed through; |
233 } | 233 } |
234 if (code > 0x10FFFF) return error(i, invalidCodePoint); | 234 if (code > 0x10FFFF) return error(i, invalidCodePoint); |
235 } | 235 } |
236 result[resultOffset++] = code; | 236 result[resultOffset++] = code; |
237 } | 237 } |
238 return new String.fromCharCodes(result, 0, resultOffset); | 238 return new String.fromCharCodes(result, 0, resultOffset); |
239 } | 239 } |
OLD | NEW |