Skip to content

Commit

Permalink
Add analyzer plugin fix back
Browse files Browse the repository at this point in the history
  • Loading branch information
sydneyjodon-wk committed May 16, 2024
1 parent 45c4d3a commit 4966462
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,21 +205,20 @@ class MissingRequiredPropDiagnostic extends ComponentUsageDiagnosticContributor
continue;
}

// if(withNullability(result) || requiredness != PropRequiredness.late) {
if (withNullability(result) || requiredness != PropRequiredness.late) {
await collector.addErrorWithFix(
_codeForRequiredness(requiredness),
result.locationFor(usage.builder),
errorMessageArgs: ["'$name' from '${field.enclosingElement.name}'"],
fixKind: fixKind,
fixMessageArgs: [name],
computeFix: () => buildFileEdit(result, (builder) {
addProp(usage, builder, result.content, result.lineInfo, name: name,
buildValueEdit: (builder) {
addProp(usage, builder, result.content, result.lineInfo, name: name, buildValueEdit: (builder) {
builder.selectHere();
});
}),
);
// }
}
}

// Include debug info for each invocation ahout all the props and their requirednesses.
Expand Down

0 comments on commit 4966462

Please sign in to comment.