11 overrides of WithFilePath
Microsoft.CodeAnalysis.CSharp (3)
Syntax\CSharpSyntaxTree.Dummy.cs (1)
97public override SyntaxTree WithFilePath(string path)
Syntax\CSharpSyntaxTree.LazySyntaxTree.cs (1)
128public override SyntaxTree WithFilePath(string path)
Syntax\CSharpSyntaxTree.ParsedSyntaxTree.cs (1)
142public override SyntaxTree WithFilePath(string path)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DeclarationTests.cs (1)
488public override SyntaxTree WithFilePath(string path)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\Mocks\MockCSharpSyntaxTree.cs (1)
61public override SyntaxTree WithFilePath(string path)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.ParsedSyntaxTree.cs (1)
73public override SyntaxTree WithFilePath(string path)
Microsoft.CodeAnalysis.VisualBasic (3)
Syntax\VisualBasicSyntaxTree.DummySyntaxTree.vb (1)
94Public Overrides Function WithFilePath(path As String) As SyntaxTree
Syntax\VisualBasicSyntaxTree.LazySyntaxTree.vb (1)
131Public Overrides Function WithFilePath(path As String) As SyntaxTree
Syntax\VisualBasicSyntaxTree.ParsedSyntaxTree.vb (1)
156Public Overrides Function WithFilePath(path As String) As SyntaxTree
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
ParserTestUtilities.vb (1)
553Public Overrides Function WithFilePath(path As String) As SyntaxTree
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Workspace\LanguageServices\VisualBasicSyntaxTreeFactoryService.ParsedSyntaxTree.vb (1)
77Public Overrides Function WithFilePath(path As String) As SyntaxTree
12 references to WithFilePath
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Syntax\SyntaxTreeTests.cs (5)
89SyntaxTreeFactoryKind.ParsedTreeWithPath => WithInitializedDirectives(CSharpSyntaxTree.Create(root, options: parseOptions, path: "old path", Encoding.UTF8)).WithFilePath("new path"), 288var newTree = oldTree.WithFilePath("new.cs"); 304var newTree = oldTree.WithFilePath("new.cs"); 328Assert.Equal(string.Empty, oldTree.WithFilePath(null).FilePath); 330Assert.Equal(string.Empty, oldTree.WithFilePath(null).FilePath);
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
Syntax\SyntaxTreeTests.vb (4)
153Dim newTree = oldTree.WithFilePath("new.vb") 167Dim newTree = oldTree.WithFilePath("new.vb") 189Assert.Equal(String.Empty, oldTree.WithFilePath(Nothing).FilePath) 191Assert.Equal(String.Empty, oldTree.WithFilePath(Nothing).FilePath)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SolutionTests\SolutionTests.cs (3)
2603Assert.Same(tree, tree.WithFilePath(tree.FilePath)); 3141var tree2 = tree.WithFilePath("new path"); 3152Assert.Same(tree, tree.WithFilePath("old path"));