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

Side by Side Diff: pkg/analysis_server/lib/src/domain_completion.dart

Issue 2844273003: Unify the server and plugin versions of the generators (Closed)
Patch Set: add missed files Created 3 years, 7 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 domain.completion; 5 library domain.completion;
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/protocol/protocol.dart';
10 import 'package:analysis_server/protocol/protocol_generated.dart';
10 import 'package:analysis_server/src/analysis_server.dart'; 11 import 'package:analysis_server/src/analysis_server.dart';
11 import 'package:analysis_server/src/constants.dart'; 12 import 'package:analysis_server/src/constants.dart';
12 import 'package:analysis_server/src/provisional/completion/completion_core.dart' ; 13 import 'package:analysis_server/src/provisional/completion/completion_core.dart' ;
13 import 'package:analysis_server/src/services/completion/completion_core.dart'; 14 import 'package:analysis_server/src/services/completion/completion_core.dart';
14 import 'package:analysis_server/src/services/completion/completion_performance.d art'; 15 import 'package:analysis_server/src/services/completion/completion_performance.d art';
15 import 'package:analyzer/src/dart/analysis/driver.dart'; 16 import 'package:analyzer/src/dart/analysis/driver.dart';
16 import 'package:analyzer/src/generated/engine.dart' hide AnalysisResult; 17 import 'package:analyzer/src/generated/engine.dart' hide AnalysisResult;
18 import 'package:analyzer/src/generated/source.dart';
17 import 'package:analyzer/src/source/source_resource.dart'; 19 import 'package:analyzer/src/source/source_resource.dart';
18 import 'package:analyzer/src/generated/source.dart';
19 20
20 /** 21 /**
21 * Instances of the class [CompletionDomainHandler] implement a [RequestHandler] 22 * Instances of the class [CompletionDomainHandler] implement a [RequestHandler]
22 * that handles requests in the completion domain. 23 * that handles requests in the completion domain.
23 */ 24 */
24 class CompletionDomainHandler implements RequestHandler { 25 class CompletionDomainHandler implements RequestHandler {
25 /** 26 /**
26 * The maximum number of performance measurements to keep. 27 * The maximum number of performance measurements to keep.
27 */ 28 */
28 static const int performanceListMaxLength = 50; 29 static const int performanceListMaxLength = 50;
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 final int replacementOffset; 279 final int replacementOffset;
279 280
280 /** 281 /**
281 * The suggested completions. 282 * The suggested completions.
282 */ 283 */
283 final List<CompletionSuggestion> suggestions; 284 final List<CompletionSuggestion> suggestions;
284 285
285 CompletionResult( 286 CompletionResult(
286 this.replacementOffset, this.replacementLength, this.suggestions); 287 this.replacementOffset, this.replacementLength, this.suggestions);
287 } 288 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/computer/new_notifications.dart ('k') | pkg/analysis_server/lib/src/domain_diagnostic.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698