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 trydart.interaction_manager; | 5 library trydart.interaction_manager; |
6 | 6 |
7 import 'dart:html'; | 7 import 'dart:html'; |
8 | 8 |
9 import 'dart:convert' show | 9 import 'dart:convert' show |
10 JSON; | 10 JSON; |
11 | 11 |
12 import 'dart:math' show | 12 import 'dart:math' show |
13 max, | 13 max, |
14 min; | 14 min; |
15 | 15 |
16 import 'dart:async' show | 16 import 'dart:async' show |
17 Completer, | 17 Completer, |
18 Future, | 18 Future, |
19 Timer; | 19 Timer; |
20 | 20 |
21 import 'dart:collection' show | 21 import 'dart:collection' show |
22 Queue; | 22 Queue; |
23 | 23 |
24 import 'package:compiler/src/scanner/scannerlib.dart' show | 24 import 'package:compiler/src/scanner/string_scanner.dart' show |
| 25 StringScanner; |
| 26 |
| 27 import 'package:compiler/src/scanner/token.dart' show |
25 BeginGroupToken, | 28 BeginGroupToken, |
26 EOF_TOKEN, | 29 EOF_TOKEN, |
27 ErrorToken, | 30 ErrorToken, |
28 STRING_INTERPOLATION_IDENTIFIER_TOKEN, | 31 STRING_INTERPOLATION_IDENTIFIER_TOKEN, |
29 STRING_INTERPOLATION_TOKEN, | 32 STRING_INTERPOLATION_TOKEN, |
30 STRING_TOKEN, | 33 STRING_TOKEN, |
31 StringScanner, | |
32 Token, | 34 Token, |
33 UnmatchedToken, | 35 UnmatchedToken, |
34 UnterminatedToken; | 36 UnterminatedToken; |
35 | 37 |
36 import 'package:compiler/src/io/source_file.dart' show | 38 import 'package:compiler/src/io/source_file.dart' show |
37 StringSourceFile; | 39 StringSourceFile; |
38 | 40 |
39 import 'package:compiler/src/string_validator.dart' show | 41 import 'package:compiler/src/string_validator.dart' show |
40 StringValidator; | 42 StringValidator; |
41 | 43 |
(...skipping 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 token = token.next; | 1345 token = token.next; |
1344 kind = token.kind; | 1346 kind = token.kind; |
1345 } | 1347 } |
1346 return token; | 1348 return token; |
1347 } | 1349 } |
1348 | 1350 |
1349 String extractQuote(String string) { | 1351 String extractQuote(String string) { |
1350 StringQuoting q = StringValidator.quotingFromString(string); | 1352 StringQuoting q = StringValidator.quotingFromString(string); |
1351 return (q.raw ? 'r' : '') + (q.quoteChar * q.leftQuoteLength); | 1353 return (q.raw ? 'r' : '') + (q.quoteChar * q.leftQuoteLength); |
1352 } | 1354 } |
OLD | NEW |