1 instantiation of CodeGenerationConstructorInfo
Microsoft.CodeAnalysis.Workspaces (1)
CodeGenerationConstructorInfo.cs (1)
46var info = new CodeGenerationConstructorInfo(isPrimaryConstructor, isUnsafe, typeName, statements, baseConstructorArguments, thisConstructorArguments);
34 references to CodeGenerationConstructorInfo
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
ConstructorGenerator.cs (7)
58identifier: CodeGenerationConstructorInfo.GetTypeName(constructor).ToIdentifierToken(), 91var thisArguments = CodeGenerationConstructorInfo.GetThisConstructorArgumentsOpt(constructor); 93var arguments = !thisArguments.IsDefault ? thisArguments : CodeGenerationConstructorInfo.GetBaseConstructorArgumentsOpt(constructor); 94var kind = CodeGenerationConstructorInfo.GetThisConstructorArgumentsOpt(constructor) != null 109var statements = CodeGenerationConstructorInfo.GetStatements(constructor) == null 111: StatementGenerator.GenerateStatements(CodeGenerationConstructorInfo.GetStatements(constructor)); 129if (CodeGenerationConstructorInfo.GetIsUnsafe(constructor))
NamedTypeGenerator.cs (1)
109var primaryConstructor = members.OfType<IMethodSymbol>().FirstOrDefault(m => CodeGenerationConstructorInfo.GetIsPrimaryConstructor(m));
Microsoft.CodeAnalysis.VisualBasic.Workspaces (8)
CodeGeneration\ConstructorGenerator.vb (8)
59If CodeGenerationConstructorInfo.GetStatements(constructor).IsDefault AndAlso 60CodeGenerationConstructorInfo.GetBaseConstructorArgumentsOpt(constructor).IsDefault AndAlso 61CodeGenerationConstructorInfo.GetThisConstructorArgumentsOpt(constructor).IsDefault Then 66If Not CodeGenerationConstructorInfo.GetBaseConstructorArgumentsOpt(constructor).IsDefault Then 70If Not CodeGenerationConstructorInfo.GetThisConstructorArgumentsOpt(constructor).IsDefault Then 71statements.Add(CreateThisConstructorCall(CodeGenerationConstructorInfo.GetThisConstructorArgumentsOpt(constructor))) 74If Not CodeGenerationConstructorInfo.GetStatements(constructor).IsDefault Then 76CodeGenerationConstructorInfo.GetStatements(constructor)))
Microsoft.CodeAnalysis.Workspaces (18)
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)
CodeGenerationConstructorSymbol.cs (7)
45CodeGenerationConstructorInfo.Attach(result, 46CodeGenerationConstructorInfo.GetIsPrimaryConstructor(this), 47CodeGenerationConstructorInfo.GetIsUnsafe(this), 48CodeGenerationConstructorInfo.GetTypeName(this), 49CodeGenerationConstructorInfo.GetStatements(this), 50CodeGenerationConstructorInfo.GetBaseConstructorArgumentsOpt(this), 51CodeGenerationConstructorInfo.GetThisConstructorArgumentsOpt(this));
CodeGenerationSymbolFactory.cs (1)
135CodeGenerationConstructorInfo.Attach(result, isPrimaryConstructor, modifiers.IsUnsafe, typeName, statements, baseConstructorArguments, thisConstructorArguments);