1 instantiation of CodeGenerationMethodInfo
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodInfo.cs (1)
48
var info = new
CodeGenerationMethodInfo
(isNew, isUnsafe, isPartial, isAsync, statements, handlesExpressions);
20 references to CodeGenerationMethodInfo
Microsoft.CodeAnalysis.CodeStyle.Fixes (20)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (3)
170
CodeGenerationMethodInfo
.Attach(result, modifiers.IsNew, modifiers.IsUnsafe, modifiers.IsPartial, modifiers.IsAsync, statements, handlesExpressions);
217
CodeGenerationMethodInfo
.Attach(result, modifiers.IsNew, modifiers.IsUnsafe, modifiers.IsPartial, modifiers.IsAsync, statements, handlesExpressions: default);
262
CodeGenerationMethodInfo
.Attach(result, modifiers.IsNew, modifiers.IsUnsafe, modifiers.IsPartial, modifiers.IsAsync, statements, handlesExpressions: default);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodInfo.cs (10)
14
private static readonly ConditionalWeakTable<IMethodSymbol,
CodeGenerationMethodInfo
> s_methodToInfoMap = new();
48
var
info = new CodeGenerationMethodInfo(isNew, isUnsafe, isPartial, isAsync, statements, handlesExpressions);
52
private static
CodeGenerationMethodInfo
GetInfo(IMethodSymbol method)
54
s_methodToInfoMap.TryGetValue(method, out
var
info);
76
private static ImmutableArray<SyntaxNode> GetStatements(
CodeGenerationMethodInfo
info)
79
private static ImmutableArray<SyntaxNode> GetHandlesExpressions(
CodeGenerationMethodInfo
info)
82
private static bool GetIsNew(
CodeGenerationMethodInfo
info)
85
private static bool GetIsUnsafe(
CodeGenerationMethodInfo
info)
88
private static bool GetIsPartial(
CodeGenerationMethodInfo
info)
91
private static bool GetIsAsyncMethod(
CodeGenerationMethodInfo
info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (7)
66
CodeGenerationMethodInfo
.Attach(result,
67
CodeGenerationMethodInfo
.GetIsNew(this),
68
CodeGenerationMethodInfo
.GetIsUnsafe(this),
69
CodeGenerationMethodInfo
.GetIsPartial(this),
70
CodeGenerationMethodInfo
.GetIsAsyncMethod(this),
71
CodeGenerationMethodInfo
.GetStatements(this),
72
CodeGenerationMethodInfo
.GetHandlesExpressions(this));