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

Unified Diff: pkg/analysis_server/lib/src/computer/computer_outline.dart

Issue 1008583002: Fix hints (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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_outline.dart
diff --git a/pkg/analysis_server/lib/src/computer/computer_outline.dart b/pkg/analysis_server/lib/src/computer/computer_outline.dart
index c591b287b8d0eb1a92f74aca4125c3ec86f7781e..81e9b508d1394e7f520175f35c4c0617694fd25d 100644
--- a/pkg/analysis_server/lib/src/computer/computer_outline.dart
+++ b/pkg/analysis_server/lib/src/computer/computer_outline.dart
@@ -138,11 +138,10 @@ class DartUnitOutlineComputer {
// unit or class member
if (parent is CompilationUnit) {
firstOffset = 0;
- siblings = (parent as CompilationUnit).declarations;
+ siblings = parent.declarations;
} else if (parent is ClassDeclaration) {
- ClassDeclaration classDeclaration = parent as ClassDeclaration;
- firstOffset = classDeclaration.leftBracket.end;
- siblings = classDeclaration.members;
+ firstOffset = parent.leftBracket.end;
+ siblings = parent.members;
} else {
int offset = node.offset;
return new _SourceRegion(offset, endOffset - offset);
« no previous file with comments | « pkg/analysis_server/lib/src/computer/computer_highlights.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