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)
1011public 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)
87public 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)
88Public Overrides Function WithFilePath(path As String) As SyntaxTree
15 references to WithFilePath
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RuntimeViewCompiler.cs (1)
375var syntaxTree = _csharpCompiler.CreateSyntaxTree(sourceText).WithFilePath(assemblyName);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Syntax\SyntaxTreeTests.cs (6)
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"); 318var 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 (5)
Syntax\SyntaxTreeTests.vb (5)
153Dim newTree = oldTree.WithFilePath("new.vb") 167Dim newTree = oldTree.WithFilePath("new.vb") 180Dim 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)
3251Assert.Same(tree, tree.WithFilePath(tree.FilePath)); 3779var tree2 = tree.WithFilePath("new path"); 3790Assert.Same(tree, tree.WithFilePath("old path"));