| 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 ElementKind; | 10 show ElementKind; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 CompletionSuggestion suggestion = _addSuggestion(label.label); | 96 CompletionSuggestion suggestion = _addSuggestion(label.label); |
| 97 if (suggestion != null) { | 97 if (suggestion != null) { |
| 98 suggestion.element = createLocalElement( | 98 suggestion.element = createLocalElement( |
| 99 request.source, protocol.ElementKind.LABEL, label.label, | 99 request.source, protocol.ElementKind.LABEL, label.label, |
| 100 returnType: NO_RETURN_TYPE); | 100 returnType: NO_RETURN_TYPE); |
| 101 } | 101 } |
| 102 } | 102 } |
| 103 } | 103 } |
| 104 | 104 |
| 105 @override | 105 @override |
| 106 void declaredLocalVar(SimpleIdentifier name, TypeName type) { | 106 void declaredLocalVar(SimpleIdentifier name, TypeAnnotation type) { |
| 107 // ignored | 107 // ignored |
| 108 } | 108 } |
| 109 | 109 |
| 110 @override | 110 @override |
| 111 void declaredMethod(MethodDeclaration declaration) { | 111 void declaredMethod(MethodDeclaration declaration) { |
| 112 // ignored | 112 // ignored |
| 113 } | 113 } |
| 114 | 114 |
| 115 @override | 115 @override |
| 116 void declaredParam(SimpleIdentifier name, TypeName type) { | 116 void declaredParam(SimpleIdentifier name, TypeAnnotation type) { |
| 117 // ignored | 117 // ignored |
| 118 } | 118 } |
| 119 | 119 |
| 120 @override | 120 @override |
| 121 void declaredTopLevelVar( | 121 void declaredTopLevelVar( |
| 122 VariableDeclarationList varList, VariableDeclaration varDecl) { | 122 VariableDeclarationList varList, VariableDeclaration varDecl) { |
| 123 // ignored | 123 // ignored |
| 124 } | 124 } |
| 125 | 125 |
| 126 @override | 126 @override |
| (...skipping 22 matching lines...) Expand all Loading... |
| 149 0, | 149 0, |
| 150 false, | 150 false, |
| 151 false); | 151 false); |
| 152 suggestions.add(suggestion); | 152 suggestions.add(suggestion); |
| 153 return suggestion; | 153 return suggestion; |
| 154 } | 154 } |
| 155 } | 155 } |
| 156 return null; | 156 return null; |
| 157 } | 157 } |
| 158 } | 158 } |
| OLD | NEW |