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

Side by Side Diff: tests/compiler/dart2js/analyze_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 analyze_helper; 5 library analyze_helper;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'package:compiler/compiler.dart' as api; 9 import 'package:compiler/compiler.dart' as api;
10 import 'package:compiler/src/apiimpl.dart'; 10 import 'package:compiler/src/apiimpl.dart';
11 import 'package:compiler/src/dart2jslib.dart'
12 hide Compiler;
13 import 'package:compiler/src/filenames.dart'; 11 import 'package:compiler/src/filenames.dart';
12 import 'package:compiler/src/messages.dart' show
13 Message;
14 import 'package:compiler/src/source_file_provider.dart'; 14 import 'package:compiler/src/source_file_provider.dart';
15 import 'package:compiler/src/util/uri_extras.dart'; 15 import 'package:compiler/src/util/uri_extras.dart';
16 16
17 /** 17 /**
18 * Map of whitelisted warnings and errors. 18 * Map of whitelisted warnings and errors.
19 * 19 *
20 * Only add a whitelisting together with a bug report to dartbug.com and add 20 * Only add a whitelisting together with a bug report to dartbug.com and add
21 * the bug issue number as a comment on the whitelisting. 21 * the bug issue number as a comment on the whitelisting.
22 * 22 *
23 * Use an identifiable suffix of the file uri as key. Use a fixed substring of 23 * Use an identifiable suffix of the file uri as key. Use a fixed substring of
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 exit(1); 188 exit(1);
189 } 189 }
190 } 190 }
191 if (analyzeAll) { 191 if (analyzeAll) {
192 compiler.librariesToAnalyzeWhenRun = uriList; 192 compiler.librariesToAnalyzeWhenRun = uriList;
193 return compiler.run(null).then(onCompletion); 193 return compiler.run(null).then(onCompletion);
194 } else { 194 } else {
195 return compiler.run(uriList.single).then(onCompletion); 195 return compiler.run(uriList.single).then(onCompletion);
196 } 196 }
197 } 197 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/analyze_dart2js_test.dart ('k') | tests/compiler/dart2js/analyze_unused_dart2js_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698