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

Side by Side Diff: pkg/analysis_server/lib/src/provisional/completion/dart/completion_dart.dart

Issue 2565633002: Reorganize InheritedRefenenceContributor to serve angular completion (Closed)
Patch Set: Fix bad merge. Tests passing. Created 4 years 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/provisional/completion/dart/completion_target.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analysis_server.src.provisional.completion.completion_dart; 5 library analysis_server.src.provisional.completion.completion_dart;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; 9 import 'package:analysis_server/plugin/protocol/protocol.dart';
10 import 'package:analysis_server/src/provisional/completion/completion_core.dart' ; 10 import 'package:analysis_server/src/provisional/completion/completion_core.dart' ;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 * This may be `null` if the library for a part file cannot be determined. 93 * This may be `null` if the library for a part file cannot be determined.
94 */ 94 */
95 Source get librarySource; 95 Source get librarySource;
96 96
97 /** 97 /**
98 * Answer the [DartType] for Object in dart:core 98 * Answer the [DartType] for Object in dart:core
99 */ 99 */
100 DartType get objectType; 100 DartType get objectType;
101 101
102 /** 102 /**
103 * The [OpType] which describes which types of suggestions would fit the
104 * request.
105 */
106 OpType get opType;
107
108 /**
103 * Return the [SourceFactory] of the request. 109 * Return the [SourceFactory] of the request.
104 */ 110 */
105 SourceFactory get sourceFactory; 111 SourceFactory get sourceFactory;
106 112
107 /** 113 /**
108 * Return the completion target. This determines what part of the parse tree 114 * Return the completion target. This determines what part of the parse tree
109 * will receive the newly inserted text. 115 * will receive the newly inserted text.
110 * At a minimum, all declarations in the completion scope in [target.unit] 116 * At a minimum, all declarations in the completion scope in [target.unit]
111 * will be resolved if they can be resolved. 117 * will be resolved if they can be resolved.
112 */ 118 */
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 /** 151 /**
146 * Return a [Future] that completes with a list of [CompilationUnitElement]s 152 * Return a [Future] that completes with a list of [CompilationUnitElement]s
147 * comprising the library in which in which the completion is occurring. 153 * comprising the library in which in which the completion is occurring.
148 * The [Future] may return `null` if the library unit cannot be determined 154 * The [Future] may return `null` if the library unit cannot be determined
149 * (e.g. unlinked part file). 155 * (e.g. unlinked part file).
150 * Any information obtained from [target] prior to calling this method 156 * Any information obtained from [target] prior to calling this method
151 * should be discarded as it may have changed. 157 * should be discarded as it may have changed.
152 */ 158 */
153 Future<List<CompilationUnitElement>> resolveUnits(); 159 Future<List<CompilationUnitElement>> resolveUnits();
154 } 160 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/provisional/completion/dart/completion_target.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698