| 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.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; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 finished = true; | 129 finished = true; |
| 130 _addArgListSuggestion(declaration.functionExpression.parameters); | 130 _addArgListSuggestion(declaration.functionExpression.parameters); |
| 131 } | 131 } |
| 132 } | 132 } |
| 133 | 133 |
| 134 @override | 134 @override |
| 135 void declaredFunctionTypeAlias(FunctionTypeAlias declaration) { | 135 void declaredFunctionTypeAlias(FunctionTypeAlias declaration) { |
| 136 } | 136 } |
| 137 | 137 |
| 138 @override | 138 @override |
| 139 void declaredLabel(Label label) { | 139 void declaredLabel(Label label, bool isCaseLabel) { |
| 140 } | 140 } |
| 141 | 141 |
| 142 @override | 142 @override |
| 143 void declaredLocalVar(SimpleIdentifier name, TypeName type) { | 143 void declaredLocalVar(SimpleIdentifier name, TypeName type) { |
| 144 } | 144 } |
| 145 | 145 |
| 146 @override | 146 @override |
| 147 void declaredMethod(MethodDeclaration declaration) { | 147 void declaredMethod(MethodDeclaration declaration) { |
| 148 SimpleIdentifier selector = declaration.name; | 148 SimpleIdentifier selector = declaration.name; |
| 149 if (selector != null && name == selector.name) { | 149 if (selector != null && name == selector.name) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |