tlang-runtime-compiler/TLang.Parser/ScopeNode.cs

17 lines
418 B
C#

using System;
using System.Collections.Generic;
namespace TLang.Parser
{
public class ScopeNode : Node
{
public bool RootScope {get;set;}=false;
public bool IsSwitchScope {get;set;}
public Node SwitchCondition {get;set;}=new Node();
public List<Node> Nodes {get;set;}=new List<Node>();
public void Add(Node node)
{
Nodes.Add(node);
}
}
}