diff --git a/VContainer.SourceGenerator/Emitter.cs b/VContainer.SourceGenerator/Emitter.cs index da810017..dfe52f54 100644 --- a/VContainer.SourceGenerator/Emitter.cs +++ b/VContainer.SourceGenerator/Emitter.cs @@ -132,7 +132,9 @@ static bool TryEmitInjectMethod( // verify property foreach (var propSymbol in typeMeta.InjectProperties) { - if (propSymbol.SetMethod == null || !propSymbol.SetMethod.IsInitOnly || !propSymbol.SetMethod.CanBeCallFromInternal()) + if (propSymbol.SetMethod == null || + propSymbol.SetMethod.IsInitOnly || + !propSymbol.SetMethod.CanBeCallFromInternal()) { context.ReportDiagnostic(Diagnostic.Create( DiagnosticDescriptors.PrivatePropertyNotSupported,