| OLD | NEW |
| 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.dart.completion_target; | |
| 6 | |
| 7 import 'package:analyzer/dart/ast/ast.dart'; | 5 import 'package:analyzer/dart/ast/ast.dart'; |
| 8 import 'package:analyzer/dart/ast/token.dart'; | 6 import 'package:analyzer/dart/ast/token.dart'; |
| 9 import 'package:analyzer/dart/element/element.dart'; | 7 import 'package:analyzer/dart/element/element.dart'; |
| 10 import 'package:analyzer/dart/element/type.dart'; | 8 import 'package:analyzer/dart/element/type.dart'; |
| 11 import 'package:analyzer/src/generated/utilities_dart.dart'; | 9 import 'package:analyzer/src/generated/utilities_dart.dart'; |
| 12 | 10 |
| 13 int _computeArgIndex(AstNode containingNode, Object entity) { | 11 int _computeArgIndex(AstNode containingNode, Object entity) { |
| 14 var argList = containingNode; | 12 var argList = containingNode; |
| 15 if (argList is NamedExpression) { | 13 if (argList is NamedExpression) { |
| 16 entity = argList; | 14 entity = argList; |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 orElse: () => null); | 446 orElse: () => null); |
| 449 paramType = param?.type; | 447 paramType = param?.type; |
| 450 } | 448 } |
| 451 } else { | 449 } else { |
| 452 paramType = param.type; | 450 paramType = param.type; |
| 453 } | 451 } |
| 454 } | 452 } |
| 455 return paramType is FunctionType || paramType is FunctionTypeAlias; | 453 return paramType is FunctionType || paramType is FunctionTypeAlias; |
| 456 } | 454 } |
| 457 } | 455 } |
| OLD | NEW |