1 instantiation of CSharpCodeGenerationContextInfo
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationContextInfo.cs (1)
35=> (Context == value) ? this : new(value, Options, Service, LanguageVersion);
117 references to CSharpCodeGenerationContextInfo
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (117)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (3)
24CSharpCodeGenerationContextInfo info, 50AttributeData attribute, SyntaxToken? target, CSharpCodeGenerationContextInfo info) 62private static AttributeSyntax? TryGenerateAttribute(AttributeData attribute, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (4)
29CSharpCodeGenerationContextInfo info, 45CSharpCodeGenerationContextInfo info, 72CSharpCodeGenerationContextInfo info, ConstructorDeclarationSyntax declaration, CancellationToken cancellationToken) 117private static SyntaxTokenList GenerateModifiers(IMethodSymbol constructor, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConversionGenerator.cs (4)
24CSharpCodeGenerationContextInfo info, 37CSharpCodeGenerationContextInfo info, 48CSharpCodeGenerationContextInfo info, 85CSharpCodeGenerationContextInfo info, ConversionOperatorDeclarationSyntax declaration, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationContextInfo.cs (1)
34public new CSharpCodeGenerationContextInfo WithContext(CodeGenerationContext value)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (4)
39CSharpCodeGenerationContextInfo info, 172CSharpCodeGenerationContextInfo info, 249CSharpCodeGenerationContextInfo info, 269public static T? GetReuseableSyntaxNodeForSymbol<T>(ISymbol symbol, CSharpCodeGenerationContextInfo info) where T : SyntaxNode
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (28)
29: AbstractCodeGenerationService<CSharpCodeGenerationContextInfo>(languageServices) 37public override CSharpCodeGenerationContextInfo GetInfo(CodeGenerationContext context, CodeGenerationOptions options, ParseOptions parseOptions) 90protected override TDeclarationNode AddEvent<TDeclarationNode>(TDeclarationNode destination, IEventSymbol @event, CSharpCodeGenerationContextInfo info, IList<bool>? availableIndices, CancellationToken cancellationToken) 97protected override TDeclarationNode AddField<TDeclarationNode>(TDeclarationNode destination, IFieldSymbol field, CSharpCodeGenerationContextInfo info, IList<bool>? availableIndices, CancellationToken cancellationToken) 115protected override TDeclarationNode AddMethod<TDeclarationNode>(TDeclarationNode destination, IMethodSymbol method, CSharpCodeGenerationContextInfo info, IList<bool>? availableIndices, CancellationToken cancellationToken) 141var csharpOptions = info; 189protected override TDeclarationNode AddProperty<TDeclarationNode>(TDeclarationNode destination, IPropertySymbol property, CSharpCodeGenerationContextInfo info, IList<bool>? availableIndices, CancellationToken cancellationToken) 247protected override TDeclarationNode AddNamedType<TDeclarationNode>(TDeclarationNode destination, INamedTypeSymbol namedType, CSharpCodeGenerationContextInfo info, IList<bool>? availableIndices, CancellationToken cancellationToken) 251var csharpInfo = info; 267protected override TDeclarationNode AddNamespace<TDeclarationNode>(TDeclarationNode destination, INamespaceSymbol @namespace, CSharpCodeGenerationContextInfo info, IList<bool>? availableIndices, CancellationToken cancellationToken) 284CSharpCodeGenerationContextInfo info, 320CSharpCodeGenerationContextInfo info, 369CSharpCodeGenerationContextInfo info, 384CSharpCodeGenerationContextInfo info, 480CSharpCodeGenerationContextInfo info, 532CSharpCodeGenerationContextInfo info, 659IEventSymbol @event, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 664public override SyntaxNode CreateFieldDeclaration(IFieldSymbol field, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 673IMethodSymbol method, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 691var csharpOptions = info; 722IPropertySymbol property, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 729INamedTypeSymbol namedType, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 735INamespaceSymbol @namespace, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 750public override TDeclarationNode UpdateDeclarationModifiers<TDeclarationNode>(TDeclarationNode declaration, IEnumerable<SyntaxToken> newModifiers, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 755public override TDeclarationNode UpdateDeclarationAccessibility<TDeclarationNode>(TDeclarationNode declaration, Accessibility newAccessibility, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 760private static SyntaxTokenList UpdateDeclarationAccessibility(SyntaxTokenList modifiersList, Accessibility newAccessibility, CSharpCodeGenerationContextInfo info) 776public override TDeclarationNode UpdateDeclarationType<TDeclarationNode>(TDeclarationNode declaration, ITypeSymbol newType, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 907public override TDeclarationNode UpdateDeclarationMembers<TDeclarationNode>(TDeclarationNode declaration, IList<ISymbol> newMembers, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\DestructorGenerator.cs (2)
27CSharpCodeGenerationContextInfo info, 42IMethodSymbol destructor, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (2)
24internal static EnumDeclarationSyntax AddEnumMemberTo(EnumDeclarationSyntax destination, IFieldSymbol enumMember, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 56CSharpCodeGenerationContextInfo info,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (9)
65CSharpCodeGenerationContextInfo info, 81CSharpCodeGenerationContextInfo info, 98IEventSymbol @event, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 115IEventSymbol @event, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info) 128IEventSymbol @event, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info) 143IEventSymbol @event, bool isExplicit, CSharpCodeGenerationContextInfo info) 160IEventSymbol @event, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info) 176CSharpCodeGenerationContextInfo info) 212IEventSymbol @event, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\FieldGenerator.cs (4)
57CSharpCodeGenerationContextInfo info, 73CSharpCodeGenerationContextInfo info, 88IFieldSymbol field, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 122private static SyntaxTokenList GenerateModifiers(IFieldSymbol field, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (12)
33CSharpCodeGenerationContextInfo info, 46CSharpCodeGenerationContextInfo info, 61CSharpCodeGenerationContextInfo info, 76CSharpCodeGenerationContextInfo info, 95CSharpCodeGenerationContextInfo info, 113CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 166CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 184CSharpCodeGenerationContextInfo info, MethodDeclarationSyntax methodDeclaration, CancellationToken cancellationToken) 202CSharpCodeGenerationContextInfo info, LocalFunctionStatementSyntax localFunctionDeclaration, CancellationToken cancellationToken) 220IMethodSymbol method, bool isExplicit, CSharpCodeGenerationContextInfo info) 317IMethodSymbol method, CSharpCodeGenerationContextInfo info) 323IMethodSymbol method, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (13)
29CSharpCodeGenerationContextInfo info, 43CSharpCodeGenerationContextInfo info, 58CSharpCodeGenerationContextInfo info, 71CSharpCodeGenerationContextInfo info, 103CSharpCodeGenerationContextInfo info, 143CSharpCodeGenerationContextInfo info, 154CSharpCodeGenerationContextInfo info) 184CSharpCodeGenerationContextInfo info) 228CSharpCodeGenerationContextInfo info) 246CSharpCodeGenerationContextInfo info) 261INamedTypeSymbol namedType, CSharpCodeGenerationContextInfo info) 269CSharpCodeGenerationContextInfo info) 311INamedTypeSymbol namedType, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (6)
28CSharpCodeGenerationContextInfo info, 48CSharpCodeGenerationContextInfo info, 70CSharpCodeGenerationContextInfo info, 89CSharpCodeGenerationContextInfo info, 100CSharpCodeGenerationContextInfo info) 123CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (4)
26CSharpCodeGenerationContextInfo info, 39CSharpCodeGenerationContextInfo info, 56CSharpCodeGenerationContextInfo info, OperatorDeclarationSyntax declaration, CancellationToken cancellationToken) 76CSharpCodeGenerationContextInfo info,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (5)
23CSharpCodeGenerationContextInfo info) 33CSharpCodeGenerationContextInfo info) 45CSharpCodeGenerationContextInfo info) 62internal static ParameterSyntax GetParameter(IParameterSymbol parameter, CSharpCodeGenerationContextInfo info, bool isExplicit, bool isFirstParam, bool seenOptional) 116IParameterSymbol parameter, bool isExplicit, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (14)
39CSharpCodeGenerationContextInfo info, 55CSharpCodeGenerationContextInfo info, 73CSharpCodeGenerationContextInfo info, 92CSharpCodeGenerationContextInfo info, 113CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 142IPropertySymbol property, bool isExplicit, CSharpCodeGenerationContextInfo info) 199CSharpCodeGenerationContextInfo info, PropertyDeclarationSyntax declaration, CancellationToken cancellationToken) 216CSharpCodeGenerationContextInfo info, IndexerDeclarationSyntax declaration, CancellationToken cancellationToken) 234CSharpCodeGenerationContextInfo info, AccessorDeclarationSyntax declaration, CancellationToken cancellationToken) 277CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 296CSharpCodeGenerationContextInfo info, 310CSharpCodeGenerationContextInfo info, 343CSharpCodeGenerationContextInfo info) 361IPropertySymbol property, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\TypeParameterGenerator.cs (2)
19ImmutableArray<ITypeParameterSymbol> typeParameters, CSharpCodeGenerationContextInfo info) 27private static TypeParameterSyntax GenerateTypeParameter(ITypeParameterSymbol symbol, CSharpCodeGenerationContextInfo info)