| Index: pkg/analyzer/test/src/task/strong/front_end_inference_test.dart
|
| diff --git a/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart b/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart
|
| index bf778e8bee38bc5c7d42f7650ab26ef7986dd15d..9d0f983d486a6015f235f3b3f1e93a05e7620879 100644
|
| --- a/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart
|
| +++ b/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart
|
| @@ -32,6 +32,9 @@ main() {
|
| }, timeout: new Timeout(const Duration(seconds: 60)));
|
| }
|
|
|
| +/// Set this to `true` to cause expectation comments to be updated.
|
| +const bool fixProblems = false;
|
| +
|
| @reflectiveTest
|
| class RunFrontEndInferenceTest {
|
| test_run() async {
|
| @@ -99,7 +102,12 @@ class _FrontEndInferenceTest extends BaseAnalysisDriverTest {
|
| validation.finish();
|
|
|
| if (validation.hasProblems) {
|
| - return validation.problemsAsString;
|
| + if (fixProblems) {
|
| + validation.fixSource(uri);
|
| + return null;
|
| + } else {
|
| + return validation.problemsAsString;
|
| + }
|
| } else {
|
| return null;
|
| }
|
| @@ -239,7 +247,7 @@ class _InstrumentationVisitor extends RecursiveAstVisitor<Null> {
|
| if (type is InterfaceType) {
|
| if (type.typeParameters.isNotEmpty &&
|
| node.constructorName.type.typeArguments == null) {
|
| - _recordTypeArguments(node.offset, type.typeArguments);
|
| + _recordTypeArguments(node.constructorName.offset, type.typeArguments);
|
| }
|
| }
|
| }
|
|
|