public static GroupingNode MakeGrouping(NodeBase expression) { GroupingNode group = expression as GroupingNode; if (group != null) { return(group); } List <NodeBase> expressions = new List <NodeBase>(); expressions.Add(expression); return(new GroupingNode(expressions)); }
public NamespaceNode(string name, GroupingNode globals, GroupingNode scripts) : base(new List <NodeBase>(new NodeBase[] { globals, scripts })) { m_name = name; }