public IfStmtNode(ExprNode Condition, SuiteNode Body, IfStmtNode ElseIf, SuiteNode Else) { this.Condition = Condition; this.Body = Body; this.ElseIf = ElseIf; this.Else = Else; }
public FuncDefStmtNode(string Name, ParamsNode Parameters, string Type, SuiteNode Body) { this.Name = Name; this.Parameters = Parameters; this.Type = Type; this.Body = Body; }
public ForStmtNode(bool IsNewVarDef, string Value, string Type, ExprNode Source, SuiteNode Body) { this.IsNewVarDef = IsNewVarDef; this.Value = Value; this.Type = Type; this.Source = Source; this.Body = Body; }
/// <summary> /// Function that is called when a new Node is loaded. /// Checks the <see cref="TestNode.IsSuite"/> Property. /// Depending on the value it adds a <see cref="SuiteNode"/> or a <see cref="StubNode"/> /// </summary> /// <param name="node"><see cref="TestNode"/> to be added</param> private static void AddNode(TestNode node) { if (node.IsSuite) { var suite = new SuiteNode(node) { Assembly = _assembly }; TestSuites.Add(suite); foreach (TestNode test in node.Tests) { AddNode(test); } } else { var test = new StubNode(node) { Assembly = _assembly }; TestMethods.Add(test); } }
public WhileStmtNode(ExprNode Condition, SuiteNode Body) { this.Condition = Condition; this.Body = Body; }
public CtorDefStmtNode(ParamsNode Parameters, SuiteNode Body) { this.Parameters = Parameters; this.Body = Body; }