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

Side by Side Diff: pkg/analysis_server/test/integration/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
« no previous file with comments | « pkg/analysis_server/test/analysis/get_hover_test.dart ('k') | no next file » | 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) 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.integration.analysis.get.hover; 5 library test.integration.analysis.get.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:path/path.dart'; 10 import 'package:path/path.dart';
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 tests.add(checkHover( 166 tests.add(checkHover(
167 'length;', 6, ['get', 'length', 'int'], 'getter', null, 167 'length;', 6, ['get', 'length', 'int'], 'getter', null,
168 isCore: true, docRegexp: '.*')); 168 isCore: true, docRegexp: '.*'));
169 tests.add(checkHover( 169 tests.add(checkHover(
170 'length =', 6, ['set', 'length', 'int'], 'setter', null, 170 'length =', 6, ['set', 'length', 'int'], 'setter', null,
171 isCore: true, docRegexp: '.*')); 171 isCore: true, docRegexp: '.*'));
172 tests.add(checkHover('param;', 5, ['int', 'param'], 'parameter', ['int'], 172 tests.add(checkHover('param;', 5, ['int', 'param'], 'parameter', ['int'],
173 isLocal: true, 173 isLocal: true,
174 docRegexp: 'Documentation for func', 174 docRegexp: 'Documentation for func',
175 parameterRegexps: ['.*'])); 175 parameterRegexps: ['.*']));
176 tests.add(checkHover('add(', 3, ['List', 'add'], 'method', null, 176 tests.add(checkHover(
177 'add(', 3, ['List', 'add'], 'method', ['dynamic', 'void'],
177 isCore: true, docRegexp: '.*')); 178 isCore: true, docRegexp: '.*'));
178 tests.add(checkHover( 179 tests.add(checkHover(
179 'localVar)', 8, ['num', 'localVar'], 'local variable', ['num'], 180 'localVar)', 8, ['num', 'localVar'], 'local variable', ['num'],
180 isLocal: true, parameterRegexps: ['.*'], propagatedType: 'int')); 181 isLocal: true, parameterRegexps: ['.*'], propagatedType: 'int'));
181 tests.add(checkHover( 182 tests.add(checkHover(
182 'func(35', 4, ['func', 'int', 'param'], 'function', null, 183 'func(35', 4, ['func', 'int', 'param'], 'function', ['int', 'void'],
183 docRegexp: 'Documentation for func')); 184 docRegexp: 'Documentation for func'));
184 tests.add(checkHover('35', 2, null, null, ['int'], 185 tests.add(checkHover('35', 2, null, null, ['int'],
185 isLiteral: true, parameterRegexps: ['int', 'param'])); 186 isLiteral: true, parameterRegexps: ['int', 'param']));
186 tests.add(checkNoHover('comment')); 187 tests.add(checkNoHover('comment'));
187 return Future.wait(tests); 188 return Future.wait(tests);
188 }); 189 });
189 } 190 }
190 } 191 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/analysis/get_hover_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698