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

Side by Side Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/SourceRegion.java

Issue 474193003: Make more use of generated code in Java analysis server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2014, the Dart project authors.
3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except
5 * in compliance with the License. You may obtain a copy of the License at
6 *
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express
11 * or implied. See the License for the specific language governing permissions a nd limitations under
12 * the License.
13 */
14 package com.google.dart.server;
15
16 /**
17 * The interface {@code SourceRegion} defines the behavior of objects representi ng a range of
18 * characters within a {@link Source}.
19 *
20 * @coverage dart.server
21 */
22 public interface SourceRegion {
23 /**
24 * Check if <code>x</code> is in [offset, offset + length] interval.
25 */
26 public boolean containsInclusive(int x);
27
28 /**
29 * Return the length of the region.
30 *
31 * @return the length of the region
32 */
33 public int getLength();
34
35 /**
36 * Return the offset to the beginning of the region.
37 *
38 * @return the offset to the beginning of the region
39 */
40 public int getOffset();
41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698