提交 4e68823d 编写于 作者: C Cyrus Najmabadi

Simplify

上级 18ab3452
......@@ -55,7 +55,7 @@ internal abstract partial class AbstractBinaryExpressionWrapper<TBinaryExpressio
return null;
}
var exprsAndOperators = GetExpressionsAndOperators(binaryExpr);
var exprsAndOperators = GetExpressionsAndOperators(precedence, binaryExpr);
#if DEBUG
Debug.Assert(exprsAndOperators.Length >= 3);
Debug.Assert(exprsAndOperators.Length % 2 == 1, "Should have odd number of exprs and operators");
......@@ -82,11 +82,11 @@ internal abstract partial class AbstractBinaryExpressionWrapper<TBinaryExpressio
exprsAndOperators, cancellationToken);
}
private ImmutableArray<SyntaxNodeOrToken> GetExpressionsAndOperators(TBinaryExpressionSyntax binaryExpr)
private ImmutableArray<SyntaxNodeOrToken> GetExpressionsAndOperators(
PrecedenceKind precedence, TBinaryExpressionSyntax binaryExpr)
{
var result = ArrayBuilder<SyntaxNodeOrToken>.GetInstance();
AddExpressionsAndOperators(
_precedenceService.GetPrecedenceKind(binaryExpr), binaryExpr, result);
AddExpressionsAndOperators(precedence, binaryExpr, result);
return result.ToImmutableAndFree();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册