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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/FileReadMode.java

Issue 825393005: Addition of the optional FileReadMode into the server spec. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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
Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/FileReadMode.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AnalysisService.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/FileReadMode.java
similarity index 64%
copy from editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AnalysisService.java
copy to editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/FileReadMode.java
index eef2903e8974caae726d7ff2b6c4c696f8477626..dee5768033c78673098b8467816a044a1790323a 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AnalysisService.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/FileReadMode.java
@@ -17,24 +17,21 @@
package com.google.dart.server.generated.types;
/**
- * An enumeration of the services provided by the analysis domain.
+ * An enumeration of the ways files can be read from disk. Some clients normalize end of line
+ * characters which would make the file offset and range information incorrect.
*
* @coverage dart.server.generated.types
*/
-public class AnalysisService {
+public class FileReadMode {
- public static final String FOLDING = "FOLDING";
+ /**
+ * File contents are read as-is, no file changes occur.
+ */
+ public static final String AS_IS = "AS_IS";
- public static final String HIGHLIGHTS = "HIGHLIGHTS";
-
- public static final String INVALIDATE = "INVALIDATE";
-
- public static final String NAVIGATION = "NAVIGATION";
-
- public static final String OCCURRENCES = "OCCURRENCES";
-
- public static final String OUTLINE = "OUTLINE";
-
- public static final String OVERRIDES = "OVERRIDES";
+ /**
+ * File contents normalize the end of line characters to the single character new line '\n'.
+ */
+ public static final String NORMALIZE_EOL = "NORMALIZE_EOL";
}

Powered by Google App Engine
This is Rietveld 408576698