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

Side by Side Diff: pkg/analysis_server/test/analysis/get_hover_test.dart

Issue 1814893002: Issue 25945. Include static/propagateInvokeType for MethodInvocation names into hover. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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) 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 test.domain.analysis.hover; 5 library test.domain.analysis.hover;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; 9 import 'package:analysis_server/plugin/protocol/protocol.dart';
10 import 'package:test_reflective_loader/test_reflective_loader.dart'; 10 import 'package:test_reflective_loader/test_reflective_loader.dart';
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 HoverInformation hover = await prepareHover('mm(42, '); 252 HoverInformation hover = await prepareHover('mm(42, ');
253 // range 253 // range
254 expect(hover.offset, findOffset('mmm(42, ')); 254 expect(hover.offset, findOffset('mmm(42, '));
255 expect(hover.length, 'mmm'.length); 255 expect(hover.length, 'mmm'.length);
256 // element 256 // element
257 expect(hover.containingLibraryName, 'my.library'); 257 expect(hover.containingLibraryName, 'my.library');
258 expect(hover.containingLibraryPath, testFile); 258 expect(hover.containingLibraryPath, testFile);
259 expect(hover.elementDescription, 'mmm(int a, String b) → List<String>'); 259 expect(hover.elementDescription, 'mmm(int a, String b) → List<String>');
260 expect(hover.elementKind, 'method'); 260 expect(hover.elementKind, 'method');
261 // types 261 // types
262 expect(hover.staticType, isNull); 262 expect(hover.staticType, '(int, String) → List<String>');
263 expect(hover.propagatedType, isNull); 263 expect(hover.propagatedType, isNull);
264 // no parameter 264 // no parameter
265 expect(hover.parameter, isNull); 265 expect(hover.parameter, isNull);
266 } 266 }
267 267
268 test_expression_parameter() async { 268 test_expression_parameter() async {
269 addTestFile(''' 269 addTestFile('''
270 library my.library; 270 library my.library;
271 class A { 271 class A {
272 /// The method documentation. 272 /// The method documentation.
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 addTestFile(''' 459 addTestFile('''
460 library my.library; 460 library my.library;
461 main() { 461 main() {
462 // nothing 462 // nothing
463 } 463 }
464 '''); 464 ''');
465 HoverInformation hover = await prepareHover('nothing'); 465 HoverInformation hover = await prepareHover('nothing');
466 expect(hover, isNull); 466 expect(hover, isNull);
467 } 467 }
468 } 468 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698