Exemple #1
0
 public MethodMember(Source source, object name, object parameters, object body)
     : base(source)
 {
     this.name = (Name) name;
     this.parameters = (List<object>) parameters;
     this.body = (Statement) body;
 }
 public ModuleStatement(Source source, object name,
     object body)
         : base(source)
 {
     this.name = (Name) name;
     this.body = (Statement) body;
 }
 public WhileStatement(Source source, object condition,
     object body)
         : base(source)
 {
     this.condition = (Expression) condition;
     this.body = (Statement) body;
 }
 public FunctionStatement(Source source, object name,
     object parameters, object body)
         : base(source)
 {
     this.name = (Name) name;
     this.parameters = (List<object>) parameters;
     this.body = (Statement) body;
 }
Exemple #5
0
 public TryStatement(Source source, object tryBody,
     object catchVariable, object catchBody)
         : base(source)
 {
     this.tryBody = (Statement) tryBody;
     this.catchVariable = (Expression) catchVariable;
     this.catchBody = (Statement) catchBody;
 }
Exemple #6
0
 public IfStatement(Source source, object condition,
     object trueBody, object falseBody)
         : base(source)
 {
     this.condition = (Expression) condition;
     this.trueBody = (Statement) trueBody;
     this.falseBody = (Statement) falseBody;
 }
 public TopLevelStatement(Source source,
     object statement)
         : base(source)
 {
     this.statement = (Statement) statement;
 }
 public ConstructorMember(Source source, object parameters, object body)
     : base(source)
 {    
     this.parameters = (List<object>) parameters;
     this.body = (Statement) body;
 }