mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
C#: Update the extractor to use the BestOrDefault extension method to choose between multiple locations.
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Semmle.Extraction
|
||||
{
|
||||
Text = msg;
|
||||
EntityText = symbol.ToString() ?? "";
|
||||
Location = symbol.Locations.FirstOrDefault();
|
||||
Location = symbol.Locations.BestOrDefault();
|
||||
}
|
||||
|
||||
public InternalError(SyntaxNode node, string msg)
|
||||
|
||||
Reference in New Issue
Block a user