Пример #1
0
 public TryNode()
 {
     Code         = new CodeBlockNode();
     CatchClauses = new List <CatchNode>();
 }
Пример #2
0
 public IfNode()
 {
     TrueAction = new CodeBlockNode();
 }
Пример #3
0
 /// <summary>
 /// Loads nodes from other block.
 /// </summary>
 public void LoadFrom(CodeBlockNode other)
 {
     Statements = other.Statements;
 }
Пример #4
0
 protected bool Equals(CodeBlockNode other)
 {
     return(Statements.SequenceEqual(other.Statements));
 }
Пример #5
0
 public WhileNode()
 {
     Body = new CodeBlockNode(ScopeKind.Loop);
 }
Пример #6
0
 public CatchNode()
 {
     Code = new CodeBlockNode();
 }