예제 #1
0
 private static BoundBinaryOperator BindBinaryOperator(TokenKind kind)
 {
     return(BoundBinaryOperator.GetOperator(kind)
            ?? throw new Exception($"Unexpected binary operator kind {kind}."));
 }
예제 #2
0
 public BoundBinaryOperationExpression(SyntaxNode syntax, BoundExpression left, BoundBinaryOperator op, BoundExpression right)
     : base(syntax)
 {
     Left  = left;
     Op    = op;
     Right = right;
 }