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

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

Issue 1347283005: refactor ContributionSorter to use new API (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 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
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.services.completion.completion_dart; 5 library analysis_server.src.services.completion.completion_dart;
6 6
7 import 'package:analysis_server/completion/completion_core.dart'; 7 import 'package:analysis_server/completion/completion_core.dart';
8 import 'package:analysis_server/completion/completion_dart.dart'; 8 import 'package:analysis_server/completion/completion_dart.dart';
9 import 'package:analysis_server/completion/dart/completion_target.dart';
9 import 'package:analysis_server/src/services/completion/completion_core.dart'; 10 import 'package:analysis_server/src/services/completion/completion_core.dart';
10 import 'package:analyzer/src/generated/ast.dart'; 11 import 'package:analyzer/src/generated/ast.dart';
11 12
12 /** 13 /**
13 * The information about a requested list of completions within a Dart file. 14 * The information about a requested list of completions within a Dart file.
14 */ 15 */
15 class DartCompletionRequestImpl extends CompletionRequestImpl 16 class DartCompletionRequestImpl extends CompletionRequestImpl
16 implements DartCompletionRequest { 17 implements DartCompletionRequest {
17 /** 18 /**
18 * The compilation unit in which the completion was requested. 19 * The compilation unit in which the completion was requested.
19 */ 20 */
20 final CompilationUnit unit; 21 final CompilationUnit unit;
21 22
22 /** 23 /**
23 * A flag indicating whether the compilation [unit] is resolved. 24 * A flag indicating whether the compilation [unit] is resolved.
24 */ 25 */
25 final bool isResolved; 26 final bool isResolved;
26 27
27 /** 28 /**
29 * The completion target. This determines what part of the parse tree
30 * will receive the newly inserted text.
31 */
32 final CompletionTarget target;
33
34 /**
28 * Initialize a newly created completion request based on the given arguments. 35 * Initialize a newly created completion request based on the given arguments.
29 */ 36 */
30 DartCompletionRequestImpl( 37 DartCompletionRequestImpl(
31 CompletionRequest request, this.unit, this.isResolved) 38 CompletionRequest request, this.unit, this.isResolved, this.target)
32 : super(request.context, request.resourceProvider, request.source, 39 : super(request.context, request.resourceProvider, request.source,
33 request.offset); 40 request.offset);
34 } 41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698