Пример #1
0
        public static UnaryExpressionNode UnaryExpressionNode(ASTNodeType nodeType, ASTNode expr)
        {
            UnaryExpressionNode unaryNode = s_UnaryNodePool.Get();

            unaryNode.type       = nodeType;
            unaryNode.expression = expr;
            return(unaryNode);
        }
Пример #2
0
        public static UnaryExpressionNode DirectCastNode(TypeLookup typeLookup, ASTNode expression)
        {
            UnaryExpressionNode unaryNode = s_UnaryNodePool.Get();

            unaryNode.type       = ASTNodeType.DirectCast;
            unaryNode.typeLookup = typeLookup;
            unaryNode.expression = expression;
            return(unaryNode);
        }