2 writes to HasMappedPath
Microsoft.CodeAnalysis (2)
Diagnostic\FileLinePositionSpan.cs (2)
65HasMappedPath = false; 72HasMappedPath = hasMappedPath;
21 references to HasMappedPath
Microsoft.CodeAnalysis (10)
CodeGen\SequencePointList.cs (3)
124lastPathIsMapped = firstReal.Value.HasMappedPath; 168if (lastPath != fileLinePositionSpan.Path || lastPathIsMapped != fileLinePositionSpan.HasMappedPath) 171lastPathIsMapped = fileLinePositionSpan.HasMappedPath;
Diagnostic\DiagnosticFormatter.cs (1)
45if (mappedSpan.HasMappedPath)
Diagnostic\FileLinePositionSpan.cs (3)
101HasMappedPath == other.HasMappedPath && 118=> Hash.Combine(Path, Hash.Combine(HasMappedPath, Span.GetHashCode()));
Syntax\LineMapping.cs (2)
28/// If the line mapping directive maps the span into an explicitly specified file the <see cref="FileLinePositionSpan.HasMappedPath"/> is true. 29/// If the path is not mapped <see cref="FileLinePositionSpan.Path"/> is empty and <see cref="FileLinePositionSpan.HasMappedPath"/> is false.
Syntax\SyntaxTree.cs (1)
292return resolver.NormalizePath(mappedSpan.Path, baseFilePath: mappedSpan.HasMappedPath ? FilePath : null) ?? mappedSpan.Path;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Diagnostics\LocationsTests.cs (5)
49Assert.Equal(hasMappedPath, mappedSpan.HasMappedPath); 532Assert.False(lineInfo.HasMappedPath); 537Assert.False(mappedLineInfo.HasMappedPath); 542Assert.False(lineInfo.HasMappedPath); 547Assert.True(mappedLineInfo.HasMappedPath);
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
1337if (mappedLineSpan.HasMappedPath && mappedLineSpan.Path != oldStatement.Statement.FileSpan.Path)
EditAndContinue\ActiveStatementsMap.cs (1)
217var targetPath = mappedSection.HasMappedPath ? mappedSection.Path : oldTree.FilePath;
EditAndContinue\SourceFileSpan.cs (1)
14/// An alternative for <see cref="FileLinePositionSpan"/> without <see cref="FileLinePositionSpan.HasMappedPath"/> bit.
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Diagnostics\DiagnosticsPullCache.cs (1)
108writer.WriteBoolean(fileSpan.HasMappedPath);
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
LocationTests.vb (1)
52Assert.Equal(hasMappedPath, mappedSpan.HasMappedPath)
Microsoft.CodeAnalysis.Workspaces (1)
Diagnostics\DiagnosticDataLocation.cs (1)
71(mappedSpan.HasMappedPath || forceMappedPath))