Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: site/try/src/interaction_manager.dart

Issue 1311783012: Split parser/listener.dart, parser/class_element_listener.dart and tokens/token.dart into smaller l… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/string_scanner.dart' show 24 import 'package:compiler/src/scanner/string_scanner.dart' show
25 StringScanner; 25 StringScanner;
26 26
27 import 'package:compiler/src/tokens/token.dart' show 27 import 'package:compiler/src/tokens/token.dart' show
28 BeginGroupToken, 28 BeginGroupToken,
29 EOF_TOKEN,
30 ErrorToken, 29 ErrorToken,
31 STRING_INTERPOLATION_IDENTIFIER_TOKEN,
32 STRING_INTERPOLATION_TOKEN,
33 STRING_TOKEN,
34 Token, 30 Token,
35 UnmatchedToken, 31 UnmatchedToken,
36 UnterminatedToken; 32 UnterminatedToken;
37 33
34 import 'package:compiler/src/tokens/token_constants.dart' show
35 EOF_TOKEN,
36 STRING_INTERPOLATION_IDENTIFIER_TOKEN,
37 STRING_INTERPOLATION_TOKEN,
38 STRING_TOKEN;
39
38 import 'package:compiler/src/io/source_file.dart' show 40 import 'package:compiler/src/io/source_file.dart' show
39 StringSourceFile; 41 StringSourceFile;
40 42
41 import 'package:compiler/src/string_validator.dart' show 43 import 'package:compiler/src/string_validator.dart' show
42 StringValidator; 44 StringValidator;
43 45
44 import 'package:compiler/src/tree/tree.dart' show 46 import 'package:compiler/src/tree/tree.dart' show
45 StringQuoting; 47 StringQuoting;
46 48
47 import 'compilation.dart' show 49 import 'compilation.dart' show
(...skipping 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 token = token.next; 1347 token = token.next;
1346 kind = token.kind; 1348 kind = token.kind;
1347 } 1349 }
1348 return token; 1350 return token;
1349 } 1351 }
1350 1352
1351 String extractQuote(String string) { 1353 String extractQuote(String string) {
1352 StringQuoting q = StringValidator.quotingFromString(string); 1354 StringQuoting q = StringValidator.quotingFromString(string);
1353 return (q.raw ? 'r' : '') + (q.quoteChar * q.leftQuoteLength); 1355 return (q.raw ? 'r' : '') + (q.quoteChar * q.leftQuoteLength);
1354 } 1356 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698