public static UnaryPostOperatorNode Create(UnaryPostOperatorType type, SubExpressionNode operand, Token token, int tokenIndex) { switch (type) { case UnaryPostOperatorType.DoublePlus: return new DoublePlusUnaryPostOperatorNode(operand, token, tokenIndex); case UnaryPostOperatorType.DoubleMinus: return new DoubleMinusUnaryPostOperatorNode(operand, token, tokenIndex); default: throw new InternalCompilerException("Unknown UnaryPostOperatorType."); } }
protected UnaryPostOperatorNode(UnaryPostOperatorType operatorType, SubExpressionNode operand, Token token, int tokenIndex) : base(token, tokenIndex) { OperatorType = operatorType; Operand = operand; }