예제 #1
0
 private static BoundUnaryOperator BindUnaryOperator(TokenKind kind)
 {
     return(BoundUnaryOperator.GetOperator(kind)
            ?? throw new Exception($"Unexpected unary operator kind {kind}."));
 }
예제 #2
0
 public BoundUnaryOperationExpression(SyntaxNode syntax, BoundUnaryOperator op, BoundExpression operand)
     : base(syntax)
 {
     Op      = op;
     Operand = operand;
 }