Exemple #1
0
 public override AstNode Visit(IntegerConstant node)
 {
     if(node.GetNodeValue() == null)
         node.SetNodeValue(new ConstantValue(node.GetValue()));
     return node;
 }
Exemple #2
0
        public override AstNode Visit(IntegerConstant node)
        {
            // Begin the node.
            builder.BeginNode(node);

            // Load the constant.
            builder.CreateLoadInt32(node.GetValue());

            // Finish.
            return builder.EndNode();
        }