OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014, the Dart project authors. | 2 * Copyright (c) 2014, the Dart project authors. |
3 * | 3 * |
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 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 | 5 * in compliance with the License. You may obtain a copy of the License at |
6 * | 6 * |
7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
8 * | 8 * |
9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 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 | 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 | 11 * or implied. See the License for the specific language governing permissions a
nd limitations under |
12 * the License. | 12 * the License. |
13 */ | 13 */ |
14 package com.google.dart.server; | 14 |
| 15 package com.google.dart.tools.core.analysis.model; |
| 16 |
| 17 import com.google.dart.engine.source.Source; |
| 18 import com.google.dart.server.Outline; |
15 | 19 |
16 /** | 20 /** |
17 * The enumeration {@code HighlightType} defines the kinds of highlighting that
can be associated | 21 * Used by {@link AnalysisServerData} to notify clients that new {@link Outline}
is ready. |
18 * with a region of text. | |
19 * | 22 * |
20 * @coverage dart.server | 23 * @coverage dart.tools.core.model |
21 */ | 24 */ |
22 public enum HighlightType { | 25 public interface AnalysisServerOutlineListener { |
23 COMMENT_BLOCK, | 26 /** |
24 COMMENT_DOCUMENTATION, | 27 * Called when {@link Outline} for a particular {@link Source} is ready. |
25 COMMENT_END_OF_LINE, | 28 */ |
26 KEYWORD, | 29 void computedOutline(String contextId, Source source, Outline outline); |
27 LITERAL_BOOLEAN, | |
28 LITERAL_DOUBLE, | |
29 LITERAL_INTEGER, | |
30 LITERAL_LIST, | |
31 LITERAL_MAP, | |
32 LITERAL_STRING; | |
33 } | 30 } |
OLD | NEW |