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

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

Issue 2879273002: Make server use the common protocol classes (Closed)
Patch Set: 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) 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;
6
7 import 'dart:async'; 5 import 'dart:async';
8 6
9 import 'package:analysis_server/protocol/protocol_generated.dart';
10 import 'package:analysis_server/src/provisional/completion/completion_core.dart' ; 7 import 'package:analysis_server/src/provisional/completion/completion_core.dart' ;
11 import 'package:analysis_server/src/provisional/completion/dart/completion_targe t.dart'; 8 import 'package:analysis_server/src/provisional/completion/dart/completion_targe t.dart';
12 import 'package:analysis_server/src/services/completion/dart/optype.dart'; 9 import 'package:analysis_server/src/services/completion/dart/optype.dart';
13 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
14 import 'package:analyzer/dart/element/element.dart'; 11 import 'package:analyzer/dart/element/element.dart';
15 import 'package:analyzer/dart/element/type.dart'; 12 import 'package:analyzer/dart/element/type.dart';
16 import 'package:analyzer/src/generated/source.dart'; 13 import 'package:analyzer/src/generated/source.dart';
14 import 'package:analyzer_plugin/protocol/protocol_common.dart';
17 15
18 export 'package:analysis_server/src/provisional/completion/completion_core.dart' 16 export 'package:analysis_server/src/provisional/completion/completion_core.dart'
19 show EMPTY_LIST; 17 show EMPTY_LIST;
20 18
21 const int DART_RELEVANCE_COMMON_USAGE = 1200; 19 const int DART_RELEVANCE_COMMON_USAGE = 1200;
22 const int DART_RELEVANCE_DEFAULT = 1000; 20 const int DART_RELEVANCE_DEFAULT = 1000;
23 const int DART_RELEVANCE_HIGH = 2000; 21 const int DART_RELEVANCE_HIGH = 2000;
24 const int DART_RELEVANCE_INCREMENT = 100; 22 const int DART_RELEVANCE_INCREMENT = 100;
25 const int DART_RELEVANCE_INHERITED_ACCESSOR = 1057; 23 const int DART_RELEVANCE_INHERITED_ACCESSOR = 1057;
26 const int DART_RELEVANCE_INHERITED_FIELD = 1058; 24 const int DART_RELEVANCE_INHERITED_FIELD = 1058;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 SourceFactory get sourceFactory; 110 SourceFactory get sourceFactory;
113 111
114 /** 112 /**
115 * Return the completion target. This determines what part of the parse tree 113 * Return the completion target. This determines what part of the parse tree
116 * will receive the newly inserted text. 114 * will receive the newly inserted text.
117 * At a minimum, all declarations in the completion scope in [target.unit] 115 * At a minimum, all declarations in the completion scope in [target.unit]
118 * will be resolved if they can be resolved. 116 * will be resolved if they can be resolved.
119 */ 117 */
120 CompletionTarget get target; 118 CompletionTarget get target;
121 } 119 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698