11 overrides of FilePath
Microsoft.CodeAnalysis.CSharp (3)
Syntax\CSharpSyntaxTree.Dummy.cs (1)
63public override string FilePath
Syntax\CSharpSyntaxTree.LazySyntaxTree.cs (1)
39public override string FilePath
Syntax\CSharpSyntaxTree.ParsedSyntaxTree.cs (1)
57public override string FilePath
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DeclarationTests.cs (1)
422public override string FilePath
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\Mocks\MockCSharpSyntaxTree.cs (1)
20public override string FilePath { get; }
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.ParsedSyntaxTree.cs (1)
24public override string FilePath { get; }
Microsoft.CodeAnalysis.VisualBasic (3)
Syntax\VisualBasicSyntaxTree.DummySyntaxTree.vb (1)
61Public Overrides ReadOnly Property FilePath As String
Syntax\VisualBasicSyntaxTree.LazySyntaxTree.vb (1)
39Public Overrides ReadOnly Property FilePath As String
Syntax\VisualBasicSyntaxTree.ParsedSyntaxTree.vb (1)
63Public Overrides ReadOnly Property FilePath As String
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
ParserTestUtilities.vb (1)
493Public Overrides ReadOnly Property FilePath As String
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Workspace\LanguageServices\VisualBasicSyntaxTreeFactoryService.ParsedSyntaxTree.vb (1)
23Public Overrides ReadOnly Property FilePath As String
572 references to FilePath
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
206.ThenBy(tuple => tuple.Item2.Location.SourceTree?.FilePath, StringComparer.OrdinalIgnoreCase)
BuildValidator (1)
CompilationDiff.cs (1)
305var sourceFilePath = Path.Combine(sourcesPath, Path.GetFileName(tree.FilePath));
IdeCoreBenchmarks (1)
IncrementalSourceGeneratorBenchmarks.cs (1)
169var syntaxTree = compilation.SyntaxTrees.Single(t => t.FilePath.Contains("AbstractCaseCorrectionService"));
Microsoft.CodeAnalysis (33)
CodeGen\SequencePointList.cs (3)
125lastDebugDocument = documentProvider(lastPath, basePath: lastPathIsMapped ? this._tree.FilePath : null); 151lastPath = currentTree.FilePath; 172lastDebugDocument = documentProvider(lastPath, basePath: lastPathIsMapped ? currentTree.FilePath : null);
CommandLine\CommonCompiler.cs (7)
435if (!EmbeddedSourcePaths.Contains(tree.FilePath)) 441if (embeddedTreeMap.ContainsKey(tree.FilePath)) 447embeddedTreeMap.Add(tree.FilePath, tree); 1039Debug.Assert(!string.IsNullOrWhiteSpace(tree.FilePath)); 1045embeddedTextBuilder.Add(EmbeddedText.FromSource(tree.FilePath, sourceText)); 1048analyzerOptionsBuilder.Add(analyzerConfigSet!.GetOptionsForSourcePath(tree.FilePath)); 1054var path = Path.Combine(Arguments.GeneratedFilesOutputDirectory!, tree.FilePath);
Compilation\Compilation.cs (3)
2445if (!string.IsNullOrEmpty(tree.FilePath) && tree.GetText().Encoding == null) 2481if (!string.IsNullOrEmpty(tree.FilePath)) 2485string normalizedPath = documentsBuilder.NormalizeDebugDocumentPath(tree.FilePath, basePath: null);
Compilation\DeterministicKey.cs (1)
38=> _tree.FilePath;
Diagnostic\Location.cs (1)
100result += "(" + this.SourceTree?.FilePath + this.SourceSpan + ")";
DiagnosticAnalyzer\AnalysisContextInfo.cs (1)
97sb.AppendLine($"{nameof(SyntaxTree)}: {_file.Value.SourceTree.FilePath}");
DiagnosticAnalyzer\CompilationUnitCompletedEvent.cs (1)
37=> $"CompilationUnitCompletedEvent({CompilationUnit.FilePath}){FilterSpan}";
DiagnosticAnalyzer\DiagnosticAnalysisContextHelpers.cs (2)
99throw new ArgumentException(string.Format(CodeAnalysisResources.InvalidDiagnosticLocationReported, id, location.SourceTree.FilePath), "diagnostic"); 105throw new ArgumentException(string.Format(CodeAnalysisResources.InvalidDiagnosticSpanReported, id, location.SourceSpan, location.SourceTree.FilePath), "diagnostic");
EmbeddedText.cs (1)
37/// <remarks>See remarks of <see cref="SyntaxTree.FilePath"/></remarks>
InternalUtilities\GeneratedCodeUtilities.cs (1)
51return IsGeneratedCodeFile(tree.FilePath) ||
PEWriter\MetadataWriter.cs (1)
1784if (documentsBuilder.TryGetDebugDocument(tree.FilePath, basePath: null) is { } doc && !_documentIndex.ContainsKey(doc))
ReferenceManager\CommonReferenceManager.Resolution.cs (4)
814if (localBoundReferenceDirectives != null && localBoundReferenceDirectives.ContainsKey((referenceDirective.Location.SourceTree.FilePath, referenceDirective.File))) 834localBoundReferenceDirectives.Add((referenceDirective.Location.SourceTree.FilePath, referenceDirective.File), boundReference); 871string? basePath = (tree != null && tree.FilePath.Length > 0) ? tree.FilePath : null;
Syntax\SyntaxTree.cs (3)
230/// otherwise it's <see cref="FilePath"/>. 292return resolver.NormalizePath(mappedSpan.Path, baseFilePath: mappedSpan.HasMappedPath ? FilePath : null) ?? mappedSpan.Path; 379/// Returns a new tree whose <see cref="FilePath"/> is the specified node and other properties are copied from the current tree.
Syntax\SyntaxTreeComparer.cs (3)
27return string.Equals(x.FilePath, y.FilePath, StringComparison.OrdinalIgnoreCase) && 33return Hash.Combine(obj.FilePath.GetHashCode(), SourceTextComparer.Instance.GetHashCode(obj.GetText()));
XmlFileResolver.cs (1)
44/// Path of the source file (<see cref="SyntaxTree.FilePath"/>) or XML document that contains the <paramref name="path"/>.
Microsoft.CodeAnalysis.CodeStyle (9)
AbstractFileHeaderDiagnosticAnalyzer.cs (1)
65var expectedFileHeader = fileHeaderTemplate.Replace("{fileName}", Path.GetFileName(tree.FilePath));
AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (2)
139if (!PathUtilities.IsChildPath(projectDir, namespaceDeclaration.SyntaxTree.FilePath)) 148PathUtilities.GetDirectoryName(namespaceDeclaration.SyntaxTree.FilePath)!);
GeneratedCodeUtilities.cs (1)
51return IsGeneratedCodeFile(tree.FilePath) ||
SymbolKey.AliasSymbolKey.cs (1)
21visitor.WriteString(symbol.DeclaringSyntaxReferences.FirstOrDefault()?.SyntaxTree.FilePath ?? "");
SymbolKey.NamedTypeSymbolKey.cs (2)
24? symbol.DeclaringSyntaxReferences[0].SyntaxTree.FilePath 174type.DeclaringSyntaxReferences[0].SyntaxTree.FilePath != filePath)
SymbolKey.SymbolKeyReader.cs (1)
475if (tree.FilePath == filePath)
SymbolKey.SymbolKeyWriter.cs (1)
257WriteString(location.SourceTree.FilePath);
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
CodeGenerationHelpers.cs (4)
204afterSourceTree.FilePath == declarationList.FirstOrDefault()?.SyntaxTree.FilePath) 220beforeSourceTree.FilePath == declarationList.FirstOrDefault()?.SyntaxTree.FilePath)
ProjectExtensions.cs (1)
53var diagnosticFilePath = PathUtilities.GetDirectoryName(diagnostic?.Location.SourceTree?.FilePath ?? project.FilePath);
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Symbols.cs (2)
1932arg0 = srcSymbol.Locations.First().SourceTree.FilePath; 2086arg0 = first.Locations.First().SourceTree.FilePath;
CommandLine\CSharpCompiler.cs (2)
262string entryPointFileName = PathUtilities.GetFileName(entryPoint.Locations.First().SourceTree!.FilePath); 358string? resolvedPath = resolver.ResolveReference(path, tree.FilePath);
Compilation\CSharpCompilation.cs (7)
1030throw new KeyNotFoundException($"Syntax tree not found with file path: {tree.FilePath}"); 1131RoslynDebug.Assert(directive.SyntaxTree.FilePath is object); 1134return ReferenceDirectiveMap.TryGetValue((directive.SyntaxTree.FilePath, directive.File.ValueText), out reference) ? reference : null; 3295if (!paths.Add(tree.FilePath)) 3297_duplicatePaths.Add(tree.FilePath); 3332var filePath = location.SourceTree?.FilePath; 3504var normalizedPath = documentsBuilder.NormalizeDebugDocumentPath(path, basePath: tree.FilePath);
Compilation\SyntaxAndDeclarationManager.cs (5)
205resolvedFilePath = resolver.ResolveReference(path, baseFilePath: tree.FilePath); 226loadedSyntaxTreeMapBuilder.Add(loadedTree.FilePath, loadedTree); 319loadedSyntaxTreeMap = loadedSyntaxTreeMap.Remove(tree.FilePath); 476loadedSyntaxTreeMapBuilder.Remove(tree.FilePath); 578return loadedSyntaxTreeMap.TryGetValue(tree.FilePath, out loadedTree) && (tree == loadedTree);
Emitter\Model\PEModuleBuilder.cs (1)
447Cci.DebugSourceDocument doc = DebugDocumentsBuilder.TryGetDebugDocument(span.Path, basePath: location.SourceTree.FilePath);
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
487path = syntax.SyntaxTree.FilePath;
Symbols\FileIdentifier.cs (1)
21=> Create(tree.FilePath);
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)
EditAndContinue\Helpers\EditAndContinueValidation.cs (1)
30new[] { new SequencePointUpdates(editScript.Match.OldRoot.SyntaxTree.FilePath, lineEdits.ToImmutableArray()) },
Workspaces\WorkspaceTests_EditorFeatures.cs (2)
227Assert.Equal("", tree1.FilePath); 234Assert.Equal("a.csx", tree2.FilePath);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
PDB\PDBEmbeddedSourceTests.cs (3)
47EmbeddedText.FromSource(tree1.FilePath, tree1.GetText()), 48EmbeddedText.FromSource(tree2.FilePath, tree2.GetText()) 109embeddedTexts: new[] { EmbeddedText.FromSource(tree.FilePath, tree.GetText()) });
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();
Diagnostics\GetDiagnosticsTests.cs (3)
185Assert.True(completedCompilationUnits.Contains(tree1.FilePath)); 237Assert.True(completedCompilationUnits.Contains(tree1.FilePath)); 301Assert.True(completedCompilationUnits.Add(compilationCompletedEvent.CompilationUnit.FilePath));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (56)
SourceGeneration\GeneratorDriverTests.cs (1)
549var filePaths = outputCompilation.SyntaxTrees.Skip(1).Select(t => t.FilePath).ToArray();
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)).
DeclarationTests.cs (1)
424get { return _underlyingTree.FilePath; }
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (9)
Diagnostics\LocationsTests.cs (1)
57Assert.Equal(string.Format("[{0};{1}]", expectedPath, hasMappedPath ? syntaxTree.FilePath : null), actualDisplayPath);
IncrementalParsing\IncrementalParsingTests.cs (1)
2685var oldTree = SyntaxFactory.SyntaxTree(oldRoot, options: tempTree.Options, path: tempTree.FilePath);
Syntax\SyntaxTreeTests.cs (7)
291Assert.Equal("new.cs", newTree.FilePath); 307Assert.Equal("new.cs", newTree.FilePath); 320Assert.Equal("new.cs", newTree.FilePath); 328Assert.Equal(string.Empty, oldTree.WithFilePath(null).FilePath); 330Assert.Equal(string.Empty, oldTree.WithFilePath(null).FilePath); 331Assert.Equal(string.Empty, SyntaxFactory.ParseSyntaxTree("", path: null).FilePath); 332Assert.Equal(string.Empty, CSharpSyntaxTree.Create((CSharpSyntaxNode)oldTree.GetRoot()).FilePath);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
EditAndContinue\EditAndContinueTestHelpers.cs (2)
400var oldPath = oldRoot.SyntaxTree.FilePath; 427if (tree.FilePath != span.Path)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (3)
444var fileName = PathUtilities.GetFileName(syntaxTree.FilePath); 1932context.AddSource("Generated.cs", context.Compilation.SyntaxTrees.SingleOrDefault(t => t.FilePath.EndsWith("X.cs"))?.ToString() ?? "none"); 1940var syntaxTree = context.Compilation.SyntaxTrees.Single(t => t.FilePath.EndsWith("A.cs"));
Microsoft.CodeAnalysis.Features (21)
AbstractFileHeaderDiagnosticAnalyzer.cs (1)
65var expectedFileHeader = fileHeaderTemplate.Replace("{fileName}", Path.GetFileName(tree.FilePath));
AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (2)
139if (!PathUtilities.IsChildPath(projectDir, namespaceDeclaration.SyntaxTree.FilePath)) 148PathUtilities.GetDirectoryName(namespaceDeclaration.SyntaxTree.FilePath)!);
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
452diagnosticFilePath = diagnosticSourceTree.FilePath.ToLowerInvariant();
CodeLens\CodeLensFindReferenceProgress.cs (2)
92_queriedNode.SyntaxTree.FilePath.Equals(candidateSyntaxNode.SyntaxTree.FilePath,
CodeLens\LocationComparer.cs (3)
22x.SourceTree.FilePath.Equals(y.SourceTree.FilePath, StringComparison.OrdinalIgnoreCase); 33StringComparer.OrdinalIgnoreCase.GetHashCode(obj.SourceTree.FilePath));
EditAndContinue\ActiveStatementsMap.cs (2)
211var targetPath = mappedSection.HasMappedPath ? mappedSection.Path : oldTree.FilePath; 235if (DocumentPathMap.TryGetValue(oldTree.FilePath, out var activeStatements))
FindUsages\AbstractFindUsagesService_FindImplementations.cs (1)
128if (location.IsInSource && !seenLocations.Add((location.SourceTree.FilePath, location.SourceSpan)))
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (5)
197=> syntaxTree1.FilePath != syntaxTree2.FilePath 198? StringComparer.OrdinalIgnoreCase.Compare(syntaxTree1.FilePath, syntaxTree2.FilePath) 257var filePath = groupSyntaxTree.FilePath;
MoveStaticMembers\MoveStaticMembersOptions.cs (1)
45FileName = sourceLocation.SyntaxTree.FilePath;
SyncNamespaces\AbstractSyncNamespacesService.cs (1)
171.Where(diagnostic => diagnostic.Location.SourceTree?.FilePath == document.FilePath)
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (2)
300.Select(d => (d.SyntaxTree.FilePath, d.Span)) 333if (constructorSpans.Contains((node.SyntaxTree.FilePath, node.Span)))
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (2)
335throw new ArgumentException(string.Format(FeaturesResources.Reported_diagnostic_0_has_a_source_location_in_file_1_which_is_not_part_of_the_compilation_being_analyzed, id, location.SourceTree.FilePath), "diagnostic"); 341throw new ArgumentException(string.Format(FeaturesResources.Reported_diagnostic_0_has_a_source_location_1_in_file_2_which_is_outside_of_the_given_file, id, location.SourceSpan, location.SourceTree.FilePath), "diagnostic");
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.UnitTests (8)
CompilerInvocationTests.vb (7)
29Assert.Equal("Z:\SourceFile.cs", syntaxTree.FilePath) 56Assert.Equal("Z:\SourceFile.vb", syntaxTree.FilePath) 83Assert.Equal("T:\SourceFile.cs", syntaxTree.FilePath) 104Assert.Equal("T:\Directory\SourceFile.cs", syntaxTree.FilePath) 125Assert.Equal("T:\Directory\SourceFile.cs", syntaxTree.FilePath) 174Assert.Single(generatedTrees, Function(t) t.FilePath.EndsWith(TestSourceGenerator.HelloWorldGenerator.GeneratedEnglishClassName + ".cs")) 175Assert.Single(generatedTrees, Function(t) t.FilePath.EndsWith(TestSourceGenerator.HelloWorldGenerator.GeneratedSpanishClassName + ".cs"))
ProjectStructureTests.vb (1)
61Dim tree = Assert.Single(compilation.SyntaxTrees, Function(t) "source-generated:///" + t.FilePath.Replace("\"c, "/"c) = generatedDocumentVertex.Uri.OriginalString)
Microsoft.CodeAnalysis.Rebuild (1)
CompilationFactory.cs (1)
85.Select(st => (path: st.FilePath, text: st.GetText()))
Microsoft.CodeAnalysis.Rebuild.UnitTests (3)
CSharpRebuildTests.cs (1)
38.Select(x => compilationFactory.CreateSyntaxTree(x.FilePath, x.GetText()))
RoundTripUtil.cs (2)
71Assert.True(original.SyntaxTrees.All(x => !string.IsNullOrEmpty(x.FilePath))); 94original.SyntaxTrees.SelectAsArray(x => compilationFactory.CreateSyntaxTree(x.FilePath, x.GetText())),
Microsoft.CodeAnalysis.Test.Utilities (12)
Compilation\IRuntimeEnvironment.cs (1)
252.Select(t => (filePath: t.FilePath, text: t.GetText()))
CompilationVerifier.cs (1)
612ILValidation.GetSequencePointMarkers(xmlMethod, id => _compilation.SyntaxTrees.Single(tree => tree.FilePath == documentMap[id]).GetText()) :
Diagnostics\CommonDiagnosticAnalyzers.cs (10)
107var filePath = GetUriForPath(tree.FilePath); 181var filePath = GetUriForPath(tree.FilePath); 258var filePath = GetUriForPath(tree.FilePath); 307var filePath = GetUriForPath(tree.FilePath); 1432sortedCallbackTreePaths.Add($"{treeContext.Tree.FilePath}(IsGeneratedCode:{treeContext.IsGeneratedCode})"); 1455sortedCallbackSemanticModelPaths.Add($"{context.SemanticModel.SyntaxTree.FilePath}(IsGeneratedCode:{context.IsGeneratedCode})")); 1555ReportDiagnosticsCore(addDiagnostic, tree.GetRoot().GetLastToken().GetLocation(), tree.FilePath); 1664var fileNameWithoutExtension = PathUtilities.GetFileName(tree.FilePath, includeExtension: false); 1713var diagnostic = Diagnostic.Create(descriptor, Location.None, treeContext.Tree.FilePath); 1717diagnostic = Diagnostic.Create(UniqueTextFileDescriptor, Location.None, treeContext.Tree.FilePath);
Microsoft.CodeAnalysis.VisualBasic (27)
CommandLine\VisualBasicCompiler.vb (1)
284Dim resolvedPath = resolver.ResolveReference(path, tree.FilePath)
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())
Compilation\VisualBasicCompilation.vb (1)
2607Dim normalizedPath = documentsBuilder.NormalizeDebugDocumentPath(path, basePath:=tree.FilePath)
Emit\PEModuleBuilder.vb (1)
282Dim doc As Cci.DebugSourceDocument = DebugDocumentsBuilder.TryGetDebugDocument(span.Path, basePath:=location.SourceTree.FilePath)
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
443path = syntax.SyntaxTree.FilePath
Symbols\Source\SourceNamespaceSymbol.vb (2)
567declaration.SyntaxReference.SyntaxTree.FilePath IsNot Nothing Then 569Dim otherPath = declaration.SyntaxReference.SyntaxTree.FilePath
Syntax\VisualBasicSyntaxTree.vb (4)
139FilePath, 435Return New FileLinePositionSpan(Me.FilePath, GetLinePosition(span.Start), GetLinePosition(span.End)) 449Return GetDirectiveMap().TranslateSpan(GetText(cancellationToken), FilePath, span) 458Return GetDirectiveMap().TranslateSpanAndVisibility(Me.GetText(), Me.FilePath, span, isHiddenPosition)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
EditAndContinue\Helpers\EditAndContinueValidation.vb (1)
28{New SequencePointUpdates(editScript.Match.OldRoot.SyntaxTree.FilePath, lineEdits.ToImmutableArray())},
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
PDB\PDBEmbeddedSourceTests.vb (3)
38EmbeddedText.FromSource(tree1.FilePath, tree1.GetText()), 39EmbeddedText.FromSource(tree2.FilePath, tree2.GetText()) 91embeddedTexts:={EmbeddedText.FromSource(tree.FilePath, tree.GetText())})
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (229)
Binding\BindingCollectionInitializerTests.vb (5)
1785Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1837Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1882Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1918Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1956Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Binding\BindingErrorTests.vb (3)
24099Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 24491Dim tree = comp.SyntaxTrees.Where(Function(t) t.FilePath.EndsWith("a.vb", StringComparison.Ordinal)).Single 24501tree = comp.SyntaxTrees.Where(Function(t) t.FilePath.EndsWith("b.vb", StringComparison.Ordinal)).Single
Binding\ImplicitVariableTests.vb (1)
1285Dim tree = compilation.SyntaxTrees.Where(Function(t) t.FilePath = "a.vb").Single()
Binding\LookupTests.vb (10)
1613Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1663Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1723Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1916Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2087Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2229Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2347Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2450Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2587Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2720Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Compilation\SemanticModelAPITests.vb (57)
67Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 108Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 148Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 190Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 268Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 321Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 370Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 410Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 493Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 587Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 658Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 710Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 750Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 812Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 878Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 929Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 964Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 999Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1038Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1077Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1117Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1160Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1217Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1384Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1416Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1485Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1534Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1575Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1654Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1690Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1765Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1785Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1816Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1855Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1898Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1941Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1975Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2010Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2305Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2442Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2569Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2695Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2738Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2774Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2811Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2847Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2897Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 3028Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 3165Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 3632Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 3842Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 3921tree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 4022Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "sam.vb").Single() 4057Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "sam.vb").Single() 4505Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 4583Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 4613Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (4)
479Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 525Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2852Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2886Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Compilation\SemanticModelLookupSymbolsAPITests.vb (9)
51Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 97Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 154Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 214Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 259Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 377Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 431Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1970Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2002Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Diagnostics\DiagnosticAnalyzerTests.vb (3)
929diagnosticArgument = tree.FilePath 935AddExpectedNonLocalDiagnostic(builder, GeneratedCodeAnalyzer.Summary, "PartialType(IsGeneratedCode:False)", $"{compilation.SyntaxTrees(0).FilePath}(IsGeneratedCode:False)") 1169Dim files = compilation.SyntaxTrees.Select(Function(t) t.FilePath).ToImmutableArray()
Diagnostics\GetDiagnosticsTests.vb (3)
171Assert.True(completedCompilationUnits.Contains(tree.FilePath)) 228Assert.True(completedCompilationUnits.Contains(tree.FilePath)) 443Assert.True(completedCompilationUnits.Add(compilationCompletedEvent.CompilationUnit.FilePath))
Semantics\AsyncAwait.vb (5)
107Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 176Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 933Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1414Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1956Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Semantics\BinaryOperators.vb (3)
984Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1324Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1419Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Semantics\CompoundAssignment.vb (2)
293Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1016Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Semantics\ConditionalAccessTests.vb (3)
639Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1316Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1485Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Semantics\Conversions_AnonymousDelegates.vb (27)
45Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 136Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 193Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 278Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 359Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 383Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 427Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 508Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 538Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 945Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1031Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1084Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1186Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1234Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1313Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1344Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1396Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1501Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1587Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1634Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1712Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1735Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1783Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1831Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1886Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1983Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2014Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Semantics\GetExtendedSemanticInfoTests.vb (5)
7563Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 7618Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 8855Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 8880Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 8902Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Semantics\GetSemanticInfoTests.vb (1)
5018Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Semantics\InterpolatedStringTests.vb (9)
372Dim mainTree = Aggregate t In compilation.SyntaxTrees Where t.FilePath = "a.vb" Into [Single]() 423Dim mainTree = Aggregate t In compilation.SyntaxTrees Where t.FilePath = "a.vb" Into [Single]() 765Dim mainTree = Aggregate t In compilation.SyntaxTrees Where t.FilePath = "a.vb" Into [Single]() 816Dim mainTree = Aggregate t In compilation.SyntaxTrees Where t.FilePath = "a.vb" Into [Single]() 872Dim mainTree = Aggregate t In compilation.SyntaxTrees Where t.FilePath = "a.vb" Into [Single]() 929Dim mainTree = Aggregate t In compilation.SyntaxTrees Where t.FilePath = "a.vb" Into [Single]() 987Dim mainTree = Aggregate t In compilation.SyntaxTrees Where t.FilePath = "a.vb" Into [Single]() 1220Dim mainTree = Aggregate t In compilation.SyntaxTrees Where t.FilePath = "a.vb" Into [Single]() 1269Dim mainTree = Aggregate t In compilation.SyntaxTrees Where t.FilePath = "a.vb" Into [Single]()
Semantics\Lambda_AnonymousDelegateInference.vb (2)
202Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 436Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Semantics\Lambda_Relaxation.vb (26)
37Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 153Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 251Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 349Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 444Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 521Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 549Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 850Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 925Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 970Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1024Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1179Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1242Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1293Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1406Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1451Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1517Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1616Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1693Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1747Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1907Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1999Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2053Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2145Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2173Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2227Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Semantics\LambdaSemanticInfoTests.vb (7)
167Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 461Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 499Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 532Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 577Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 602Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 625Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Semantics\MethodCalls.vb (1)
2924Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Semantics\OverloadResolution.vb (2)
4318Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 4426Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Semantics\Parenthesized.vb (1)
240Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Semantics\QueryExpressions_LookupSymbols.vb (16)
53Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 181Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 282Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 358Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 467Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 549Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 900Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 937Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 986Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1147Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1348Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1540Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1623Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1775Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1935Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2070Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Semantics\QueryExpressions_SemanticModel.vb (22)
58Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 284Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 504Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 748Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1066Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1287Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1369Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1472Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1535Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1635Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 1778Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2091Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2517Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2657Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 2885Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 3291Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 3495Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 3736Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 3814Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 3844Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 3883Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 3915Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Semantics\UnaryOperators.vb (2)
663Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 815Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (27)
SymbolsTests\AnonymousDelegates\AnonymousDelegates_CreationAndEmit.vb (1)
297Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
SymbolsTests\Source\GroupClassTests.vb (4)
2599Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "Test3.vb").Single() 3269Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 3350Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() 3756Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single()
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)
IncrementalParser\IncrementalParser.vb (1)
1717Dim oldTree2 = VisualBasicSyntaxTree.Create(DirectCast(oldRoot2, VisualBasicSyntaxNode), DirectCast(tempTree2.Options, VisualBasicParseOptions), tempTree2.FilePath, Encoding.UTF8)
LocationTests.vb (1)
45Assert.Equal(String.Format("[{0};{1}]", expectedPath, If(hasMappedPath, syntaxTree.FilePath, Nothing)), actualDisplayPath)
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)
BasicTestBase.vb (2)
788Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 825Dim syntaxNode As SyntaxNode = CompilationUtils.FindBindingText(Of TSyntaxNode)(compilation, tree.FilePath, which, prefixMatch:=True)
CompilationTestUtils.vb (9)
412Dim trees = If(fileName Is Nothing, compilation.SyntaxTrees, compilation.SyntaxTrees.Where(Function(t) t.FilePath = fileName)) 448Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 492Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 610Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 675Return (From t In compilation.SyntaxTrees Where t.FilePath = name).First() 1042If sourceTree1.FilePath <> sourceTree2.FilePath Then Return comparer.Compare(sourceTree1.FilePath, sourceTree2.FilePath)
SemanticModelTestBase.vb (7)
29Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 48Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 70Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 96Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 103Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 120Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = filename).Single() 129Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = filename).Single()
Microsoft.CodeAnalysis.Workspaces (22)
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
121.OrderBy(d => d.Location.SourceTree!.FilePath)
CodeGenerationHelpers.cs (4)
204afterSourceTree.FilePath == declarationList.FirstOrDefault()?.SyntaxTree.FilePath) 220beforeSourceTree.FilePath == declarationList.FirstOrDefault()?.SyntaxTree.FilePath)
FindSymbols\ReferenceLocation.cs (2)
148var thisPath = this.Location.SourceTree?.FilePath; 149var otherPath = other.Location.SourceTree?.FilePath;
GeneratedCodeUtilities.cs (1)
51return IsGeneratedCodeFile(tree.FilePath) ||
ProjectExtensions.cs (1)
53var diagnosticFilePath = PathUtilities.GetDirectoryName(diagnostic?.Location.SourceTree?.FilePath ?? project.FilePath);
SymbolKey.AliasSymbolKey.cs (1)
21visitor.WriteString(symbol.DeclaringSyntaxReferences.FirstOrDefault()?.SyntaxTree.FilePath ?? "");
SymbolKey.NamedTypeSymbolKey.cs (2)
24? symbol.DeclaringSyntaxReferences[0].SyntaxTree.FilePath 174type.DeclaringSyntaxReferences[0].SyntaxTree.FilePath != filePath)
SymbolKey.SymbolKeyReader.cs (1)
475if (tree.FilePath == filePath)
SymbolKey.SymbolKeyWriter.cs (1)
257WriteString(location.SourceTree.FilePath);
Workspace\Solution\ProjectState.cs (3)
317return GetOptionsForSourcePath(cache, tree.FilePath); 450.GetValue(cancellationToken).GetOptionsForSourcePath(tree.FilePath); 457.GetValue(cancellationToken).GetOptionsForSourcePath(tree.FilePath);
Workspace\Solution\SolutionState.CompilationTracker.cs (3)
210var oldTree = compilationPair.CompilationWithoutGeneratedDocuments.SyntaxTrees.FirstOrDefault(t => t.FilePath == tree.FilePath); 911generatedSource.SyntaxTree.FilePath,
Workspace\Solution\SolutionState.SymbolToProjectId.cs (2)
46$"We should always be able to map a body symbol back to a document:\r\n{symbol.Kind}\r\n{symbol.Name}\r\n{syntaxTree.FilePath}\r\n{projectId}"); 57$"Syntax tree for a body symbol should map to the same project as the body symbol's assembly:\r\n{symbol.Kind}\r\n{symbol.Name}\r\n{syntaxTree.FilePath}\r\n{projectId}\r\n{documentId.ProjectId}");
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
VisualStudioMSBuildWorkspaceTests.cs (3)
424Assert.Equal(expectedFileName, tree.FilePath); 445Assert.Equal(expectedFileName, tree.FilePath); 463Assert.Equal(expectedFileName, tree.FilePath);
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);
SolutionTests\SolutionWithSourceGeneratorTests.cs (2)
59Assert.Equal($"{generatorType.Assembly.GetName().Name}\\{generatorType.FullName}\\Test.generated.cs", generatedTree.FilePath); 452var syntaxTree = Assert.Single((await project.GetRequiredCompilationAsync(CancellationToken.None)).SyntaxTrees, t => t.FilePath != "RegularDocument.cs");
Microsoft.VisualStudio.LanguageServices (5)
CallHierarchy\CallHierarchyDetail.cs (1)
42_sourceFile = location.SourceTree.FilePath;
MoveStaticMembers\VisualStudioMoveStaticMembersOptionsService.cs (1)
161private static string GetFile(Location loc) => loc.SourceTree!.FilePath;
Progression\GraphBuilder.cs (1)
222preferredLocation.SourceTree.FilePath,
Progression\GraphQueries\IsUsedByGraphQuery.cs (1)
57var filePath = location.SourceTree.FilePath;
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (1)
340var filePath = tree.FilePath;
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (4)
IOperation\IOperationTests.vb (3)
528Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 543Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single() 866Dim expr = CompilationUtils.FindBindingText(Of MemberAccessExpressionSyntax)(comp, tree.FilePath)
IOperation\IOperationTests_IArgument.vb (1)
1135Dim tree = (From t In compilation.SyntaxTrees Where t.FilePath = fileName).Single()