src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (10)
26protected abstract SyntaxNode RemoveAsyncModifier(SyntaxGenerator generator, SyntaxNode methodLikeNode);
68var generator = editor.Generator;
120SyntaxGenerator generator,
166private static ControlFlowAnalysis? GetControlFlowAnalysis(SyntaxGenerator generator, SemanticModel semanticModel, SyntaxNode node)
177private static SyntaxNode AddReturnStatement(SyntaxGenerator generator, SyntaxNode node)
183SyntaxGenerator generator,
214private static SyntaxNode GetReturnTaskCompletedTaskStatement(SyntaxGenerator generator, ITypeSymbol returnType, KnownTaskTypes knownTypes)
231private static SyntaxNode WrapExpressionWithTaskFromResult(SyntaxGenerator generator, SyntaxNode expression, ITypeSymbol returnType, KnownTaskTypes knownTypes)
249private static SyntaxNode TypeExpressionForStaticMemberAccess(SyntaxGenerator generator, INamedTypeSymbol typeSymbol)
258static SyntaxNode QualifiedNameToMemberAccess(int qualifiedNameSyntaxKind, int memberAccessExpressionSyntaxKind, SyntaxNode expression, SyntaxGenerator generator)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (20)
31this SyntaxGenerator codeDefinitionFactory, Compilation compilation)
38this SyntaxGenerator codeDefinitionFactory, Compilation compilation)
44private static SyntaxNode CreateNewNotImplementedException(SyntaxGenerator codeDefinitionFactory, Compilation compilation)
56this SyntaxGenerator codeDefinitionFactory, Compilation compilation)
60this SyntaxGenerator factory,
67this SyntaxGenerator factory,
74this SyntaxGenerator factory,
102this SyntaxGenerator generator, IMethodSymbol method, ISymbol throughMember)
117this SyntaxGenerator generator, ISymbol member, ISymbol throughMember)
181static SyntaxNode GenerateContainerName(SyntaxGenerator factory, ISymbol throughMember)
191this SyntaxGenerator generator,
230this SyntaxGenerator generator,
343this SyntaxGenerator factory,
394this SyntaxGenerator factory,
434this SyntaxGenerator factory, Compilation compilation, IParameterSymbol parameter, SyntaxNode fieldAccess)
443public static SyntaxNode CreateThrowArgumentNullExpression(this SyntaxGenerator factory, Compilation compilation, IParameterSymbol parameter)
446private static SyntaxNode CreateNewArgumentNullException(SyntaxGenerator factory, Compilation compilation, IParameterSymbol parameter)
456this SyntaxGenerator factory,
468this SyntaxGenerator factory, SyntaxGeneratorInternal generatorInternal, SemanticModel semanticModel, string identifierName)
478public static SyntaxNode CreateThrowArgumentNullExceptionStatement(this SyntaxGenerator factory, Compilation compilation, IParameterSymbol parameter)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (7)
33this SyntaxGenerator factory,
65this SyntaxGenerator factory,
110SyntaxGenerator factory,
219SyntaxGenerator factory, SyntaxGeneratorInternal generatorInternal, Compilation compilation,
272SyntaxGenerator factory,
323SyntaxGenerator factory, SyntaxGeneratorInternal generatorInternal, Compilation compilation, ParseOptions parseOptions, SyntaxNode otherNameExpression, ArrayBuilder<SyntaxNode> expressions)
457this SyntaxGenerator factory,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (11)
36this SyntaxGenerator generator,
46this SyntaxGenerator generator,
57this SyntaxGenerator generator,
142SyntaxGenerator generator,
234SyntaxGenerator generator,
262private static SyntaxNode GetNegationOfIsPatternExpression(SyntaxNode isExpression, SyntaxGenerator generator, SyntaxGeneratorInternal generatorInternal, SemanticModel semanticModel, CancellationToken cancellationToken)
381SyntaxGenerator generator,
473SyntaxGenerator generator,
497SyntaxGenerator generator,
533SyntaxGenerator generator,
550SyntaxGenerator generator,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\IAddImportsService.cs (3)
29bool HasExistingImport(Compilation compilation, SyntaxNode root, SyntaxNode? contextLocation, SyntaxNode import, SyntaxGenerator generator);
39IEnumerable<SyntaxNode> newImports, SyntaxGenerator generator, AddImportPlacementOptions options, CancellationToken cancellationToken);
46SyntaxNode contextLocation, SyntaxNode newImport, SyntaxGenerator generator, AddImportPlacementOptions options,
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (4)
64SemanticModel semanticModel, SyntaxGenerator generator, GetAndSetMethods getAndSetMethods,
117SemanticModel semanticModel, SyntaxGenerator generator, GetAndSetMethods getAndSetMethods,
235SemanticModel semanticModel, SyntaxGenerator generator, GetAndSetMethods getAndSetMethods,
243SemanticModel semanticModel, SyntaxGenerator generator, GetAndSetMethods getAndSetMethods)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (13)
343var generator = project.Services.GetRequiredService<SyntaxGenerator>();
404SyntaxGenerator generator, string structName,
562var generator = SyntaxGenerator.GetGenerator(document);
717private SeparatedSyntaxList<TArgumentSyntax> ConvertArguments(SyntaxGenerator generator, NamingRule parameterNamingRule, bool isRecord, SeparatedSyntaxList<TArgumentSyntax> arguments)
720private SyntaxNodeOrTokenList ConvertArguments(SyntaxGenerator generator, NamingRule parameterNamingRule, bool isRecord, SyntaxNodeOrTokenList list)
723private SyntaxNodeOrToken ConvertArgumentOrToken(SyntaxGenerator generator, NamingRule parameterNamingRule, bool isRecord, SyntaxNodeOrToken arg)
729SyntaxGenerator generator, NamingRule parameterNamingRule, bool isRecord, TArgumentSyntax argument)
815var generator = SyntaxGenerator.GetGenerator(document);
854SemanticModel model, SyntaxGenerator generator,
880SyntaxGenerator generator, ArrayBuilder<ISymbol> members,
923ImmutableArray<IFieldSymbol> fields, SyntaxGenerator generator,
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (11)
143var generator = SyntaxGenerator.GetGenerator(document);
356Func<SemanticModel, SyntaxGenerator, TStatementSyntax> generateNullCheck,
385private TStatementSyntax CreateNullCheckStatement(SemanticModel semanticModel, SyntaxGenerator generator, IParameterSymbol parameter, TSimplifierOptions options)
392Compilation compilation, SyntaxGenerator generator, IParameterSymbol parameter, string methodName, TSimplifierOptions options)
521var generator = SyntaxGenerator.GetGenerator(document);
541Compilation compilation, SyntaxGenerator generator, Type type)
555Compilation compilation, SyntaxGenerator generator, IParameterSymbol parameter)
563Compilation compilation, SyntaxGenerator generator, IParameterSymbol parameter, string methodName)
614private static SyntaxNode InterpolatedStringText(SyntaxGenerator generator, string content, string value)
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (10)
26protected abstract SyntaxNode RemoveAsyncModifier(SyntaxGenerator generator, SyntaxNode methodLikeNode);
68var generator = editor.Generator;
120SyntaxGenerator generator,
166private static ControlFlowAnalysis? GetControlFlowAnalysis(SyntaxGenerator generator, SemanticModel semanticModel, SyntaxNode node)
177private static SyntaxNode AddReturnStatement(SyntaxGenerator generator, SyntaxNode node)
183SyntaxGenerator generator,
214private static SyntaxNode GetReturnTaskCompletedTaskStatement(SyntaxGenerator generator, ITypeSymbol returnType, KnownTaskTypes knownTypes)
231private static SyntaxNode WrapExpressionWithTaskFromResult(SyntaxGenerator generator, SyntaxNode expression, ITypeSymbol returnType, KnownTaskTypes knownTypes)
249private static SyntaxNode TypeExpressionForStaticMemberAccess(SyntaxGenerator generator, INamedTypeSymbol typeSymbol)
258static SyntaxNode QualifiedNameToMemberAccess(int qualifiedNameSyntaxKind, int memberAccessExpressionSyntaxKind, SyntaxNode expression, SyntaxGenerator generator)
ReplaceConditionalWithStatementsCodeRefactoringProvider\VisualBasicReplaceConditionalWithStatementsCodeRefactoringProvider.vb (1)
56generator As SyntaxGenerator,
src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
108g As SyntaxGenerator,