| Index: pkg/analysis_server/lib/src/services/completion/local_computer.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/local_computer.dart b/pkg/analysis_server/lib/src/services/completion/local_computer.dart
|
| index 73319916d2ea00ac5341f6313b78e1203427193c..77a186903bfbb05eb8e3bd4d031fe6db032b6eec 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/local_computer.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/local_computer.dart
|
| @@ -204,6 +204,16 @@ class _LocalVisitor extends GeneralizingAstVisitor<dynamic> {
|
| }
|
|
|
| @override
|
| + visitCascadeExpression(CascadeExpression node) {
|
| + Expression target = node.target;
|
| + // This computer handles the expression
|
| + // while InvocationComputer handles the cascade selector
|
| + if (target != null && request.offset <= target.end) {
|
| + visitNode(node);
|
| + }
|
| + }
|
| +
|
| + @override
|
| visitVariableDeclaration(VariableDeclaration node) {
|
| // Do not add suggestions if editing the name in a var declaration
|
| SimpleIdentifier name = node.name;
|
|
|