OLD | NEW |
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.dart.optype; | 5 library services.completion.dart.optype; |
6 | 6 |
7 import 'package:analysis_server/src/services/completion/completion_target.dart'; | 7 import 'package:analysis_server/completion/dart/completion_target.dart'; |
8 import 'package:analyzer/src/generated/ast.dart'; | 8 import 'package:analyzer/src/generated/ast.dart'; |
9 import 'package:analyzer/src/generated/scanner.dart'; | 9 import 'package:analyzer/src/generated/scanner.dart'; |
10 | 10 |
11 /** | 11 /** |
12 * An [AstVisitor] for determining whether top level suggestions or invocation | 12 * An [AstVisitor] for determining whether top level suggestions or invocation |
13 * suggestions should be made based upon the type of node in which the | 13 * suggestions should be made based upon the type of node in which the |
14 * suggestions were requested. | 14 * suggestions were requested. |
15 */ | 15 */ |
16 class OpType { | 16 class OpType { |
17 /** | 17 /** |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 void visitVariableDeclarationStatement(VariableDeclarationStatement node) {} | 641 void visitVariableDeclarationStatement(VariableDeclarationStatement node) {} |
642 | 642 |
643 @override | 643 @override |
644 void visitWhileStatement(WhileStatement node) { | 644 void visitWhileStatement(WhileStatement node) { |
645 if (identical(entity, node.condition)) { | 645 if (identical(entity, node.condition)) { |
646 optype.includeReturnValueSuggestions = true; | 646 optype.includeReturnValueSuggestions = true; |
647 optype.includeTypeNameSuggestions = true; | 647 optype.includeTypeNameSuggestions = true; |
648 } | 648 } |
649 } | 649 } |
650 } | 650 } |
OLD | NEW |