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

Unified Diff: pkg/compiler/lib/src/mirrors/analyze.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/mirrors/analyze.dart
diff --git a/pkg/compiler/lib/src/mirrors/analyze.dart b/pkg/compiler/lib/src/mirrors/analyze.dart
index 4f7f09f7760acc01b9514357834649066c24cef3..d6ab956650248326af73c7b3be003cb8d9eaca06 100644
--- a/pkg/compiler/lib/src/mirrors/analyze.dart
+++ b/pkg/compiler/lib/src/mirrors/analyze.dart
@@ -23,14 +23,15 @@ import '../old_to_new_api.dart';
* static inspection of the source code.
*/
// TODO(johnniwinther): Move this to [compiler/compiler.dart].
-Future<MirrorSystem> analyze(List<Uri> libraries,
- Uri libraryRoot,
- Uri packageRoot,
- api.CompilerInputProvider inputProvider,
- api.DiagnosticHandler diagnosticHandler,
- [List<String> options = const <String>[],
- Uri packageConfig,
- api.PackagesDiscoveryProvider findPackages]) {
+Future<MirrorSystem> analyze(
+ List<Uri> libraries,
+ Uri libraryRoot,
+ Uri packageRoot,
+ api.CompilerInputProvider inputProvider,
+ api.DiagnosticHandler diagnosticHandler,
+ [List<String> options = const <String>[],
+ Uri packageConfig,
+ api.PackagesDiscoveryProvider findPackages]) {
if (!libraryRoot.path.endsWith("/")) {
throw new ArgumentError("libraryRoot must end with a /");
}
@@ -46,10 +47,9 @@ Future<MirrorSystem> analyze(List<Uri> libraries,
options.add('--allow-native-extensions');
bool compilationFailed = false;
- void internalDiagnosticHandler(Uri uri, int begin, int end,
- String message, api.Diagnostic kind) {
- if (kind == api.Diagnostic.ERROR ||
- kind == api.Diagnostic.CRASH) {
+ void internalDiagnosticHandler(
+ Uri uri, int begin, int end, String message, api.Diagnostic kind) {
+ if (kind == api.Diagnostic.ERROR || kind == api.Diagnostic.CRASH) {
compilationFailed = true;
}
diagnosticHandler(uri, begin, end, message, kind);
« no previous file with comments | « pkg/compiler/lib/src/mirror_renamer/renamer.dart ('k') | pkg/compiler/lib/src/mirrors/dart2js_instance_mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698