Chromium Code Reviews| Index: pkg/analysis_server/lib/src/services/correction/assist_internal.dart |
| diff --git a/pkg/analysis_server/lib/src/services/correction/assist_internal.dart b/pkg/analysis_server/lib/src/services/correction/assist_internal.dart |
| index a35eeb82b9880b9a8524f12a2cf6ff0a4a30a65c..0fbdee6c9e9fe5ffcfb5002270d46e29c432e994 100644 |
| --- a/pkg/analysis_server/lib/src/services/correction/assist_internal.dart |
| +++ b/pkg/analysis_server/lib/src/services/correction/assist_internal.dart |
| @@ -1450,6 +1450,11 @@ class AssistProcessor { |
| _coverageMarker(); |
| return; |
| } |
| + // ignore if an incomplete variable declaration |
| + if (firstVariable.name.isSynthetic) { |
|
Brian Wilkerson
2016/03/01 19:50:08
Do we want to do this only for the first variable,
|
| + _coverageMarker(); |
| + return; |
| + } |
| // add edit |
| Token keyword = declarationList.keyword; |
| SourceRange typeRange = rangeStartStart(typeNode, firstVariable); |