33 references to FilePath
Microsoft.CodeAnalysis.Features (9)
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
245var filePath = project.State.DocumentStates.GetRequiredState(documentId).FilePath;
EditAndContinue\CommittedSolution.cs (1)
413var sourceFilePath = documentState.FilePath;
EditAndContinue\Utilities\Extensions.cs (3)
87if (!PathUtilities.IsAbsolute(textDocumentState.FilePath)) 101if (IsWpfDesignTimeOnlyDocument(textDocumentState.FilePath, documentState.LanguageServices.Language)) 108if (IsRazorDesignTimeOnlyDocument(textDocumentState.FilePath))
Workspace\CompileTimeSolutionProvider.cs (4)
88=> documentState.FilePath != null && documentState.FilePath.EndsWith(RazorEncConfigFileName, StringComparison.OrdinalIgnoreCase); 171=> documentState.FilePath?.EndsWith(".razor.g.cs") == true || documentState.FilePath?.EndsWith(".cshtml.g.cs") == true;
Microsoft.CodeAnalysis.Workspaces (22)
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
95var textChecksumsTasks = projectState.DocumentStates.States.Values.OrderBy(state => state.FilePath, StringComparer.Ordinal).Select(async state =>
Workspace\Host\PersistentStorage\DocumentKey.cs (1)
37=> new(projectKey, state.Id, state.FilePath, state.Name);
Workspace\Solution\AdditionalTextWithState.cs (1)
24public override string Path => _documentState.FilePath ?? _documentState.Name;
Workspace\Solution\AnalyzerConfigDocumentState.cs (2)
27asynchronousComputeFunction: static async (self, cancellationToken) => AnalyzerConfig.Parse(await self.GetTextAsync(cancellationToken).ConfigureAwait(false), self.FilePath), 28synchronousComputeFunction: static (self, cancellationToken) => AnalyzerConfig.Parse(self.GetTextSynchronously(cancellationToken), self.FilePath),
Workspace\Solution\ProjectState.cs (4)
424if (!string.IsNullOrEmpty(documentState.FilePath)) 426return documentState.FilePath; 503if (!string.IsNullOrEmpty(documentState.FilePath)) 505return documentState.FilePath;
Workspace\Solution\SolutionState.cs (2)
1274var filePath = documentState.FilePath; 1332var filePath = documentState.FilePath;
Workspace\Solution\TextDocument.cs (1)
43public string? FilePath => State.FilePath;
Workspace\Solution\TextDocumentState.cs (2)
148var newTextAndVersion = TextAndVersion.Create(newText, newVersion, FilePath); 156var newTextSource = CreateTextAndVersionSource(SolutionServices, loader, FilePath, LoadTextOptions, mode);
Workspace\Solution\TextDocumentState_Checksum.cs (1)
37using (Logger.LogBlock(FunctionId.DocumentState_ComputeChecksumsAsync, FilePath, cancellationToken))
Workspace\Solution\TextDocumentStates.cs (5)
192if (filePathToDocumentIds != null && oldState.FilePath != state.FilePath) 210filePathsChanged = filePathsChanged || newState.FilePath != state.FilePath; 364var filePath = state.FilePath;
Workspace\Workspace.cs (1)
1792throw new NotSupportedException(string.Format(WorkspacesResources.Changing_document_0_is_not_supported, document.FilePath ?? document.Name));
Workspace\Workspace_Editor.cs (1)
401var newTextAndVersion = GetProperTextAndVersion(oldText, newText, version, oldDocumentState.FilePath);
Microsoft.VisualStudio.LanguageServices (2)
Workspace\VisualStudioWorkspaceUtilities.cs (2)
30document?.FilePath != null) 35itemID = hierarchy.TryGetItemId(document.FilePath);