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

Side by Side Diff: tests/compiler/dart2js/message_kind_helper.dart

Issue 1284673003: Move dart2jslib parts into separate libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix try. Created 5 years, 4 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 dart2js.test.message_kind_helper; 5 library dart2js.test.message_kind_helper;
6 6
7 import 'package:expect/expect.dart'; 7 import 'package:expect/expect.dart';
8 import 'dart:async'; 8 import 'dart:async';
9 9
10 import 'package:compiler/src/dart2jslib.dart' show 10 import 'package:compiler/src/dart2jslib.dart' show
11 Compiler, 11 Compiler;
12 import 'package:compiler/src/messages.dart' show
12 MessageKind, 13 MessageKind,
13 MessageTemplate; 14 MessageTemplate;
14 import 'package:compiler/src/dart_backend/dart_backend.dart' show 15 import 'package:compiler/src/dart_backend/dart_backend.dart' show
15 DartBackend; 16 DartBackend;
16 import 'package:compiler/src/old_to_new_api.dart' show 17 import 'package:compiler/src/old_to_new_api.dart' show
17 LegacyCompilerDiagnostics; 18 LegacyCompilerDiagnostics;
18 19
19 import 'memory_compiler.dart'; 20 import 'memory_compiler.dart';
20 21
21 const String ESCAPE_REGEXP = r'[[\]{}()*+?.\\^$|]'; 22 const String ESCAPE_REGEXP = r'[[\]{}()*+?.\\^$|]';
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 kindsWithPendingClasses.contains(template)); 142 kindsWithPendingClasses.contains(template));
142 143
143 if (!pendingStuff) { 144 if (!pendingStuff) {
144 // If there is pending stuff, or the compiler was cancelled, we 145 // If there is pending stuff, or the compiler was cancelled, we
145 // shouldn't reuse the compiler. 146 // shouldn't reuse the compiler.
146 cachedCompiler = compiler; 147 cachedCompiler = compiler;
147 } 148 }
148 }); 149 });
149 }).then((_) => cachedCompiler); 150 }).then((_) => cachedCompiler);
150 } 151 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/memory_compiler.dart ('k') | tests/compiler/dart2js/mirrors_exports_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698