| Index: pkg/analysis_server/test/services/completion/completion_test_util.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/completion_test_util.dart b/pkg/analysis_server/test/services/completion/completion_test_util.dart
|
| index 1440e0d04b920b4b3af5fcdaa0ac0c1dac0e0928..a90cb28599aa48ba859ac863cd287875daf11d1d 100644
|
| --- a/pkg/analysis_server/test/services/completion/completion_test_util.dart
|
| +++ b/pkg/analysis_server/test/services/completion/completion_test_util.dart
|
| @@ -989,6 +989,48 @@ class AbstractSelectorSuggestionTest extends AbstractCompletionTest {
|
| });
|
| }
|
|
|
| + test_InterpolationExpression() {
|
| + // SimpleIdentifier InterpolationExpression StringInterpolation
|
| + addTestSource('main() {String name; print("hello \$^");}');
|
| + computeFast();
|
| + return computeFull(true).then((_) {
|
| + assertSuggestLocalVariable('name', 'String');
|
| + assertSuggestImportedClass('Object');
|
| + });
|
| + }
|
| +
|
| + test_InterpolationExpression_block() {
|
| + // SimpleIdentifier InterpolationExpression StringInterpolation
|
| + addTestSource('main() {String name; print("hello \${n^}");}');
|
| + computeFast();
|
| + return computeFull(true).then((_) {
|
| + assertSuggestLocalVariable('name', 'String');
|
| + assertSuggestImportedClass('Object');
|
| + });
|
| + }
|
| +
|
| + test_InterpolationExpression_prefix_selector() {
|
| + // SimpleIdentifier PrefixedIdentifier InterpolationExpression
|
| + addTestSource('main() {String name; print("hello \${name.^}");}');
|
| + computeFast();
|
| + return computeFull(true).then((_) {
|
| + assertSuggestInvocationGetter('length', 'int');
|
| + assertNotSuggested('name');
|
| + assertNotSuggested('Object');
|
| + });
|
| + }
|
| +
|
| + test_InterpolationExpression_prefix_target() {
|
| + // SimpleIdentifier PrefixedIdentifier InterpolationExpression
|
| + addTestSource('main() {String name; print("hello \${nam^e.length}");}');
|
| + computeFast();
|
| + return computeFull(true).then((_) {
|
| + assertSuggestLocalVariable('name', 'String');
|
| + assertSuggestImportedClass('Object');
|
| + assertNotSuggested('length');
|
| + });
|
| + }
|
| +
|
| test_IsExpression() {
|
| // SimpleIdentifier TypeName IsExpression IfStatement
|
| addSource('/testB.dart', '''
|
| @@ -1072,17 +1114,6 @@ class AbstractSelectorSuggestionTest extends AbstractCompletionTest {
|
| });
|
| }
|
|
|
| - test_PrefixedIdentifier_interpolation() {
|
| - // SimpleIdentifier PrefixedIdentifier InterpolationExpression
|
| - addTestSource('main() {String name; print("hello \${name.^}");}');
|
| - computeFast();
|
| - return computeFull(true).then((_) {
|
| - assertSuggestInvocationGetter('length', 'int');
|
| - assertNotSuggested('name');
|
| - assertNotSuggested('Object');
|
| - });
|
| - }
|
| -
|
| test_PrefixedIdentifier_library() {
|
| // SimpleIdentifier PrefixedIdentifier ExpressionStatement
|
| addSource('/testB.dart', '''
|
| @@ -1142,17 +1173,6 @@ class AbstractSelectorSuggestionTest extends AbstractCompletionTest {
|
| });
|
| }
|
|
|
| - test_PrefixedIdentifier_prefix_interpolation() {
|
| - // SimpleIdentifier PrefixedIdentifier InterpolationExpression
|
| - addTestSource('main() {String name; print("hello \${nam^e.length}");}');
|
| - computeFast();
|
| - return computeFull(true).then((_) {
|
| - assertSuggestLocalVariable('name', 'String');
|
| - assertSuggestImportedClass('Object');
|
| - assertNotSuggested('length');
|
| - });
|
| - }
|
| -
|
| test_TopLevelVariableDeclaration_typed_name() {
|
| // SimpleIdentifier VariableDeclaration VariableDeclarationList
|
| // TopLevelVariableDeclaration
|
|
|