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

17 lines
418 B
C#
Raw Normal View History

2023-07-27 03:31:32 +00:00
using System;
using System.Collections.Generic;
namespace TLang.Parser
{
public class ScopeNode : Node
{
2023-07-29 00:11:09 +00:00
public bool RootScope {get;set;}=false;
2023-07-27 03:31:32 +00:00
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);
}
}
}