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

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

Issue 1352843002: Highlight library identifiers as LIBRARY_NAME. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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_test2.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_highlights2.dart
diff --git a/pkg/analysis_server/lib/src/computer/computer_highlights2.dart b/pkg/analysis_server/lib/src/computer/computer_highlights2.dart
index f89d2780aa0ae10471ce7f7305f6d52881544246..5554a1c0ccd28d68e2f4549b3569471f443ea394 100644
--- a/pkg/analysis_server/lib/src/computer/computer_highlights2.dart
+++ b/pkg/analysis_server/lib/src/computer/computer_highlights2.dart
@@ -598,6 +598,12 @@ class _DartUnitHighlightsComputerVisitor2 extends RecursiveAstVisitor<Object> {
}
@override
+ Object visitLibraryIdentifier(LibraryIdentifier node) {
+ computer._addRegion_node(node, HighlightRegionType.LIBRARY_NAME);
+ return null;
+ }
+
+ @override
Object visitListLiteral(ListLiteral node) {
computer._addRegion_node(node, HighlightRegionType.LITERAL_LIST);
computer._addRegion_token(node.constKeyword, HighlightRegionType.KEYWORD);
« no previous file with comments | « no previous file | pkg/analysis_server/test/analysis/notification_highlights_test2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698