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

Unified Diff: pkg/analyzer/lib/src/analyzer_impl.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/source/pub_package_map_provider.dart ('k') | pkg/analyzer/lib/src/cancelable_future.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/analyzer_impl.dart
diff --git a/pkg/analyzer/lib/src/analyzer_impl.dart b/pkg/analyzer/lib/src/analyzer_impl.dart
index 5962bf7c718f4ea3b276c0073887e290b60777f2..be28a684f9f26588ced93eb4c7313ac1cadbd2e4 100644
--- a/pkg/analyzer/lib/src/analyzer_impl.dart
+++ b/pkg/analyzer/lib/src/analyzer_impl.dart
@@ -140,9 +140,10 @@ class AnalyzerImpl {
void prepareAnalysisContext(JavaFile sourceFile, Source source) {
List<UriResolver> resolvers = [
- new CustomUriResolver(options.customUrlMappings),
- new DartUriResolver(sdk),
- new FileUriResolver()];
+ new CustomUriResolver(options.customUrlMappings),
+ new DartUriResolver(sdk),
+ new FileUriResolver()
+ ];
// may be add package resolver
{
JavaFile packageDirectory;
@@ -156,8 +157,8 @@ class AnalyzerImpl {
PhysicalResourceProvider.INSTANCE.getResource('.'));
Map<String, List<Folder>> packageMap = packageMapInfo.packageMap;
if (packageMap != null) {
- resolvers.add(
- new PackageMapUriResolver(PhysicalResourceProvider.INSTANCE, packageMap));
+ resolvers.add(new PackageMapUriResolver(
+ PhysicalResourceProvider.INSTANCE, packageMap));
}
}
}
@@ -304,7 +305,7 @@ class AnalyzerImpl {
return false;
}
if (computeSeverity(error, options.enableTypeChecks) ==
- ErrorSeverity.INFO &&
+ ErrorSeverity.INFO &&
options.disableHints) {
return false;
}
@@ -361,8 +362,8 @@ class AnalyzerImpl {
* [enableTypeChecks] is false, then de-escalate checked-mode compile time
* errors to a severity of [ErrorSeverity.INFO].
*/
- static ErrorSeverity computeSeverity(AnalysisError error,
- bool enableTypeChecks) {
+ static ErrorSeverity computeSeverity(
+ AnalysisError error, bool enableTypeChecks) {
if (!enableTypeChecks &&
error.errorCode.type == ErrorType.CHECKED_MODE_COMPILE_TIME_ERROR) {
return ErrorSeverity.INFO;
« no previous file with comments | « pkg/analyzer/lib/source/pub_package_map_provider.dart ('k') | pkg/analyzer/lib/src/cancelable_future.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698