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