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

Unified Diff: pkg/analysis_server/lib/src/domain_execution.dart

Issue 969113002: 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/analysis_server/lib/src/domain_completion.dart ('k') | pkg/analysis_server/lib/src/domain_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/domain_execution.dart
diff --git a/pkg/analysis_server/lib/src/domain_execution.dart b/pkg/analysis_server/lib/src/domain_execution.dart
index 3e5d28cffd8ca17e52365a9adb794b4e0deb248f..d3323c70a15467550085d3505c1b407bba2bb508 100644
--- a/pkg/analysis_server/lib/src/domain_execution.dart
+++ b/pkg/analysis_server/lib/src/domain_execution.dart
@@ -93,9 +93,7 @@ class ExecutionDomainHandler implements RequestHandler {
String contextId = params.id;
String path = contextMap[contextId];
if (path == null) {
- return new Response.invalidParameter(
- request,
- 'id',
+ return new Response.invalidParameter(request, 'id',
'There is no execution context with an id of $contextId');
}
AnalysisContext context = server.getAnalysisContext(path);
@@ -106,9 +104,7 @@ class ExecutionDomainHandler implements RequestHandler {
String uri = params.uri;
if (file != null) {
if (uri != null) {
- return new Response.invalidParameter(
- request,
- 'file',
+ return new Response.invalidParameter(request, 'file',
'Either file or uri must be provided, but not both');
}
Resource resource = server.resourceProvider.getResource(file);
@@ -116,9 +112,7 @@ class ExecutionDomainHandler implements RequestHandler {
return new Response.invalidParameter(request, 'file', 'Must exist');
} else if (resource is! File) {
return new Response.invalidParameter(
- request,
- 'file',
- 'Must not refer to a directory');
+ request, 'file', 'Must not refer to a directory');
}
Source source = server.getSource(file);
uri = context.sourceFactory.restoreUri(source).toString();
@@ -132,9 +126,7 @@ class ExecutionDomainHandler implements RequestHandler {
return new ExecutionMapUriResult(file: file).toResponse(request.id);
}
return new Response.invalidParameter(
- request,
- 'file',
- 'Either file or uri must be provided');
+ request, 'file', 'Either file or uri must be provided');
}
/**
@@ -176,13 +168,12 @@ class ExecutionDomainHandler implements RequestHandler {
kind = ExecutableKind.SERVER;
}
server.sendNotification(
- new ExecutionLaunchDataParams(filePath, kind: kind).toNotification());
+ new ExecutionLaunchDataParams(filePath, kind: kind)
+ .toNotification());
} else if (AnalysisEngine.isHtmlFileName(filePath)) {
List<Source> libraries = context.getLibrariesReferencedFromHtml(source);
- server.sendNotification(
- new ExecutionLaunchDataParams(
- filePath,
- referencedFiles: _getFullNames(libraries)).toNotification());
+ server.sendNotification(new ExecutionLaunchDataParams(filePath,
+ referencedFiles: _getFullNames(libraries)).toNotification());
}
});
}
@@ -219,10 +210,8 @@ class ExecutionDomainHandler implements RequestHandler {
if (_isInAnalysisRoot(filePath)) {
List<Source> libraries =
context.getLibrariesReferencedFromHtml(source);
- server.sendNotification(
- new ExecutionLaunchDataParams(
- filePath,
- referencedFiles: _getFullNames(libraries)).toNotification());
+ server.sendNotification(new ExecutionLaunchDataParams(filePath,
+ referencedFiles: _getFullNames(libraries)).toNotification());
}
}
}
« no previous file with comments | « pkg/analysis_server/lib/src/domain_completion.dart ('k') | pkg/analysis_server/lib/src/domain_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698