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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/SemanticHighlightingManager_NEW.java

Issue 679103003: Support for enums semantic highlighting. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: small clean up for tests 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/computer/computer_highlights.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/SemanticHighlightingManager_NEW.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/SemanticHighlightingManager_NEW.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/SemanticHighlightingManager_NEW.java
index cefffebadc2248d40d4e783001826b03094a0ad8..469cea079f7df95d284b84726d8a13c00cdcb5fa 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/SemanticHighlightingManager_NEW.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/SemanticHighlightingManager_NEW.java
@@ -307,6 +307,10 @@ public class SemanticHighlightingManager_NEW implements AnalysisServerHighlights
return "constructor";
} else if (type.equals(HighlightRegionType.DYNAMIC_TYPE)) {
return "dynamicType";
+ } else if (type.equals(HighlightRegionType.ENUM)) {
+ return "enum";
+ } else if (type.equals(HighlightRegionType.ENUM_CONSTANT)) {
+ return "enumConstant";
} else if (type.equals(HighlightRegionType.FIELD)) {
return "field";
} else if (type.equals(HighlightRegionType.FIELD_STATIC)) {
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/computer/computer_highlights.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698