Index: pkg/analysis_server/lib/src/services/correction/fix_internal.dart |
diff --git a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart |
index 783e4e90773e1dc1d6d73e9648f05a3d99a52f92..0851afa88e061f00ff77fbb1d0b21b67545f2a22 100644 |
--- a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart |
+++ b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart |
@@ -1062,7 +1062,10 @@ class FixProcessor { |
} |
return 1; |
}); |
+ // prepare target |
ClassDeclaration targetClass = node.parent as ClassDeclaration; |
+ utils.targetClassElement = targetClass.element; |
+ // prepare SourceBuilder |
int insertOffset = targetClass.end - 1; |
SourceBuilder sb = new SourceBuilder(file, insertOffset); |
// EOL management |