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

Side by Side Diff: pkg/analysis_server/lib/src/services/completion/optype.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) 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698