1 instantiation of CodeGenerationConstructorInfo
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorInfo.cs (1)
46var info = new CodeGenerationConstructorInfo(isPrimaryConstructor, isUnsafe, typeName, statements, baseConstructorArguments, thisConstructorArguments);
26 references to CodeGenerationConstructorInfo
Microsoft.CodeAnalysis.CodeStyle.Fixes (18)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
131CodeGenerationConstructorInfo.Attach(result, isPrimaryConstructor, modifiers.IsUnsafe, typeName, statements, baseConstructorArguments, thisConstructorArguments);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorInfo.cs (10)
12private static readonly ConditionalWeakTable<IMethodSymbol, CodeGenerationConstructorInfo> s_constructorToInfoMap = new(); 46var info = new CodeGenerationConstructorInfo(isPrimaryConstructor, isUnsafe, typeName, statements, baseConstructorArguments, thisConstructorArguments); 50private static CodeGenerationConstructorInfo? GetInfo(IMethodSymbol method) 52s_constructorToInfoMap.TryGetValue(method, out var info); 74private static ImmutableArray<SyntaxNode> GetThisConstructorArgumentsOpt(CodeGenerationConstructorInfo? info) 77private static ImmutableArray<SyntaxNode> GetBaseConstructorArgumentsOpt(CodeGenerationConstructorInfo? info) 80private static ImmutableArray<SyntaxNode> GetStatements(CodeGenerationConstructorInfo? info) 83private static string GetTypeName(CodeGenerationConstructorInfo? info, IMethodSymbol constructor) 86private static bool GetIsUnsafe(CodeGenerationConstructorInfo? info) 89private static bool GetIsPrimaryConstructor(CodeGenerationConstructorInfo? info)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorSymbol.cs (7)
33CodeGenerationConstructorInfo.Attach(result, 34CodeGenerationConstructorInfo.GetIsPrimaryConstructor(this), 35CodeGenerationConstructorInfo.GetIsUnsafe(this), 36CodeGenerationConstructorInfo.GetTypeName(this), 37CodeGenerationConstructorInfo.GetStatements(this), 38CodeGenerationConstructorInfo.GetBaseConstructorArgumentsOpt(this), 39CodeGenerationConstructorInfo.GetThisConstructorArgumentsOpt(this));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (7)
59identifier: CodeGenerationConstructorInfo.GetTypeName(constructor).ToIdentifierToken(), 92var thisArguments = CodeGenerationConstructorInfo.GetThisConstructorArgumentsOpt(constructor); 94var arguments = !thisArguments.IsDefault ? thisArguments : CodeGenerationConstructorInfo.GetBaseConstructorArgumentsOpt(constructor); 95var kind = CodeGenerationConstructorInfo.GetThisConstructorArgumentsOpt(constructor) != null 110var statements = CodeGenerationConstructorInfo.GetStatements(constructor) == null 112: StatementGenerator.GenerateStatements(CodeGenerationConstructorInfo.GetStatements(constructor)); 130if (CodeGenerationConstructorInfo.GetIsUnsafe(constructor))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
114var primaryConstructor = members.OfType<IMethodSymbol>().FirstOrDefault(m => CodeGenerationConstructorInfo.GetIsPrimaryConstructor(m));