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

Unified Diff: pkg/analysis_server/lib/src/computer/computer_overrides.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
Index: pkg/analysis_server/lib/src/computer/computer_overrides.dart
diff --git a/pkg/analysis_server/lib/src/computer/computer_overrides.dart b/pkg/analysis_server/lib/src/computer/computer_overrides.dart
index d0c3cf22f561f16584484e8a45ad483315e97752..c47e127ee03903ef743e7066b0ecd51eb2cb3437 100644
--- a/pkg/analysis_server/lib/src/computer/computer_overrides.dart
+++ b/pkg/analysis_server/lib/src/computer/computer_overrides.dart
@@ -9,7 +9,6 @@ import 'package:analysis_server/src/protocol_server.dart';
import 'package:analyzer/src/generated/ast.dart';
import 'package:analyzer/src/generated/element.dart' as engine;
-
/**
* A computer for class member overrides in a Dart [CompilationUnit].
*/
@@ -66,22 +65,21 @@ class DartUnitOverridesComputer {
}
// is there any override?
if (superEngineElement != null || interfaceEngineElements.isNotEmpty) {
- OverriddenMember superMember = superEngineElement != null ?
- newOverriddenMember_fromEngine(superEngineElement) :
- null;
- List<OverriddenMember> interfaceMembers = interfaceEngineElements.map(
- (engine.Element member) => newOverriddenMember_fromEngine(member)).toList();
- _overrides.add(
- new Override(
- offset,
- length,
- superclassMember: superMember,
- interfaceMembers: nullIfEmpty(interfaceMembers)));
+ OverriddenMember superMember = superEngineElement != null
+ ? newOverriddenMember_fromEngine(superEngineElement)
+ : null;
+ List<OverriddenMember> interfaceMembers = interfaceEngineElements
+ .map(
+ (engine.Element member) => newOverriddenMember_fromEngine(member))
+ .toList();
+ _overrides.add(new Override(offset, length,
+ superclassMember: superMember,
+ interfaceMembers: nullIfEmpty(interfaceMembers)));
}
}
- static engine.Element _lookupMember(engine.ClassElement classElement,
- String name) {
+ static engine.Element _lookupMember(
+ engine.ClassElement classElement, String name) {
if (classElement == null) {
return null;
}
« no previous file with comments | « pkg/analysis_server/lib/src/computer/computer_outline.dart ('k') | pkg/analysis_server/lib/src/context_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698