| Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/FileReadMode.java
|
| diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/RequestSink.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/FileReadMode.java
|
| similarity index 57%
|
| copy from editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/RequestSink.java
|
| copy to editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/FileReadMode.java
|
| index c4af60a3f509cd1ca41eaaab69246edb2cb9a007..bb398d63a1ba0f4759dd821a5596e35946adeba2 100644
|
| --- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/RequestSink.java
|
| +++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/FileReadMode.java
|
| @@ -1,5 +1,5 @@
|
| /*
|
| - * Copyright (c) 2014, the Dart project authors.
|
| + * Copyright (c) 2015, the Dart project authors.
|
| *
|
| * Licensed under the Eclipse Public License v1.0 (the "License"); you may not use this file except
|
| * in compliance with the License. You may obtain a copy of the License at
|
| @@ -13,23 +13,21 @@
|
| */
|
| package com.google.dart.server.internal.remote;
|
|
|
| -import com.google.gson.JsonObject;
|
| -
|
| /**
|
| - * A destination for remote server requests.
|
| + * 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.remote
|
| */
|
| -public interface RequestSink {
|
| +public enum FileReadMode {
|
| /**
|
| - * Put request into the sink.
|
| - *
|
| - * @param request the request to put, not {@code null}.
|
| + * File contents are read as-is, no file changes occur.
|
| */
|
| - void add(JsonObject request);
|
| + AS_IS,
|
|
|
| /**
|
| - * Close the communication channel.
|
| + * File contents normalize the end of line characters to the single character new line '\n'.
|
| */
|
| - void close();
|
| + NORMALIZE_EOL_ALWAYS;
|
| }
|
|
|