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 services.completion.contributor.dart.label; | 5 library services.completion.contributor.dart.label; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/plugin/protocol/protocol.dart' as protocol | 9 import 'package:analysis_server/plugin/protocol/protocol.dart' as protocol |
10 show Element, ElementKind; | 10 show Element, ElementKind; |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 */ | 184 */ |
185 final bool includeStatementLabels; | 185 final bool includeStatementLabels; |
186 | 186 |
187 /** | 187 /** |
188 * True if case labels should be included as suggestions. | 188 * True if case labels should be included as suggestions. |
189 */ | 189 */ |
190 final bool includeCaseLabels; | 190 final bool includeCaseLabels; |
191 | 191 |
192 _LabelVisitor(DartCompletionRequest request, this.includeStatementLabels, | 192 _LabelVisitor(DartCompletionRequest request, this.includeStatementLabels, |
193 this.includeCaseLabels, this.suggestions) | 193 this.includeCaseLabels, this.suggestions) |
194 : super(request.offset), | 194 : request = request, |
195 request = request; | 195 super(request.offset); |
196 | 196 |
197 @override | 197 @override |
198 void declaredClass(ClassDeclaration declaration) { | 198 void declaredClass(ClassDeclaration declaration) { |
199 // ignored | 199 // ignored |
200 } | 200 } |
201 | 201 |
202 @override | 202 @override |
203 void declaredClassTypeAlias(ClassTypeAlias declaration) { | 203 void declaredClassTypeAlias(ClassTypeAlias declaration) { |
204 // ignored | 204 // ignored |
205 } | 205 } |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 0, | 278 0, |
279 false, | 279 false, |
280 false); | 280 false); |
281 suggestions.add(suggestion); | 281 suggestions.add(suggestion); |
282 return suggestion; | 282 return suggestion; |
283 } | 283 } |
284 } | 284 } |
285 return null; | 285 return null; |
286 } | 286 } |
287 } | 287 } |
OLD | NEW |