3 references to GetExplicitlyDeclaredInstanceConstructors
System.Text.Json.SourceGeneration (3)
Helpers\RoslynExtensions.cs (1)
112
constructorInfo = namedType.
GetExplicitlyDeclaredInstanceConstructors
().FirstOrDefault(ctor => ctor.DeclaredAccessibility is Accessibility.Public && ctor.Parameters.Length == 0);
JsonSourceGenerator.Parser.cs (2)
1730
IMethodSymbol[] publicCtors = namedType.
GetExplicitlyDeclaredInstanceConstructors
().Where(ctor => ctor.DeclaredAccessibility is Accessibility.Public).ToArray();
1756
foreach (IMethodSymbol constructor in namedType.
GetExplicitlyDeclaredInstanceConstructors
().Where(ctor => ctor.DeclaredAccessibility is not Accessibility.Public))