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

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

Issue 1529653003: move LocalDeclarationVisitor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: mege Created 5 years 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/completion/dart/local_constructor_contributor.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Element, ElementKind; 10 show Element, ElementKind;
11 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart'; 11 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart';
12 import 'package:analysis_server/src/services/completion/dart/completion_manager. dart' 12 import 'package:analysis_server/src/services/completion/dart/completion_manager. dart'
13 show DartCompletionRequestImpl; 13 show DartCompletionRequestImpl;
14 import 'package:analysis_server/src/services/completion/local_declaration_visito r.dart' 14 import 'package:analysis_server/src/services/completion/dart/local_declaration_v isitor.dart'
15 show LocalDeclarationVisitor; 15 show LocalDeclarationVisitor;
16 import 'package:analysis_server/src/services/completion/optype.dart'; 16 import 'package:analysis_server/src/services/completion/optype.dart';
17 import 'package:analyzer/src/generated/ast.dart'; 17 import 'package:analyzer/src/generated/ast.dart';
18 import 'package:analyzer/src/generated/scanner.dart'; 18 import 'package:analyzer/src/generated/scanner.dart';
19 import 'package:analyzer/src/generated/source.dart'; 19 import 'package:analyzer/src/generated/source.dart';
20 20
21 import '../../../protocol_server.dart' 21 import '../../../protocol_server.dart'
22 show CompletionSuggestion, CompletionSuggestionKind, Location; 22 show CompletionSuggestion, CompletionSuggestionKind, Location;
23 23
24 const DYNAMIC = 'dynamic'; 24 const DYNAMIC = 'dynamic';
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 String name = id.name; 277 String name = id.name;
278 if (name == null || name.length <= 0) { 278 if (name == null || name.length <= 0) {
279 return DYNAMIC; 279 return DYNAMIC;
280 } 280 }
281 TypeArgumentList typeArgs = type.typeArguments; 281 TypeArgumentList typeArgs = type.typeArguments;
282 if (typeArgs != null) { 282 if (typeArgs != null) {
283 //TODO (danrubel) include type arguments 283 //TODO (danrubel) include type arguments
284 } 284 }
285 return name; 285 return name;
286 } 286 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/completion/dart/local_constructor_contributor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698