11 overrides of FilePath
Microsoft.CodeAnalysis.CSharp (3)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.VisualBasic (3)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
572 references to FilePath
AnalyzerRunner (1)
BuildValidator (1)
IdeCoreBenchmarks (1)
Microsoft.CodeAnalysis (33)
Microsoft.CodeAnalysis.CodeStyle (9)
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp (24)
Syntax\CSharpSyntaxTree.cs (5)
579FilePath,
647=> new(FilePath, GetLinePosition(span.Start, cancellationToken), GetLinePosition(span.End, cancellationToken));
658/// otherwise it's <see cref="SyntaxTree.FilePath"/>.
666=> GetDirectiveMap().TranslateSpan(GetText(cancellationToken), this.FilePath, span);
688=> GetDirectiveMap().TranslateSpanAndVisibility(GetText(), FilePath, span, out isHiddenPosition);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
Diagnostics\DiagnosticAnalyzerTests.cs (5)
1014string.Format(CodeAnalysisResources.InvalidDiagnosticLocationReported, AnalyzerWithInvalidDiagnosticLocation.Descriptor.Id, treeInAnotherCompilation.FilePath), "diagnostic").Message;
1107string.Format(CodeAnalysisResources.InvalidDiagnosticSpanReported, AnalyzerWithInvalidDiagnosticSpan.Descriptor.Id, badSpan, treeInAnotherCompilation.FilePath), "diagnostic").Message;
1584diagnosticArgument = tree.FilePath;
1590AddExpectedNonLocalDiagnostic(builder, GeneratedCodeAnalyzer.Summary, "PartialType(IsGeneratedCode:False)", $"{compilation.SyntaxTrees[0].FilePath}(IsGeneratedCode:False)");
1707var files = compilation.SyntaxTrees.Select(t => t.FilePath).ToImmutableArray();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (56)
SourceGeneration\SyntaxAwareGeneratorTests.cs (55)
879Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
880Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
881Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
925Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
926Assert.EndsWith("classC.cs", results.GeneratedTrees[1].FilePath);
927Assert.EndsWith("classD.cs", results.GeneratedTrees[2].FilePath);
971Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
972Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
973Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
982Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
983Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
984Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
993Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
994Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
995Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
1038Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
1039Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
1040Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
1056Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
1057Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
1058Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
1059Assert.EndsWith("fieldD.cs", results.GeneratedTrees[3].FilePath);
1060Assert.EndsWith("fieldE.cs", results.GeneratedTrees[4].FilePath);
1113Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
1114Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
1115Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
1116Assert.EndsWith("fieldD.cs", results.GeneratedTrees[3].FilePath);
1117Assert.EndsWith("fieldE.cs", results.GeneratedTrees[4].FilePath);
1137Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
1138Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
1139Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
1245Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
1246Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
1247Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
1274Assert.EndsWith("fieldD.cs", results.GeneratedTrees[0].FilePath);
1275Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
1276Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
1328Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
1329Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
1330Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
1341Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
1342Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
1343Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
1354Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
1355Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
1356Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
1416Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
1417Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
1418Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
1446Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
1447Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
1448Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
1479Assert.EndsWith("fieldA.cs", results.GeneratedTrees[0].FilePath);
1480Assert.EndsWith("fieldB.cs", results.GeneratedTrees[1].FilePath);
1481Assert.EndsWith("fieldC.cs", results.GeneratedTrees[2].FilePath);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Compilation\UsedAssembliesTests.cs (3)
164yield return (comp.ReplaceSyntaxTree(tree, CSharpTestBase.Parse(builder.ToString(), tree.FilePath, (CSharpParseOptions)tree.Options)), before, after);
192yield return (comp.ReplaceSyntaxTree(tree, CSharpTestBase.Parse(builder.ToString(), tree.FilePath, parseOptions)), before, after);
203yield return (comp.ReplaceSyntaxTree(tree, CSharpTestBase.Parse(builder.ToString(), tree.FilePath, parseOptions)).
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (9)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.Features (21)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.UnitTests (8)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.Rebuild.UnitTests (3)
Microsoft.CodeAnalysis.Test.Utilities (12)
Microsoft.CodeAnalysis.VisualBasic (27)
Compilation\SemanticModel.vb (17)
3580Return String.Format("{0}: at {1}", Me.SyntaxTree.FilePath, position)
3584If node Is Nothing Then Return Me.SyntaxTree.FilePath
3585Return String.Format("{0}: {1} ({2})", Me.SyntaxTree.FilePath, node.Kind.ToString(), node.Position)
3589If node Is Nothing Then Return Me.SyntaxTree.FilePath
3590Return String.Format("{0}: {1} ({2}) at {3}", Me.SyntaxTree.FilePath, node.Kind.ToString(), node.Position, position)
3594If firstStatement Is Nothing OrElse lastStatement Is Nothing Then Return Me.SyntaxTree.FilePath
3595Return String.Format("{0}: {1} to {2}", Me.SyntaxTree.FilePath, firstStatement.Position, lastStatement.EndPosition)
3599If expression Is Nothing OrElse type Is Nothing Then Return Me.SyntaxTree.FilePath
3600Return String.Format("{0}: {1} ({2}) -> {3} {4}", Me.SyntaxTree.FilePath, expression.Kind.ToString(), expression.Position, type.TypeKind.ToString(), type.Name)
3604If expression Is Nothing OrElse type Is Nothing Then Return Me.SyntaxTree.FilePath
3605Return String.Format("{0}: {1} ({2}) -> {3} {4} at {5}", Me.SyntaxTree.FilePath, expression.Kind.ToString(), expression.Position, type.TypeKind.ToString(), type.Name, position)
3609If expression Is Nothing Then Return Me.SyntaxTree.FilePath
3610Return String.Format("{0}: {1} ({2}) at {3} ({4})", Me.SyntaxTree.FilePath, expression.Kind.ToString(), expression.Position, position, [option].ToString())
3614Return String.Format("{0}: {1} at {2} ({3})", Me.SyntaxTree.FilePath, name, position, [option].ToString())
3618If symbol Is Nothing Then Return Me.SyntaxTree.FilePath
3619Return String.Format("{0}: {1} {2} at {3}", Me.SyntaxTree.FilePath, symbol.Kind.ToString(), symbol.Name, position)
3623Return String.Format("{0} ({1})", Me.SyntaxTree.FilePath, stage.ToString())
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (229)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (27)
SymbolsTests\Source\SourceSymbolTests.vb (22)
337Order By l.SourceTree.FilePath
340Assert.Equal("a.vb", locs(0).SourceTree.FilePath)
342Assert.Equal("b.vb", locs(1).SourceTree.FilePath)
346Order By l.SourceTree.FilePath
349Assert.Equal("a.vb", locs(0).SourceTree.FilePath)
351Assert.Equal("b.vb", locs(1).SourceTree.FilePath)
355Order By l.SourceTree.FilePath
358Assert.Equal("a.vb", locs(0).SourceTree.FilePath)
360Assert.Equal("b.vb", locs(1).SourceTree.FilePath)
366Assert.Equal("a.vb", locs(0).SourceTree.FilePath)
372Assert.Equal("a.vb", locs(0).SourceTree.FilePath)
378Assert.Equal("a.vb", locs(0).SourceTree.FilePath)
382Order By l.SourceTree.FilePath
385Assert.Equal("a.vb", locs(0).SourceTree.FilePath)
387Assert.Equal("b.vb", locs(1).SourceTree.FilePath)
391Order By l.SourceTree.FilePath
394Assert.Equal("a.vb", locs(0).SourceTree.FilePath)
396Assert.Equal("b.vb", locs(1).SourceTree.FilePath)
400Order By l.SourceTree.FilePath
403Assert.Equal("a.vb", locs(0).SourceTree.FilePath)
405Assert.Equal("b.vb", locs(1).SourceTree.FilePath)
409Order By l.PossiblyEmbeddedOrMySourceTree.FilePath
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (9)
Syntax\SyntaxTreeTests.vb (7)
156Assert.Equal(newTree.FilePath, "new.vb")
170Assert.Equal(newTree.FilePath, "new.vb")
182Assert.Equal(newTree.FilePath, "new.vb")
189Assert.Equal(String.Empty, oldTree.WithFilePath(Nothing).FilePath)
191Assert.Equal(String.Empty, oldTree.WithFilePath(Nothing).FilePath)
192Assert.Equal(String.Empty, SyntaxFactory.ParseSyntaxTree("", path:=Nothing).FilePath)
193Assert.Equal(String.Empty, VisualBasicSyntaxTree.Create(CType(oldTree.GetRoot, VisualBasicSyntaxNode), path:=Nothing).FilePath)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (18)
Microsoft.CodeAnalysis.Workspaces (22)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (15)
SolutionTests\SolutionTests.cs (13)
1158var tree = compilation.SyntaxTrees.Single(t => t.FilePath == document.FilePath);
2603Assert.Same(tree, tree.WithFilePath(tree.FilePath));
2624Assert.Equal(OldFilePath, oldDocument.GetSyntaxTreeAsync().Result.FilePath);
2632Assert.Equal(NewFilePath, newDocument.GetSyntaxTreeAsync().Result.FilePath);
3144Assert.Equal("new path", tree2.FilePath);
3172Assert.Equal("old path", tree3.FilePath);
3183Assert.Equal("old path", tree4.FilePath);
3443Assert.Equal("DocumentToFreeze.cs", tree.FilePath);
3862Assert.Equal("test5.cs", syntaxTrees[0].FilePath, StringComparer.OrdinalIgnoreCase);
3863Assert.Equal("test4.cs", syntaxTrees[1].FilePath, StringComparer.OrdinalIgnoreCase);
3864Assert.Equal("test3.cs", syntaxTrees[2].FilePath, StringComparer.OrdinalIgnoreCase);
3865Assert.Equal("test2.cs", syntaxTrees[3].FilePath, StringComparer.OrdinalIgnoreCase);
3866Assert.Equal("test1.cs", syntaxTrees[4].FilePath, StringComparer.OrdinalIgnoreCase);
Microsoft.VisualStudio.LanguageServices (5)
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (4)