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

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

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