Skip to content

Commit

Permalink
Exclude readonly properties (#52)
Browse files Browse the repository at this point in the history
* Exclude readonly properties
* `interface` can have readonly property
  • Loading branch information
viceroypenguin authored Jun 3, 2024
1 parent a75389f commit c6fd417
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ or IMethodSymbol
continue;
}

if (symbol.TypeKind is not TypeKind.Interface && property.SetMethod is null)
continue;

token.ThrowIfCancellationRequested();

if (GetPropertyValidations(
Expand Down

0 comments on commit c6fd417

Please sign in to comment.