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);
115 references to CSharpCodeGenerationContextInfo
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (115)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (3)
23CSharpCodeGenerationContextInfo info, 49AttributeData attribute, SyntaxToken? target, CSharpCodeGenerationContextInfo info) 61private 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, 86CSharpCodeGenerationContextInfo 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, 367CSharpCodeGenerationContextInfo info, 382CSharpCodeGenerationContextInfo info, 478CSharpCodeGenerationContextInfo info, 530CSharpCodeGenerationContextInfo info, 635IEventSymbol @event, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 640public override SyntaxNode CreateFieldDeclaration(IFieldSymbol field, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 649IMethodSymbol method, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 667var csharpOptions = info; 698IPropertySymbol property, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 705INamedTypeSymbol namedType, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 711INamespaceSymbol @namespace, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 726public override TDeclarationNode UpdateDeclarationModifiers<TDeclarationNode>(TDeclarationNode declaration, IEnumerable<SyntaxToken> newModifiers, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 731public override TDeclarationNode UpdateDeclarationAccessibility<TDeclarationNode>(TDeclarationNode declaration, Accessibility newAccessibility, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 736private static SyntaxTokenList UpdateDeclarationAccessibility(SyntaxTokenList modifiersList, Accessibility newAccessibility, CSharpCodeGenerationContextInfo info) 752public override TDeclarationNode UpdateDeclarationType<TDeclarationNode>(TDeclarationNode declaration, ITypeSymbol newType, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 883public 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 (8)
65CSharpCodeGenerationContextInfo info, 81CSharpCodeGenerationContextInfo info, 98IEventSymbol @event, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 114IEventSymbol @event, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info) 127IEventSymbol @event, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info) 141IEventSymbol @event, CodeGenerationDestination destination, CSharpCodeGenerationContextInfo info) 157CSharpCodeGenerationContextInfo info) 193IEventSymbol @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)
32CSharpCodeGenerationContextInfo info, 45CSharpCodeGenerationContextInfo info, 60CSharpCodeGenerationContextInfo info, 75CSharpCodeGenerationContextInfo info, 94CSharpCodeGenerationContextInfo info, 112CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 141CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 159CSharpCodeGenerationContextInfo info, MethodDeclarationSyntax methodDeclaration, CancellationToken cancellationToken) 177CSharpCodeGenerationContextInfo info, LocalFunctionStatementSyntax localFunctionDeclaration, CancellationToken cancellationToken) 195IMethodSymbol method, CSharpCodeGenerationContextInfo info, bool isExplicit) 249IMethodSymbol method, CSharpCodeGenerationContextInfo info) 255IMethodSymbol 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)
24CSharpCodeGenerationContextInfo info) 34CSharpCodeGenerationContextInfo info) 46CSharpCodeGenerationContextInfo info) 63internal static ParameterSyntax GetParameter(IParameterSymbol parameter, CSharpCodeGenerationContextInfo info, bool isExplicit, bool isFirstParam, bool seenOptional) 122IParameterSymbol parameter, bool isExplicit, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (13)
39CSharpCodeGenerationContextInfo info, 55CSharpCodeGenerationContextInfo info, 73CSharpCodeGenerationContextInfo info, 92CSharpCodeGenerationContextInfo info, 112CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 180CSharpCodeGenerationContextInfo info, PropertyDeclarationSyntax declaration, CancellationToken cancellationToken) 201CSharpCodeGenerationContextInfo info, IndexerDeclarationSyntax declaration, CancellationToken cancellationToken) 219CSharpCodeGenerationContextInfo info, AccessorDeclarationSyntax declaration, CancellationToken cancellationToken) 262CSharpCodeGenerationContextInfo info, CancellationToken cancellationToken) 281CSharpCodeGenerationContextInfo info, 295CSharpCodeGenerationContextInfo info, 328CSharpCodeGenerationContextInfo info) 346IPropertySymbol 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)