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

Unified Diff: pkg/compiler/lib/compiler.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
« no previous file with comments | « no previous file | pkg/compiler/lib/compiler_new.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/compiler.dart
diff --git a/pkg/compiler/lib/compiler.dart b/pkg/compiler/lib/compiler.dart
index b4c22eb4846c8919813197311c6725f405b45f65..11e99b36e89e69f1dcb195697baea4dad8ff8d84 100644
--- a/pkg/compiler/lib/compiler.dart
+++ b/pkg/compiler/lib/compiler.dart
@@ -52,8 +52,7 @@ typedef Future<String> ReadStringFromUri(Uri uri);
* As more features are added to the compiler, new names and
* extensions may be introduced.
*/
-typedef EventSink<String> CompilerOutputProvider(String name,
- String extension);
+typedef EventSink<String> CompilerOutputProvider(String name, String extension);
/**
* Invoked by the compiler to report diagnostics. If [uri] is
@@ -65,8 +64,8 @@ typedef EventSink<String> CompilerOutputProvider(String name,
* diagnostic message, and [kind] indicates indicates what kind of
* diagnostic it is.
*/
-typedef void DiagnosticHandler(Uri uri, int begin, int end,
- String message, Diagnostic kind);
+typedef void DiagnosticHandler(
+ Uri uri, int begin, int end, String message, Diagnostic kind);
/**
* Provides a package lookup mechanism in the case that no package root or
@@ -104,18 +103,13 @@ class CompilationResult {
* as the compiler may create multiple files to support lazy loading
* of libraries.
*/
-Future<CompilationResult> compile(
- Uri script,
- Uri libraryRoot,
- Uri packageRoot,
- CompilerInputProvider inputProvider,
- DiagnosticHandler handler,
+Future<CompilationResult> compile(Uri script, Uri libraryRoot, Uri packageRoot,
+ CompilerInputProvider inputProvider, DiagnosticHandler handler,
[List<String> options = const [],
- CompilerOutputProvider outputProvider,
- Map<String, dynamic> environment = const {},
- Uri packageConfig,
- PackagesDiscoveryProvider packagesDiscoveryProvider]) {
-
+ CompilerOutputProvider outputProvider,
+ Map<String, dynamic> environment = const {},
+ Uri packageConfig,
+ PackagesDiscoveryProvider packagesDiscoveryProvider]) {
CompilerOptions compilerOptions = new CompilerOptions.parse(
entryPoint: script,
libraryRoot: libraryRoot,
@@ -131,8 +125,9 @@ Future<CompilationResult> compile(
new_api.CompilerOutput compilerOutput =
new LegacyCompilerOutput(outputProvider);
- return new_api.compile(compilerOptions, compilerInput,
- compilerDiagnostics, compilerOutput)
+ return new_api
+ .compile(
+ compilerOptions, compilerInput, compilerDiagnostics, compilerOutput)
.then((new_api.CompilationResult result) {
return new CompilationResult(result.compiler, isSuccess: result.isSuccess);
});
« no previous file with comments | « no previous file | pkg/compiler/lib/compiler_new.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698