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

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

Issue 1286143003: Move diagnostic_listener.dart and messages.dart to the diagnostics folder (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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/diagnostics/messages.dart' show
12 Message;
11 import 'package:compiler/src/filenames.dart'; 13 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 | « pkg/dart2js_incremental/lib/library_updater.dart ('k') | tests/compiler/dart2js/analyze_only_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698