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

Unified Diff: pkg/analyzer/lib/src/task/dart.dart

Issue 975453004: Reformat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | « pkg/analyzer/lib/src/string_source.dart ('k') | pkg/analyzer/lib/src/task/general.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/task/dart.dart
diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
index fe246e41a06e3b173aa6926c0e83406dd67e1efe..5fd3c1dbf3227d3a828005f644ab53b0c30f6aa1 100644
--- a/pkg/analyzer/lib/src/task/dart.dart
+++ b/pkg/analyzer/lib/src/task/dart.dart
@@ -39,17 +39,15 @@ class BuildCompilationUnitElementTask extends SourceBasedAnalysisTask {
* The task descriptor describing this kind of task.
*/
static final TaskDescriptor DESCRIPTOR = new TaskDescriptor(
- 'BUILD_COMPILATION_UNIT_ELEMENT',
- createTask,
- buildInputs,
+ 'BUILD_COMPILATION_UNIT_ELEMENT', createTask, buildInputs,
<ResultDescriptor>[COMPILATION_UNIT_ELEMENT, BUILT_UNIT]);
/**
* Initialize a newly created task to build a compilation unit element for
* the given [target] in the given [context].
*/
- BuildCompilationUnitElementTask(InternalAnalysisContext context,
- AnalysisTarget target)
+ BuildCompilationUnitElementTask(
+ InternalAnalysisContext context, AnalysisTarget target)
: super(context, target);
@override
@@ -81,8 +79,8 @@ class BuildCompilationUnitElementTask extends SourceBasedAnalysisTask {
* Create a [BuildCompilationUnitElementTask] based on the given [target] in
* the given [context].
*/
- static BuildCompilationUnitElementTask createTask(AnalysisContext context,
- AnalysisTarget target) {
+ static BuildCompilationUnitElementTask createTask(
+ AnalysisContext context, AnalysisTarget target) {
return new BuildCompilationUnitElementTask(context, target);
}
}
@@ -105,17 +103,15 @@ class ParseDartTask extends SourceBasedAnalysisTask {
/**
* The task descriptor describing this kind of task.
*/
- static final TaskDescriptor DESCRIPTOR = new TaskDescriptor(
- 'PARSE_DART',
- createTask,
- buildInputs,
- <ResultDescriptor>[
- EXPORTED_LIBRARIES,
- IMPORTED_LIBRARIES,
- INCLUDED_PARTS,
- PARSE_ERRORS,
- PARSED_UNIT,
- SOURCE_KIND]);
+ static final TaskDescriptor DESCRIPTOR = new TaskDescriptor('PARSE_DART',
+ createTask, buildInputs, <ResultDescriptor>[
+ EXPORTED_LIBRARIES,
+ IMPORTED_LIBRARIES,
+ INCLUDED_PARTS,
+ PARSE_ERRORS,
+ PARSED_UNIT,
+ SOURCE_KIND
+ ]);
/**
* Initialize a newly created task to parse the content of the Dart file
@@ -198,8 +194,8 @@ class ParseDartTask extends SourceBasedAnalysisTask {
* Create a [ParseDartTask] based on the given [target] in the given
* [context].
*/
- static ParseDartTask createTask(AnalysisContext context,
- AnalysisTarget target) {
+ static ParseDartTask createTask(
+ AnalysisContext context, AnalysisTarget target) {
return new ParseDartTask(context, target);
}
@@ -230,22 +226,15 @@ class ParseDartTask extends SourceBasedAnalysisTask {
return null;
}
if (code == UriValidationCode.URI_WITH_INTERPOLATION) {
- errorListener.onError(
- new AnalysisError.con2(
- librarySource,
- uriLiteral.offset,
- uriLiteral.length,
- CompileTimeErrorCode.URI_WITH_INTERPOLATION));
+ errorListener.onError(new AnalysisError.con2(librarySource,
+ uriLiteral.offset, uriLiteral.length,
+ CompileTimeErrorCode.URI_WITH_INTERPOLATION));
return null;
}
if (code == UriValidationCode.INVALID_URI) {
- errorListener.onError(
- new AnalysisError.con2(
- librarySource,
- uriLiteral.offset,
- uriLiteral.length,
- CompileTimeErrorCode.INVALID_URI,
- [uriContent]));
+ errorListener.onError(new AnalysisError.con2(librarySource,
+ uriLiteral.offset, uriLiteral.length,
+ CompileTimeErrorCode.INVALID_URI, [uriContent]));
return null;
}
throw new AnalysisException('Failed to handle validation code: $code');
@@ -264,11 +253,12 @@ class ScanDartTask extends SourceBasedAnalysisTask {
/**
* The task descriptor describing this kind of task.
*/
- static final TaskDescriptor DESCRIPTOR = new TaskDescriptor(
- 'SCAN_DART',
- createTask,
- buildInputs,
- <ResultDescriptor>[LINE_INFO, SCAN_ERRORS, TOKEN_STREAM]);
+ static final TaskDescriptor DESCRIPTOR = new TaskDescriptor('SCAN_DART',
+ createTask, buildInputs, <ResultDescriptor>[
+ LINE_INFO,
+ SCAN_ERRORS,
+ TOKEN_STREAM
+ ]);
/**
* Initialize a newly created task to access the content of the source
@@ -299,16 +289,14 @@ class ScanDartTask extends SourceBasedAnalysisTask {
* input descriptors describing those inputs for a task with the given [target].
*/
static Map<String, TaskInput> buildInputs(AnalysisTarget target) {
- return <String, TaskInput>{
- CONTENT_INPUT_NAME: CONTENT.inputFor(target)
- };
+ return <String, TaskInput>{CONTENT_INPUT_NAME: CONTENT.inputFor(target)};
}
/**
* Create a [ScanDartTask] based on the given [target] in the given [context].
*/
- static ScanDartTask createTask(AnalysisContext context,
- AnalysisTarget target) {
+ static ScanDartTask createTask(
+ AnalysisContext context, AnalysisTarget target) {
return new ScanDartTask(context, target);
}
}
« no previous file with comments | « pkg/analyzer/lib/src/string_source.dart ('k') | pkg/analyzer/lib/src/task/general.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698