29 references to FilePath
Microsoft.CodeAnalysis.Features (11)
EditAndContinue\CommittedSolution.cs (1)
381var sourceFilePath = documentState.FilePath;
EditAndContinue\Extensions.cs (4)
87if (textDocumentState is SourceGeneratedDocumentState { FilePath: not null }) 92if (!PathUtilities.IsAbsolute(textDocumentState.FilePath)) 106if (IsWpfDesignTimeOnlyDocument(textDocumentState.FilePath, documentState.LanguageServices.Language)) 113if (IsRazorDesignTimeOnlyDocument(textDocumentState.FilePath))
Workspace\CompileTimeSolutionProvider.cs (6)
81=> documentState.FilePath != null && documentState.FilePath.EndsWith(RazorEncConfigFileName, StringComparison.OrdinalIgnoreCase); 164=> documentState.FilePath?.EndsWith(".razor.g.cs") == true || documentState.FilePath?.EndsWith(".cshtml.g.cs") == true; 240var filePath = compileTimeDocument?.State.FilePath; 267compileTimeFilePaths.Any(compileTimeFilePath => HasMatchingFilePath(designTimeDocumentState.FilePath!, designTimeProjectDirectory, compileTimeFilePath)))
Microsoft.CodeAnalysis.Workspaces (18)
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
93var textChecksumsTasks = projectState.DocumentStates.States.Values.OrderBy(state => state.FilePath, StringComparer.Ordinal).Select(async state =>
Workspace\Host\PersistentStorage\DocumentKey.cs (1)
45=> new(projectKey, state.Id, state.FilePath, state.Name);
Workspace\Solution\AdditionalTextWithState.cs (1)
27public override string Path => _documentState.FilePath ?? _documentState.Name;
Workspace\Solution\AnalyzerConfigDocumentState.cs (2)
42asynchronousComputeFunction: async cancellationToken => AnalyzerConfig.Parse(await GetTextAsync(cancellationToken).ConfigureAwait(false), FilePath), 43synchronousComputeFunction: cancellationToken => AnalyzerConfig.Parse(GetTextSynchronously(cancellationToken), FilePath),
Workspace\Solution\ProjectState.cs (2)
361if (!string.IsNullOrEmpty(documentState.FilePath)) 363return documentState.FilePath;
Workspace\Solution\SolutionState.cs (6)
521var filePath = documentState.FilePath; 575var filePath = documentState.FilePath; 1247if (oldDocument.FilePath == filePath) 1449var newFilePathToDocumentIdsMap = CreateFilePathToDocumentIdsMapWithFilePath(newDocument.Id, oldDocument.FilePath, newDocument.FilePath); 1716var filePath = documentState.FilePath;
Workspace\Solution\TextDocument.cs (1)
44public string? FilePath => State.FilePath;
Workspace\Solution\TextDocumentState.cs (1)
188var newTextAndVersion = TextAndVersion.Create(newText, newVersion, FilePath);
Workspace\Solution\TextDocumentState_Checksum.cs (1)
37using (Logger.LogBlock(FunctionId.DocumentState_ComputeChecksumsAsync, FilePath, cancellationToken))
Workspace\Workspace.cs (1)
1472throw new NotSupportedException(string.Format(WorkspacesResources.Changing_document_0_is_not_supported, document.FilePath ?? document.Name));
Workspace\Workspace_Editor.cs (1)
377var newTextAndVersion = GetProperTextAndVersion(oldText, newText, version, oldDocumentState.FilePath);