Example #1
0
        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));
        }
Example #2
0
 public NamespaceNode(string name, GroupingNode globals, GroupingNode scripts)
     : base(new List <NodeBase>(new NodeBase[] { globals, scripts }))
 {
     m_name = name;
 }