mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
C#: Reduce nesting and fix some formatting
This commit is contained in:
@@ -19,13 +19,11 @@ namespace Semmle.Extraction.CSharp.Populators
|
||||
{
|
||||
return l1;
|
||||
}
|
||||
else
|
||||
{
|
||||
var l2 = n2.FixedLocation();
|
||||
int start = System.Math.Min(l1.SourceSpan.Start, l2.SourceSpan.Start);
|
||||
int end = System.Math.Max(l1.SourceSpan.End, l2.SourceSpan.End);
|
||||
return Location.Create(n2.SyntaxTree, new Microsoft.CodeAnalysis.Text.TextSpan(start, end - start));
|
||||
}
|
||||
|
||||
var l2 = n2.FixedLocation();
|
||||
int start = System.Math.Min(l1.SourceSpan.Start, l2.SourceSpan.Start);
|
||||
int end = System.Math.Max(l1.SourceSpan.End, l2.SourceSpan.End);
|
||||
return Location.Create(n2.SyntaxTree, new Microsoft.CodeAnalysis.Text.TextSpan(start, end - start));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user