Example #1
0
        /// <summary>Create a new try node that will encompass all of the given nodes.</summary>
        /// <param name="wrappedNodes"></param>
        /// <returns></returns>
        internal static TryNode Create(ICollection<NodeBase<AstNode>> wrappedNodes)
        {
            NodeBase<AstNode> parent = NodeBase<AstNode>.FindNearestParent(wrappedNodes);

            if (null == parent) { throw new REException(); }
            TryNode result = new TryNode((AstNode)parent);
            // The guarded node must always be the first son.
            new GuardedNode(result, wrappedNodes);
            return result;
        }
Example #2
0
 internal CatcherNode(TryNode parent, string caughtClass)
     : base(parent)
 {
     return;
 }
Example #3
0
 internal static CatchNode Create(TryNode parent, ICollection<NodeBase<AstNode>> wrappedNodes)
 {
     return new CatchNode(parent, wrappedNodes);
 }
Example #4
0
 internal CatchNode(TryNode parent, ICollection<NodeBase<AstNode>> moved)
     : base(parent, moved)
 {
     return;
 }