12 references to ReplaceWithTrivia
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
CodeGeneration\CSharpSyntaxGenerator.cs (12)
1930BaseTypeDeclarationSyntax typeDeclaration => ReplaceWithTrivia(declaration, typeDeclaration.Identifier, id),
1931DelegateDeclarationSyntax delegateDeclaration => ReplaceWithTrivia(declaration, delegateDeclaration.Identifier, id),
1932MethodDeclarationSyntax methodDeclaration => ReplaceWithTrivia(declaration, methodDeclaration.Identifier, id),
1935ReplaceWithTrivia(declaration, fieldDeclaration.Declaration.Variables[0].Identifier, id),
1937PropertyDeclarationSyntax propertyDeclaration => ReplaceWithTrivia(declaration, propertyDeclaration.Identifier, id),
1938EnumMemberDeclarationSyntax enumMemberDeclaration => ReplaceWithTrivia(declaration, enumMemberDeclaration.Identifier, id),
1939EventDeclarationSyntax eventDeclaration => ReplaceWithTrivia(declaration, eventDeclaration.Identifier, id),
1942ParameterSyntax parameter => ReplaceWithTrivia(declaration, parameter.Identifier, id),
1945ReplaceWithTrivia(declaration, localDeclaration.Declaration.Variables[0].Identifier, id),
1947TypeParameterSyntax typeParameter => ReplaceWithTrivia(declaration, typeParameter.Identifier, id),
1955ReplaceWithTrivia(declaration, variableDeclaration.Variables[0].Identifier, id),
1957VariableDeclaratorSyntax variableDeclarator => ReplaceWithTrivia(declaration, variableDeclarator.Identifier, id),