@@ -500,6 +500,7 @@ class FixProcessor extends BaseProcessor {
500500 ImportLibrary .forType,
501501 ],
502502 CompileTimeErrorCode .EXTENDS_NON_CLASS : [
503+ DataDriven .newInstance,
503504 ImportLibrary .forType,
504505 ],
505506 CompileTimeErrorCode .EXTRA_POSITIONAL_ARGUMENTS : [
@@ -509,6 +510,7 @@ class FixProcessor extends BaseProcessor {
509510 AddMissingParameter .newInstance,
510511 ],
511512 CompileTimeErrorCode .IMPLEMENTS_NON_CLASS : [
513+ DataDriven .newInstance,
512514 ImportLibrary .forType,
513515 ],
514516 CompileTimeErrorCode .INVALID_ANNOTATION : [
@@ -519,6 +521,7 @@ class FixProcessor extends BaseProcessor {
519521 DataDriven .newInstance,
520522 ],
521523 CompileTimeErrorCode .MIXIN_OF_NON_CLASS : [
524+ DataDriven .newInstance,
522525 ImportLibrary .forType,
523526 ],
524527 CompileTimeErrorCode .NEW_WITH_NON_TYPE : [
@@ -551,21 +554,25 @@ class FixProcessor extends BaseProcessor {
551554 ImportLibrary .forType,
552555 ],
553556 CompileTimeErrorCode .UNDEFINED_CLASS : [
557+ DataDriven .newInstance,
554558 ImportLibrary .forType,
555559 ],
556560 CompileTimeErrorCode .UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT : [
557561 AddSuperConstructorInvocation .newInstance,
558562 ],
559563 CompileTimeErrorCode .UNDEFINED_FUNCTION : [
564+ DataDriven .newInstance,
560565 ImportLibrary .forExtension,
561566 ImportLibrary .forFunction,
562567 ImportLibrary .forType,
563568 ],
564569 CompileTimeErrorCode .UNDEFINED_GETTER : [
570+ DataDriven .newInstance,
565571 ImportLibrary .forTopLevelVariable,
566572 ImportLibrary .forType,
567573 ],
568574 CompileTimeErrorCode .UNDEFINED_IDENTIFIER : [
575+ DataDriven .newInstance,
569576 ImportLibrary .forExtension,
570577 ImportLibrary .forFunction,
571578 ImportLibrary .forTopLevelVariable,
@@ -579,6 +586,10 @@ class FixProcessor extends BaseProcessor {
579586 CompileTimeErrorCode .UNDEFINED_NAMED_PARAMETER : [
580587 ChangeArgumentName .newInstance,
581588 ],
589+ CompileTimeErrorCode .UNDEFINED_SETTER : [
590+ DataDriven .newInstance,
591+ // TODO(brianwilkerson) Support ImportLibrary
592+ ],
582593 CompileTimeErrorCode .WRONG_NUMBER_OF_TYPE_ARGUMENTS : [
583594 DataDriven .newInstance,
584595 ],
@@ -597,6 +608,9 @@ class FixProcessor extends BaseProcessor {
597608 HintCode .DEPRECATED_MEMBER_USE_WITH_MESSAGE : [
598609 DataDriven .newInstance,
599610 ],
611+ HintCode .OVERRIDE_ON_NON_OVERRIDING_METHOD : [
612+ DataDriven .newInstance,
613+ ],
600614 HintCode .SDK_VERSION_ASYNC_EXPORTED_FROM_CORE : [
601615 ImportLibrary .dartAsync,
602616 ],
0 commit comments