59 references to CodeGenerationContextInfo
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
CodeGeneration\CodeGenerationTests.cs (3)
93
var
info = testContext.Service.GetInfo(context ?? CodeGenerationContext.Default, options, root.SyntaxTree.Options);
314
var
info = testContext.Service.GetInfo(context ?? CodeGenerationContext.Default, options, oldSyntax.SyntaxTree.Options);
329
var
info = testContext.Service.GetInfo(context ?? CodeGenerationContext.Default, options, oldMemberSyntax.SyntaxTree.Options);
Microsoft.CodeAnalysis.Features (2)
PullMemberUp\MembersPuller.cs (2)
250
var
eventGenerationInfo = info.WithContext(new CodeGenerationContext(generateMethodBodies: false));
303
var
info = codeGenerationService.GetInfo(context, options.GenerationOptions, destinationEditor.OriginalDocument.Project.ParseOptions);
Microsoft.CodeAnalysis.Workspaces (54)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (25)
26
where TCodeGenerationContextInfo :
CodeGenerationContextInfo
43
CodeGenerationContextInfo
ICodeGenerationService.GetInfo(CodeGenerationContext context, CodeGenerationOptions options, ParseOptions parseOptions)
48
public TDeclarationNode AddEvent<TDeclarationNode>(TDeclarationNode destination, IEventSymbol @event,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode
51
public TDeclarationNode AddField<TDeclarationNode>(TDeclarationNode destination, IFieldSymbol field,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode
54
public TDeclarationNode AddMethod<TDeclarationNode>(TDeclarationNode destination, IMethodSymbol method,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode
57
public TDeclarationNode AddProperty<TDeclarationNode>(TDeclarationNode destination, IPropertySymbol property,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode
60
public TDeclarationNode AddNamedType<TDeclarationNode>(TDeclarationNode destination, INamedTypeSymbol namedType,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode
63
public TDeclarationNode AddNamespace<TDeclarationNode>(TDeclarationNode destination, INamespaceSymbol @namespace,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode
66
public TDeclarationNode AddMembers<TDeclarationNode>(TDeclarationNode destination, IEnumerable<ISymbol> members,
CodeGenerationContextInfo
info, CancellationToken cancellationToken)
70
private static TNode WithAnnotations<TNode>(TNode node,
CodeGenerationContextInfo
info) where TNode : SyntaxNode
77
public SyntaxNode CreateEventDeclaration(IEventSymbol @event, CodeGenerationDestination destination,
CodeGenerationContextInfo
info, CancellationToken cancellationToken)
80
public SyntaxNode CreateFieldDeclaration(IFieldSymbol field, CodeGenerationDestination destination,
CodeGenerationContextInfo
info, CancellationToken cancellationToken)
83
public SyntaxNode? CreateMethodDeclaration(IMethodSymbol method, CodeGenerationDestination destination,
CodeGenerationContextInfo
info, CancellationToken cancellationToken)
86
public SyntaxNode CreatePropertyDeclaration(IPropertySymbol property, CodeGenerationDestination destination,
CodeGenerationContextInfo
info, CancellationToken cancellationToken)
89
public SyntaxNode CreateNamedTypeDeclaration(INamedTypeSymbol namedType, CodeGenerationDestination destination,
CodeGenerationContextInfo
info, CancellationToken cancellationToken)
92
public SyntaxNode CreateNamespaceDeclaration(INamespaceSymbol @namespace, CodeGenerationDestination destination,
CodeGenerationContextInfo
info, CancellationToken cancellationToken)
95
public TDeclarationNode AddParameters<TDeclarationNode>(TDeclarationNode destination, IEnumerable<IParameterSymbol> parameters,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode
98
public TDeclarationNode AddAttributes<TDeclarationNode>(TDeclarationNode destination, IEnumerable<AttributeData> attributes, SyntaxToken? target,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode
101
public TDeclarationNode RemoveAttribute<TDeclarationNode>(TDeclarationNode destination, SyntaxNode attributeToRemove,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode
104
public TDeclarationNode RemoveAttribute<TDeclarationNode>(TDeclarationNode destination, AttributeData attributeToRemove,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode
107
public TDeclarationNode UpdateDeclarationModifiers<TDeclarationNode>(TDeclarationNode declaration, IEnumerable<SyntaxToken> newModifiers,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode
110
public TDeclarationNode UpdateDeclarationAccessibility<TDeclarationNode>(TDeclarationNode declaration, Accessibility newAccessibility,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode
113
public TDeclarationNode UpdateDeclarationType<TDeclarationNode>(TDeclarationNode declaration, ITypeSymbol newType,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode
116
public TDeclarationNode UpdateDeclarationMembers<TDeclarationNode>(TDeclarationNode declaration, IList<ISymbol> newMembers,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode
119
public TDeclarationNode AddStatements<TDeclarationNode>(TDeclarationNode destination, IEnumerable<SyntaxNode> statements,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationContextInfo.cs (2)
21
public
CodeGenerationContextInfo
WithContext(CodeGenerationContext value)
31
protected abstract
CodeGenerationContextInfo
WithContextImpl(CodeGenerationContext value);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (3)
48
CodeGenerationContextInfo
info,
178
public static T? GetReuseableSyntaxNodeForAttribute<T>(AttributeData attribute,
CodeGenerationContextInfo
info)
191
CodeGenerationContextInfo
info,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (1)
41
public static async ValueTask<
CodeGenerationContextInfo
> GetCodeGenerationInfoAsync(this Document document, CodeGenerationContext context, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\ICodeGenerationService.cs (23)
18
CodeGenerationContextInfo
GetInfo(CodeGenerationContext context, CodeGenerationOptions options, ParseOptions parseOptions);
23
SyntaxNode CreateEventDeclaration(IEventSymbol @event, CodeGenerationDestination destination,
CodeGenerationContextInfo
info, CancellationToken cancellationToken);
28
SyntaxNode CreateFieldDeclaration(IFieldSymbol field, CodeGenerationDestination destination,
CodeGenerationContextInfo
info, CancellationToken cancellationToken);
34
SyntaxNode? CreateMethodDeclaration(IMethodSymbol method, CodeGenerationDestination destination,
CodeGenerationContextInfo
info, CancellationToken cancellationToken);
39
SyntaxNode CreatePropertyDeclaration(IPropertySymbol property, CodeGenerationDestination destination,
CodeGenerationContextInfo
info, CancellationToken cancellationToken);
44
SyntaxNode CreateNamedTypeDeclaration(INamedTypeSymbol namedType, CodeGenerationDestination destination,
CodeGenerationContextInfo
info, CancellationToken cancellationToken);
49
SyntaxNode CreateNamespaceDeclaration(INamespaceSymbol @namespace, CodeGenerationDestination destination,
CodeGenerationContextInfo
info, CancellationToken cancellationToken);
54
TDeclarationNode AddEvent<TDeclarationNode>(TDeclarationNode destination, IEventSymbol @event,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;
59
TDeclarationNode AddField<TDeclarationNode>(TDeclarationNode destination, IFieldSymbol field,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;
64
TDeclarationNode AddMethod<TDeclarationNode>(TDeclarationNode destination, IMethodSymbol method,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;
69
TDeclarationNode AddProperty<TDeclarationNode>(TDeclarationNode destination, IPropertySymbol property,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;
74
TDeclarationNode AddNamedType<TDeclarationNode>(TDeclarationNode destination, INamedTypeSymbol namedType,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;
79
TDeclarationNode AddNamespace<TDeclarationNode>(TDeclarationNode destination, INamespaceSymbol @namespace,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;
84
TDeclarationNode AddMembers<TDeclarationNode>(TDeclarationNode destination, IEnumerable<ISymbol> members,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;
89
TDeclarationNode AddParameters<TDeclarationNode>(TDeclarationNode destination, IEnumerable<IParameterSymbol> parameters,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;
94
TDeclarationNode AddAttributes<TDeclarationNode>(TDeclarationNode destination, IEnumerable<AttributeData> attributes, SyntaxToken? target,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;
99
TDeclarationNode RemoveAttribute<TDeclarationNode>(TDeclarationNode destination, SyntaxNode attributeToRemove,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;
104
TDeclarationNode RemoveAttribute<TDeclarationNode>(TDeclarationNode destination, AttributeData attributeToRemove,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;
109
TDeclarationNode UpdateDeclarationModifiers<TDeclarationNode>(TDeclarationNode declaration, IEnumerable<SyntaxToken> newModifiers,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;
114
TDeclarationNode UpdateDeclarationAccessibility<TDeclarationNode>(TDeclarationNode declaration, Accessibility newAccessibility,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;
119
TDeclarationNode UpdateDeclarationType<TDeclarationNode>(TDeclarationNode declaration, ITypeSymbol newType,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;
124
TDeclarationNode UpdateDeclarationMembers<TDeclarationNode>(TDeclarationNode declaration, IList<ISymbol> newMembers,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;
129
TDeclarationNode AddStatements<TDeclarationNode>(TDeclarationNode destination, IEnumerable<SyntaxNode> statements,
CodeGenerationContextInfo
info, CancellationToken cancellationToken) where TDeclarationNode : SyntaxNode;