29 references to FilePath
Microsoft.CodeAnalysis.Features (11)
EditAndContinue\CommittedSolution.cs (1)
381
var sourceFilePath = documentState.
FilePath
;
EditAndContinue\Extensions.cs (4)
87
if (textDocumentState is SourceGeneratedDocumentState {
FilePath
: not null })
92
if (!PathUtilities.IsAbsolute(textDocumentState.
FilePath
))
106
if (IsWpfDesignTimeOnlyDocument(textDocumentState.
FilePath
, documentState.LanguageServices.Language))
113
if (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;
240
var filePath = compileTimeDocument?.State.
FilePath
;
267
compileTimeFilePaths.Any(compileTimeFilePath => HasMatchingFilePath(designTimeDocumentState.
FilePath
!, designTimeProjectDirectory, compileTimeFilePath)))
Microsoft.CodeAnalysis.Workspaces (18)
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
93
var 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)
27
public override string Path => _documentState.
FilePath
?? _documentState.Name;
Workspace\Solution\AnalyzerConfigDocumentState.cs (2)
42
asynchronousComputeFunction: async cancellationToken => AnalyzerConfig.Parse(await GetTextAsync(cancellationToken).ConfigureAwait(false),
FilePath
),
43
synchronousComputeFunction: cancellationToken => AnalyzerConfig.Parse(GetTextSynchronously(cancellationToken),
FilePath
),
Workspace\Solution\ProjectState.cs (2)
361
if (!string.IsNullOrEmpty(documentState.
FilePath
))
363
return documentState.
FilePath
;
Workspace\Solution\SolutionState.cs (6)
521
var filePath = documentState.
FilePath
;
575
var filePath = documentState.
FilePath
;
1247
if (oldDocument.
FilePath
== filePath)
1449
var newFilePathToDocumentIdsMap = CreateFilePathToDocumentIdsMapWithFilePath(newDocument.Id, oldDocument.
FilePath
, newDocument.
FilePath
);
1716
var filePath = documentState.
FilePath
;
Workspace\Solution\TextDocument.cs (1)
44
public string? FilePath => State.
FilePath
;
Workspace\Solution\TextDocumentState.cs (1)
188
var newTextAndVersion = TextAndVersion.Create(newText, newVersion,
FilePath
);
Workspace\Solution\TextDocumentState_Checksum.cs (1)
37
using (Logger.LogBlock(FunctionId.DocumentState_ComputeChecksumsAsync,
FilePath
, cancellationToken))
Workspace\Workspace.cs (1)
1472
throw new NotSupportedException(string.Format(WorkspacesResources.Changing_document_0_is_not_supported, document.
FilePath
?? document.Name));
Workspace\Workspace_Editor.cs (1)
377
var newTextAndVersion = GetProperTextAndVersion(oldText, newText, version, oldDocumentState.
FilePath
);