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

Side by Side Diff: pkg/analysis_server/lib/src/services/completion/dart/label_contributor.dart

Issue 2624283003: Revert "Add support for generic function type syntax, part 1" (TBR) (Closed)
Patch Set: Created 3 years, 11 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 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
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, TypeAnnotation type) { 106 void declaredLocalVar(SimpleIdentifier name, TypeName 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, TypeAnnotation type) { 116 void declaredParam(SimpleIdentifier name, TypeName 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698