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

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

Issue 1383313002: Move completion APIs to a private location (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: formatting Created 5 years, 2 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
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.
4
5 library analysis_server.src.provisional.completion.dart.completion_target;
6
1 import 'package:analyzer/src/generated/ast.dart'; 7 import 'package:analyzer/src/generated/ast.dart';
2 import 'package:analyzer/src/generated/element.dart'; 8 import 'package:analyzer/src/generated/element.dart';
3 import 'package:analyzer/src/generated/scanner.dart'; 9 import 'package:analyzer/src/generated/scanner.dart';
4 import 'package:analyzer/src/generated/utilities_dart.dart'; 10 import 'package:analyzer/src/generated/utilities_dart.dart';
5 11
6 int _computeArgIndex(AstNode containingNode, Object entity) { 12 int _computeArgIndex(AstNode containingNode, Object entity) {
7 var argList = containingNode; 13 var argList = containingNode;
8 if (argList is ArgumentList) { 14 if (argList is ArgumentList) {
9 NodeList<Expression> args = argList.arguments; 15 NodeList<Expression> args = argList.arguments;
10 for (int index = 0; index < args.length; ++index) { 16 for (int index = 0; index < args.length; ++index) {
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 if (param.parameterKind == ParameterKind.NAMED) { 353 if (param.parameterKind == ParameterKind.NAMED) {
348 // TODO(danrubel) handle named parameters 354 // TODO(danrubel) handle named parameters
349 return false; 355 return false;
350 } else { 356 } else {
351 return paramType is FunctionType || paramType is FunctionTypeAlias; 357 return paramType is FunctionType || paramType is FunctionTypeAlias;
352 } 358 }
353 } 359 }
354 return false; 360 return false;
355 } 361 }
356 } 362 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698