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

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

Issue 809883003: Fix comment on ArgListComputer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 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 services.completion.computer.dart.arglist; 5 library services.completion.computer.dart.arglist;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/protocol_server.dart' hide Element, 9 import 'package:analysis_server/src/protocol_server.dart' hide Element,
10 ElementKind; 10 ElementKind;
11 import 'package:analysis_server/src/services/completion/dart_completion_manager. dart'; 11 import 'package:analysis_server/src/services/completion/dart_completion_manager. dart';
12 import 'package:analysis_server/src/services/completion/local_declaration_visito r.dart'; 12 import 'package:analysis_server/src/services/completion/local_declaration_visito r.dart';
13 import 'package:analyzer/src/generated/ast.dart'; 13 import 'package:analyzer/src/generated/ast.dart';
14 import 'package:analyzer/src/generated/scanner.dart'; 14 import 'package:analyzer/src/generated/scanner.dart';
15 15
16 /** 16 /**
17 * A computer for calculating `completion.getSuggestions` request results 17 * A computer for calculating `completion.getSuggestions` request results
18 * for the import combinators show and hide. 18 * when the cursor position is inside the arguments to a method call.
19 */ 19 */
20 class ArgListComputer extends DartCompletionComputer { 20 class ArgListComputer extends DartCompletionComputer {
21 _ArgListSuggestionBuilder builder; 21 _ArgListSuggestionBuilder builder;
22 22
23 @override 23 @override
24 bool computeFast(DartCompletionRequest request) { 24 bool computeFast(DartCompletionRequest request) {
25 builder = request.node.accept(new _ArgListAstVisitor(request)); 25 builder = request.node.accept(new _ArgListAstVisitor(request));
26 return builder == null; 26 return builder == null;
27 } 27 }
28 28
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 if (id != null) { 206 if (id != null) {
207 String name = id.name; 207 String name = id.name;
208 if (name != null && name.length > 0) { 208 if (name != null && name.length > 0) {
209 return name; 209 return name;
210 } 210 }
211 } 211 }
212 } 212 }
213 return 'dynamic'; 213 return 'dynamic';
214 } 214 }
215 } 215 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698