Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address feedback
  • Loading branch information
RikkiGibson committed Jun 9, 2023
commit 88fc265e6dd4d201ace4c177ed4d021a6a3947ca
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,11 @@ private void DecodeInterceptsLocationAttribute(DecodeWellKnownAttributeArguments
var unmappedMatch = syntaxTrees.FirstOrDefault(static (tree, filePath) => tree.FilePath == filePath, attributeFilePath);
if (unmappedMatch != null)
{
diagnostics.Add(ErrorCode.ERR_InterceptorPathNotInCompilationWithUnmappedCandidate, attributeData.GetAttributeArgumentSyntaxLocation(filePathParameterIndex, attributeSyntax), attributeFilePath, mapPath(referenceResolver, unmappedMatch));
diagnostics.Add(
ErrorCode.ERR_InterceptorPathNotInCompilationWithUnmappedCandidate,
attributeData.GetAttributeArgumentSyntaxLocation(filePathParameterIndex, attributeSyntax),
attributeFilePath,
mapPath(referenceResolver, unmappedMatch));
return;
}

Expand All @@ -1012,7 +1016,11 @@ private void DecodeInterceptsLocationAttribute(DecodeWellKnownAttributeArguments
(referenceResolver, attributeFilePath: attributeFilePath.Replace('\\', '/')));
if (suffixMatch != null)
{
diagnostics.Add(ErrorCode.ERR_InterceptorPathNotInCompilationWithCandidate, attributeData.GetAttributeArgumentSyntaxLocation(filePathParameterIndex, attributeSyntax), attributeFilePath, mapPath(referenceResolver, suffixMatch));
diagnostics.Add(
ErrorCode.ERR_InterceptorPathNotInCompilationWithCandidate,
attributeData.GetAttributeArgumentSyntaxLocation(filePathParameterIndex, attributeSyntax),
attributeFilePath,
mapPath(referenceResolver, suffixMatch));
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3662,7 +3662,7 @@ public static void M0()
""";

var pathPrefix1 = PlatformInformation.IsWindows ? """C:\My\Machine\Specific\Path1\""" : "/My/Machine/Specific/Path1/";
var pathPrefix2 = PlatformInformation.IsWindows ? """C:\My\Machine\Specific\Path1\""" : "/My/Machine/Specific/Path2/";
var pathPrefix2 = PlatformInformation.IsWindows ? """C:\My\Machine\Specific\Path2\""" : "/My/Machine/Specific/Path2/";
var path1 = pathPrefix1 + "Program.cs";
var path2 = pathPrefix2 + "Program.cs";
var pathMap = ImmutableArray.Create(
Expand Down