/// <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; }
internal CatcherNode(TryNode parent, string caughtClass) : base(parent) { return; }
internal static CatchNode Create(TryNode parent, ICollection<NodeBase<AstNode>> wrappedNodes) { return new CatchNode(parent, wrappedNodes); }
internal CatchNode(TryNode parent, ICollection<NodeBase<AstNode>> moved) : base(parent, moved) { return; }