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\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
15protected abstract SyntaxNode CreateExplicitlyCastedLiteralValue(SyntaxGenerator generator, INamedTypeSymbol enumType, SpecialType underlyingSpecialType, object constantValue);
18public SyntaxNode CreateEnumConstantValue(SyntaxGenerator generator, INamedTypeSymbol enumType, object constantValue)
63private SyntaxNode CreateFlagsEnumConstantValue(SyntaxGenerator generator, INamedTypeSymbol enumType, object constantValue)
74SyntaxGenerator generator,
141SyntaxGenerator generator, IFieldSymbol field, INamedTypeSymbol enumType, SpecialType underlyingSpecialType)
188private SyntaxNode CreateNonFlagsEnumConstantValue(SyntaxGenerator generator, INamedTypeSymbol enumType, object constantValue)
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,
103this SyntaxGenerator generator, IMethodSymbol method, ISymbol throughMember)
118this SyntaxGenerator generator, ISymbol member, ISymbol throughMember)
182static SyntaxNode GenerateContainerName(SyntaxGenerator factory, ISymbol throughMember)
192this SyntaxGenerator generator, Compilation compilation,
216this SyntaxGenerator generator, Compilation compilation,
316this SyntaxGenerator factory,
367this SyntaxGenerator factory,
407this SyntaxGenerator factory, Compilation compilation, IParameterSymbol parameter, SyntaxNode fieldAccess)
416public static SyntaxNode CreateThrowArgumentNullExpression(this SyntaxGenerator factory, Compilation compilation, IParameterSymbol parameter)
419private static SyntaxNode CreateNewArgumentNullException(SyntaxGenerator factory, Compilation compilation, IParameterSymbol parameter)
429this SyntaxGenerator factory,
441this SyntaxGenerator factory, SyntaxGeneratorInternal generatorInternal, SemanticModel semanticModel, string identifierName)
451public 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,
383private TStatementSyntax CreateNullCheckStatement(SemanticModel semanticModel, SyntaxGenerator generator, IParameterSymbol parameter, TSimplifierOptions options)
390Compilation compilation, SyntaxGenerator generator, IParameterSymbol parameter, string methodName, TSimplifierOptions options)
519var generator = SyntaxGenerator.GetGenerator(document);
539Compilation compilation, SyntaxGenerator generator, Type type)
553Compilation compilation, SyntaxGenerator generator, IParameterSymbol parameter)
561Compilation compilation, SyntaxGenerator generator, IParameterSymbol parameter, string methodName)
612private 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,