12 references to ReplaceWithTrivia
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
CodeGeneration\CSharpSyntaxGenerator.cs (12)
1907BaseTypeDeclarationSyntax typeDeclaration => ReplaceWithTrivia(declaration, typeDeclaration.Identifier, id),
1908DelegateDeclarationSyntax delegateDeclaration => ReplaceWithTrivia(declaration, delegateDeclaration.Identifier, id),
1909MethodDeclarationSyntax methodDeclaration => ReplaceWithTrivia(declaration, methodDeclaration.Identifier, id),
1912ReplaceWithTrivia(declaration, fieldDeclaration.Declaration.Variables[0].Identifier, id),
1914PropertyDeclarationSyntax propertyDeclaration => ReplaceWithTrivia(declaration, propertyDeclaration.Identifier, id),
1915EnumMemberDeclarationSyntax enumMemberDeclaration => ReplaceWithTrivia(declaration, enumMemberDeclaration.Identifier, id),
1916EventDeclarationSyntax eventDeclaration => ReplaceWithTrivia(declaration, eventDeclaration.Identifier, id),
1919ParameterSyntax parameter => ReplaceWithTrivia(declaration, parameter.Identifier, id),
1922ReplaceWithTrivia(declaration, localDeclaration.Declaration.Variables[0].Identifier, id),
1924TypeParameterSyntax typeParameter => ReplaceWithTrivia(declaration, typeParameter.Identifier, id),
1932ReplaceWithTrivia(declaration, variableDeclaration.Variables[0].Identifier, id),
1934VariableDeclaratorSyntax variableDeclarator => ReplaceWithTrivia(declaration, variableDeclarator.Identifier, id),