示例#1
0
文件: SyntaxNode.cs 项目: 20chan/slek
 public IfStmtNode(ExprNode Condition, SuiteNode Body, IfStmtNode ElseIf, SuiteNode Else)
 {
     this.Condition = Condition;
     this.Body      = Body;
     this.ElseIf    = ElseIf;
     this.Else      = Else;
 }
示例#2
0
文件: SyntaxNode.cs 项目: 20chan/slek
 public FuncDefStmtNode(string Name, ParamsNode Parameters, string Type, SuiteNode Body)
 {
     this.Name       = Name;
     this.Parameters = Parameters;
     this.Type       = Type;
     this.Body       = Body;
 }
示例#3
0
文件: SyntaxNode.cs 项目: 20chan/slek
 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;
 }
示例#4
0
 /// <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);
     }
 }
示例#5
0
文件: SyntaxNode.cs 项目: 20chan/slek
 public WhileStmtNode(ExprNode Condition, SuiteNode Body)
 {
     this.Condition = Condition;
     this.Body      = Body;
 }
示例#6
0
文件: SyntaxNode.cs 项目: 20chan/slek
 public CtorDefStmtNode(ParamsNode Parameters, SuiteNode Body)
 {
     this.Parameters = Parameters;
     this.Body       = Body;
 }