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

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

Issue 612123002: Fix for highlighting 'abstract' in ClassTypeAlias. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « no previous file | pkg/analysis_server/test/analysis/notification_highlights_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/computer/computer_highlights.dart
diff --git a/pkg/analysis_server/lib/src/computer/computer_highlights.dart b/pkg/analysis_server/lib/src/computer/computer_highlights.dart
index e0d7337f1aee1b0867d9441630eb1167ce940481..20f618fcf397e28466b8cf3dbedd170f24b2752b 100644
--- a/pkg/analysis_server/lib/src/computer/computer_highlights.dart
+++ b/pkg/analysis_server/lib/src/computer/computer_highlights.dart
@@ -383,6 +383,14 @@ class _DartUnitHighlightsComputerVisitor extends RecursiveAstVisitor<Object> {
}
@override
+ Object visitClassTypeAlias(ClassTypeAlias node) {
+ computer._addRegion_token(
+ node.abstractKeyword,
+ HighlightRegionType.BUILT_IN);
+ return super.visitClassTypeAlias(node);
+ }
+
+ @override
Object visitConstructorDeclaration(ConstructorDeclaration node) {
computer._addRegion_token(
node.externalKeyword,
« no previous file with comments | « no previous file | pkg/analysis_server/test/analysis/notification_highlights_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698