1 instantiation of CodeGenerationMethodInfo
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodInfo.cs (1)
48var info = new CodeGenerationMethodInfo(isNew, isUnsafe, isPartial, isAsync, statements, handlesExpressions);
29 references to CodeGenerationMethodInfo
Microsoft.CodeAnalysis.CodeStyle.Fixes (20)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (3)
165CodeGenerationMethodInfo.Attach(result, modifiers.IsNew, modifiers.IsUnsafe, modifiers.IsPartial, modifiers.IsAsync, statements, handlesExpressions); 212CodeGenerationMethodInfo.Attach(result, modifiers.IsNew, modifiers.IsUnsafe, modifiers.IsPartial, modifiers.IsAsync, statements, handlesExpressions: default); 257CodeGenerationMethodInfo.Attach(result, modifiers.IsNew, modifiers.IsUnsafe, modifiers.IsPartial, modifiers.IsAsync, statements, handlesExpressions: default);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodInfo.cs (10)
14private static readonly ConditionalWeakTable<IMethodSymbol, CodeGenerationMethodInfo> s_methodToInfoMap = new(); 48var info = new CodeGenerationMethodInfo(isNew, isUnsafe, isPartial, isAsync, statements, handlesExpressions); 52private static CodeGenerationMethodInfo GetInfo(IMethodSymbol method) 54s_methodToInfoMap.TryGetValue(method, out var info); 76private static ImmutableArray<SyntaxNode> GetStatements(CodeGenerationMethodInfo info) 79private static ImmutableArray<SyntaxNode> GetHandlesExpressions(CodeGenerationMethodInfo info) 82private static bool GetIsNew(CodeGenerationMethodInfo info) 85private static bool GetIsUnsafe(CodeGenerationMethodInfo info) 88private static bool GetIsPartial(CodeGenerationMethodInfo info) 91private static bool GetIsAsyncMethod(CodeGenerationMethodInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (7)
61CodeGenerationMethodInfo.Attach(result, 62CodeGenerationMethodInfo.GetIsNew(this), 63CodeGenerationMethodInfo.GetIsUnsafe(this), 64CodeGenerationMethodInfo.GetIsPartial(this), 65CodeGenerationMethodInfo.GetIsAsyncMethod(this), 66CodeGenerationMethodInfo.GetStatements(this), 67CodeGenerationMethodInfo.GetHandlesExpressions(this));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (9)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
197StatementGenerator.GenerateStatements(CodeGenerationMethodInfo.GetStatements(accessor)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (6)
336if (CodeGenerationMethodInfo.GetIsUnsafe(method)) 379if (CodeGenerationMethodInfo.GetIsPartial(method) && !method.IsAsync) 388if (CodeGenerationMethodInfo.GetIsUnsafe(method)) 391if (CodeGenerationMethodInfo.GetIsNew(method)) 397if (CodeGenerationMethodInfo.GetIsAsyncMethod(method)) 401if (CodeGenerationMethodInfo.GetIsPartial(method) && method.IsAsync)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
326StatementGenerator.GenerateStatements(CodeGenerationMethodInfo.GetStatements(accessor)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\StatementGenerator.cs (1)
20StatementGenerator.GenerateStatements(CodeGenerationMethodInfo.GetStatements(method)));