Пример #1
0
 public override AstNode Visit(BoolConstant node)
 {
     if(node.GetNodeValue() == null)
         node.SetNodeValue(new ConstantValue(node.GetValue()));
     return node;
 }
Пример #2
0
        public override AstNode Visit(BoolConstant node)
        {
            // Begin the node.
            builder.BeginNode(node);

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

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