56 references to CopyAnnotationsTo
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplificationHelpers.cs (1)
31to = from.CopyAnnotationsTo(to);
Microsoft.CodeAnalysis.CSharp.Features (1)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
141return container.CopyAnnotationsTo(callSiteGenerator.Generate()).WithAdditionalAnnotations(Formatter.Annotation);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SyntaxAnnotationTests.cs (4)
55var annotatedNode = fromNode.CopyAnnotationsTo(toNode); 64var annotatedNode = fromNode.CopyAnnotationsTo(toNode); 441var newNode = sourceTreeNodeOrTokenEnumerator.Current.AsNode().CopyAnnotationsTo(oldNode); 829return _nodeOrTokenMap[node].AsNode().CopyAnnotationsTo(base.Visit(node));
Microsoft.CodeAnalysis.CSharp.Workspaces (23)
Simplification\CSharpSimplificationService.Expander.cs (15)
388return node.CopyAnnotationsTo(newNode); 399return node.CopyAnnotationsTo(QualifiedCref( 410return node.CopyAnnotationsTo(TypeCref( 528replacement = newNode.CopyAnnotationsTo(replacement); 703newNode = newNode.CopyAnnotationsTo( 758genericName = newNode.CopyAnnotationsTo(genericName); 916return rewrittenNode.CopyAnnotationsTo( 957result = rewrittenNode.CopyAnnotationsTo( 965result = rewrittenNode.CopyAnnotationsTo( 979result = rewrittenNode.CopyAnnotationsTo(QualifiedName((NameSyntax)left, right.WithAdditionalAnnotations(Simplifier.SpecialTypeAnnotation))); 984result = rewrittenNode.CopyAnnotationsTo(QualifiedName((NameSyntax)left, right)); 988result = rewrittenNode.CopyAnnotationsTo( 1112newMemberAccess = originalNode.Expression.CopyAnnotationsTo(newMemberAccess).WithAdditionalAnnotations(Simplifier.Annotation); 1117thisArgument = originalMemberAccess.Expression.CopyAnnotationsTo(thisArgument); 1125return originalNode.CopyAnnotationsTo(replacementNode)
Simplification\Reducers\CSharpNameReducer.cs (1)
61node = node.CopyAnnotationsTo(replacementNode).WithAdditionalAnnotations(Formatter.Annotation);
Simplification\Simplifiers\ExpressionSimplifier.cs (2)
160replacementNode = memberAccess.CopyAnnotationsTo(replacementNode); 161replacementNode = memberAccess.Name.CopyAnnotationsTo(replacementNode);
Simplification\Simplifiers\NameSimplifier.cs (3)
148replacementNode = annotatedNodeOrToken.AsNode().CopyAnnotationsTo(replacementNode); 161replacementNode = annotatedNodeOrToken.AsNode().CopyAnnotationsTo(replacementNode); 193replacementNode = replacementNode.CopyAnnotationsTo(replacementNodeWithoutAttributeSuffix);
Simplification\Simplifiers\QualifiedCrefSimplifier.cs (2)
55replacementNode = crefSyntax.CopyAnnotationsTo(replacementNode); 95replacement = crefSyntax.CopyAnnotationsTo(replacement);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (2)
93semanticRootOfOriginalExpr = asNewClauseNode.CopyAnnotationsTo(semanticRootOfOriginalExpr) 161nodeToSpeculate = asNewClauseNode.CopyAnnotationsTo(nodeToSpeculate)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.vb (1)
110Return container.CopyAnnotationsTo(callSiteGenerator.Generate()).WithAdditionalAnnotations(Formatter.Annotation)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
Syntax\SyntaxAnnotationTests.vb (4)
48Dim annotatedNode = fromNode.CopyAnnotationsTo(toNode) 56Dim annotatedNode = fromNode.CopyAnnotationsTo(toNode) 407Dim newNode = sourceTreeNodeOrTokenEnumerator.Current.AsNode().CopyAnnotationsTo(oldNode) 761Return Me._nodeOrTokenMap(node).AsNode().CopyAnnotationsTo(MyBase.Visit(node))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (19)
Simplification\Reducers\VisualBasicNameReducer.vb (1)
48node = node.CopyAnnotationsTo(replacementNode).WithAdditionalAnnotations(Formatter.Annotation)
Simplification\Reducers\VisualBasicVariableDeclaratorReducer.vb (1)
45replacementNode = node.CopyAnnotationsTo(replacementNode).WithAdditionalAnnotations(Formatter.Annotation)
Simplification\Simplifiers\NameSimplifier.vb (3)
90replacementNode = annotatedNodeOrToken.AsNode().CopyAnnotationsTo(replacementNode) 99replacementNode = annotatedNodeOrToken.AsNode().CopyAnnotationsTo(replacementNode) 123replacementNode = replacementNode.CopyAnnotationsTo(replacementNodeWithoutAttributeSuffix)
Simplification\VisualBasicSimplificationService.Expander.vb (11)
160callStatement = newExpressionStatement.CopyAnnotationsTo(callStatement) 258newMemberAccess = originalNode.Expression.CopyAnnotationsTo(newMemberAccess).WithAdditionalAnnotations(Simplifier.Annotation) 269thisArgument = DirectCast(originalNode.Expression, MemberAccessExpressionSyntax).Expression.CopyAnnotationsTo(thisArgument) 275Return originalNode.CopyAnnotationsTo(replacementNode).WithAdditionalAnnotations(Simplifier.Annotation) 537replacement = newNode.CopyAnnotationsTo(replacement) 556replacement = newNode.CopyAnnotationsTo(replacement) 696genericName = newNode.CopyAnnotationsTo(genericName) 756result = rewrittenNode.CopyAnnotationsTo( 764result = rewrittenNode.CopyAnnotationsTo( 776result = rewrittenNode.CopyAnnotationsTo(SyntaxFactory.QualifiedName(DirectCast(left, NameSyntax), right.WithAdditionalAnnotations(Simplifier.SpecialTypeAnnotation))) 778result = rewrittenNode.CopyAnnotationsTo(
Simplification\VisualBasicSimplificationService.vb (1)
122nodeToSpeculate = asNewClauseNode.CopyAnnotationsTo(nodeToSpeculate)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (2)
93semanticRootOfOriginalExpr = asNewClauseNode.CopyAnnotationsTo(semanticRootOfOriginalExpr) 161nodeToSpeculate = asNewClauseNode.CopyAnnotationsTo(nodeToSpeculate)
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplificationHelpers.cs (1)
31to = from.CopyAnnotationsTo(to);