11 overrides of WithRootAndOptions
Microsoft.CodeAnalysis.CSharp (3)
Syntax\CSharpSyntaxTree.Dummy.cs (1)
94public override SyntaxTree WithRootAndOptions(SyntaxNode root, ParseOptions options)
Syntax\CSharpSyntaxTree.LazySyntaxTree.cs (1)
109public override SyntaxTree WithRootAndOptions(SyntaxNode root, ParseOptions options)
Syntax\CSharpSyntaxTree.ParsedSyntaxTree.cs (1)
123public override SyntaxTree WithRootAndOptions(SyntaxNode root, ParseOptions options)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DeclarationTests.cs (1)
1006public override SyntaxTree WithRootAndOptions(SyntaxNode root, ParseOptions options)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\Mocks\MockCSharpSyntaxTree.cs (1)
58public override SyntaxTree WithRootAndOptions(SyntaxNode root, ParseOptions options)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.ParsedSyntaxTree.cs (1)
76public override SyntaxTree WithRootAndOptions(SyntaxNode root, ParseOptions options)
Microsoft.CodeAnalysis.VisualBasic (3)
Syntax\VisualBasicSyntaxTree.DummySyntaxTree.vb (1)
90Public Overrides Function WithRootAndOptions(root As SyntaxNode, options As ParseOptions) As SyntaxTree
Syntax\VisualBasicSyntaxTree.LazySyntaxTree.vb (1)
114Public Overrides Function WithRootAndOptions(root As SyntaxNode, options As ParseOptions) As SyntaxTree
Syntax\VisualBasicSyntaxTree.ParsedSyntaxTree.vb (1)
139Public Overrides Function WithRootAndOptions(root As SyntaxNode, options As ParseOptions) As SyntaxTree
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
ParserTestUtilities.vb (1)
549Public Overrides Function WithRootAndOptions(root As SyntaxNode, options As ParseOptions) As SyntaxTree
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Workspace\LanguageServices\VisualBasicSyntaxTreeFactoryService.ParsedSyntaxTree.vb (1)
76Public Overrides Function WithRootAndOptions(root As SyntaxNode, options As ParseOptions) As SyntaxTree
18 references to WithRootAndOptions
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNodeExtensions.cs (1)
436return node != null ? oldTree.WithRootAndOptions(node, oldTree.Options).GetRoot() : null;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
201var newTree = tree.WithRootAndOptions(newRoot, tree.Options);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
84var tree = node.SyntaxTree.WithRootAndOptions(node, syntaxTree.Options);
Microsoft.CodeAnalysis.CSharp.Features (1)
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
217var updatedSyntaxTree = semanticModel.SyntaxTree.WithRootAndOptions(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SyntaxTreeTests.cs (4)
90SyntaxTreeFactoryKind.ParsedTreeWithRootAndOptions => WithInitializedDirectives(SyntaxFactory.ParseSyntaxTree("", options: parseOptions)).WithRootAndOptions(root, parseOptions), 246var newTree = oldTree.WithRootAndOptions(newRoot, newOptions); 264var newTree = oldTree.WithRootAndOptions(newRoot, newOptions); 279var newTree = dummy.WithRootAndOptions(newRoot, newOptions);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
201var newTree = tree.WithRootAndOptions(newRoot, tree.Options);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
84var tree = node.SyntaxTree.WithRootAndOptions(node, syntaxTree.Options);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Helpers\RemoveUnnecessaryImports\VisualBasicUnnecessaryImportsProvider.vb (1)
76Dim updatedSyntaxTree = model.SyntaxTree.WithRootAndOptions(updatedRoot, model.SyntaxTree.Options)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (3)
Syntax\SyntaxTreeTests.vb (3)
113Dim newTree = oldTree.WithRootAndOptions(newRoot, newOptions) 130Dim newTree = oldTree.WithRootAndOptions(newRoot, newOptions) 145Dim newTree = dummy.WithRootAndOptions(newRoot, newOptions)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Helpers\RemoveUnnecessaryImports\VisualBasicUnnecessaryImportsProvider.vb (1)
76Dim updatedSyntaxTree = model.SyntaxTree.WithRootAndOptions(updatedRoot, model.SyntaxTree.Options)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SolutionTests\SolutionTests.cs (3)
3807var tree3 = tree.WithRootAndOptions(newRoot, tree.Options); 3818var tree4 = tree.WithRootAndOptions(tree.GetRoot(), newOptions); 3829Assert.Same(tree, tree.WithRootAndOptions(tree.GetRoot(), tree.Options));