| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |