25 references to ReplaceWithTrivia
Microsoft.CodeAnalysis.CSharp.Workspaces (13)
CodeGeneration\CSharpSyntaxGenerator.cs (13)
1183
return
ReplaceWithTrivia
(declaration, list.Attributes[0], list.Attributes[0].WithArgumentList(argList));
1917
BaseNamespaceDeclarationSyntax namespaceDeclaration =>
ReplaceWithTrivia
(declaration, namespaceDeclaration.Name, this.DottedName(name)),
1918
UsingDirectiveSyntax usingDeclaration =>
ReplaceWithTrivia
(declaration, usingDeclaration.NamespaceOrType, this.DottedName(name)),
1927
ReplaceWithTrivia
(declaration, attributeList.Attributes[0].Name, this.DottedName(name)),
1929
AttributeSyntax attribute =>
ReplaceWithTrivia
(declaration, attribute.Name, this.DottedName(name)),
2318
return
ReplaceWithTrivia
(pd, pd.ExpressionBody.Expression, expr);
2327
return
ReplaceWithTrivia
(id, id.ExpressionBody.Expression, expr);
2336
return
ReplaceWithTrivia
(method, method.ExpressionBody.Expression, expr);
2345
return
ReplaceWithTrivia
(local, local.ExpressionBody.Expression, expr);
2361
return
ReplaceWithTrivia
(declaration, eq.Value, expr);
2423
return
ReplaceWithTrivia
(declaration, fd.Declaration.Variables[0], fd.Declaration.Variables[0].WithInitializer(initializer));
2434
return
ReplaceWithTrivia
(declaration, ld.Declaration.Variables[0], ld.Declaration.Variables[0].WithInitializer(initializer));
2442
return
ReplaceWithTrivia
(declaration, vd.Variables[0], vd.Variables[0].WithInitializer(initializer));
Microsoft.CodeAnalysis.VisualBasic.Workspaces (11)
CodeGeneration\VisualBasicSyntaxGenerator.vb (11)
1891
Return
ReplaceWithTrivia
(declaration, fd.Declarators(0), fd.Declarators(0).WithNames(SyntaxFactory.SingletonSeparatedList(variable)))
1894
Return
ReplaceWithTrivia
(declaration, ld.Declarators(0), ld.Declarators(0).WithNames(SyntaxFactory.SingletonSeparatedList(variable)))
2022
Return
ReplaceWithTrivia
(declaration, DirectCast(declaration, NamespaceBlockSyntax).NamespaceStatement.Name, Me.DottedName(name))
2034
Return
ReplaceWithTrivia
(declaration, DirectCast(declaration, AttributeSyntax).Name, Me.DottedName(name))
2038
Return
ReplaceWithTrivia
(declaration, al.Attributes(0).Name, Me.DottedName(name))
2046
Return
ReplaceWithTrivia
(declaration, DirectCast(clause, SimpleImportsClauseSyntax).Name, Me.DottedName(name))
2156
Return
ReplaceWithTrivia
(declaration, fd.Declarators(0), fd.Declarators(0).WithAsClause(asClause))
2175
Return
ReplaceWithTrivia
(declaration, ld.Declarators(0), ld.Declarators(0).WithAsClause(asClause))
2830
Return
ReplaceWithTrivia
(declaration, ld.Declarators(0), ld.Declarators(0).WithInitializer(ev))
2835
Return
ReplaceWithTrivia
(declaration, fd.Declarators(0), fd.Declarators(0).WithInitializer(ev))
3230
Return
ReplaceWithTrivia
(declaration, al.Attributes(0), al.Attributes(0).WithArgumentList(argumentList))
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxGenerator.cs (1)
1495
return
ReplaceWithTrivia
(root, original, replacer(original));