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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/Outline.java

Issue 517043002: Re-implementation of the analysis.outline in the java layer, this uses the generated types, and rem… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase with bleeding_edge Created 6 years, 4 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/Outline.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/Outline.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/Outline.java
deleted file mode 100644
index d9291842177464b861292b4de0230159f59f351d..0000000000000000000000000000000000000000
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/Outline.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright (c) 2014, 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
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.google.dart.server;
-
-import com.google.dart.server.generated.types.Element;
-
-/**
- * The interface {@code Outline} defines the behavior of objects that represent an outline for an
- * element.
- *
- * @coverage dart.server
- */
-public interface Outline {
- /**
- * An empty array of outlines.
- */
- Outline[] EMPTY_ARRAY = new Outline[0];
-
- /**
- * Check if <code>offset</code> is in [elementOffset, elementOffset + elementLength] interval.
- */
- public boolean containsInclusive(int offset);
-
- /**
- * Return an array containing the children outline. The array will be empty if the outline has no
- * children.
- *
- * @return an array containing the children of the element
- */
- public Outline[] getChildren();
-
- /**
- * A description of the element represented by this node.
- *
- * @return the {@link Element}
- */
- public Element getElement();
-
- /**
- * Return the length of the element.
- *
- * @return the length of the element
- */
- public int getLength();
-
- /**
- * Return the offset of the first character of the element.
- *
- * @return the offset of the first character of the element
- */
- public int getOffset();
-
- /**
- * Return the outline that either physically or logically encloses this outline. This will be
- * {@code null} if this outline is a unit outline.
- *
- * @return the outline that encloses this outline
- */
- public Outline getParent();
-
-}

Powered by Google App Engine
This is Rietveld 408576698