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

Side by Side 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, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/analysis_server/test/analysis/notification_highlights_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library computer.highlights; 5 library computer.highlights;
6 6
7 import 'package:analysis_server/src/protocol.dart' hide Element; 7 import 'package:analysis_server/src/protocol.dart' hide Element;
8 import 'package:analyzer/src/generated/ast.dart'; 8 import 'package:analyzer/src/generated/ast.dart';
9 import 'package:analyzer/src/generated/element.dart'; 9 import 'package:analyzer/src/generated/element.dart';
10 import 'package:analyzer/src/generated/scanner.dart'; 10 import 'package:analyzer/src/generated/scanner.dart';
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 @override 376 @override
377 Object visitClassDeclaration(ClassDeclaration node) { 377 Object visitClassDeclaration(ClassDeclaration node) {
378 computer._addRegion_token(node.classKeyword, HighlightRegionType.KEYWORD); 378 computer._addRegion_token(node.classKeyword, HighlightRegionType.KEYWORD);
379 computer._addRegion_token( 379 computer._addRegion_token(
380 node.abstractKeyword, 380 node.abstractKeyword,
381 HighlightRegionType.BUILT_IN); 381 HighlightRegionType.BUILT_IN);
382 return super.visitClassDeclaration(node); 382 return super.visitClassDeclaration(node);
383 } 383 }
384 384
385 @override 385 @override
386 Object visitClassTypeAlias(ClassTypeAlias node) {
387 computer._addRegion_token(
388 node.abstractKeyword,
389 HighlightRegionType.BUILT_IN);
390 return super.visitClassTypeAlias(node);
391 }
392
393 @override
386 Object visitConstructorDeclaration(ConstructorDeclaration node) { 394 Object visitConstructorDeclaration(ConstructorDeclaration node) {
387 computer._addRegion_token( 395 computer._addRegion_token(
388 node.externalKeyword, 396 node.externalKeyword,
389 HighlightRegionType.BUILT_IN); 397 HighlightRegionType.BUILT_IN);
390 computer._addRegion_token( 398 computer._addRegion_token(
391 node.factoryKeyword, 399 node.factoryKeyword,
392 HighlightRegionType.BUILT_IN); 400 HighlightRegionType.BUILT_IN);
393 return super.visitConstructorDeclaration(node); 401 return super.visitConstructorDeclaration(node);
394 } 402 }
395 403
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 computer._addRegion_token(node.keyword, HighlightRegionType.KEYWORD); 665 computer._addRegion_token(node.keyword, HighlightRegionType.KEYWORD);
658 return super.visitWhileStatement(node); 666 return super.visitWhileStatement(node);
659 } 667 }
660 668
661 @override 669 @override
662 Object visitWithClause(WithClause node) { 670 Object visitWithClause(WithClause node) {
663 computer._addRegion_token(node.withKeyword, HighlightRegionType.KEYWORD); 671 computer._addRegion_token(node.withKeyword, HighlightRegionType.KEYWORD);
664 return super.visitWithClause(node); 672 return super.visitWithClause(node);
665 } 673 }
666 } 674 }
OLDNEW
« 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