Пример #1
0
 public AssignStatement(string name, Expression value, Location location)
     : base(location)
 {
     this.name = name;
     this.value = value;
     call = null;
 }
Пример #2
0
 public SharedAttrDefinition(string name,
                             TypeSpecifier typeSpecifier,
                             Expression value,
                             AttrModifier modifier,
                             Location location)
     : base(name, typeSpecifier, modifier, location)
 {
     this.value = value;
 }
Пример #3
0
 public VoidTestExpression(Expression expression, Location location)
     : base(location)
 {
     this.expression = expression;
 }
Пример #4
0
 public OrExpression(Expression left, Expression right,
                     Location location)
     : base(left, right, location)
 {
 }
Пример #5
0
 public ModalExpression(ArgumentMode mode, Expression expression,
                        Location location)
     : base(location)
 {
     this.mode = mode;
     this.expression = expression;
 }
Пример #6
0
 public IterCallExpression(Expression receiver,
                           string name,
                           TypedNodeList arguments,
                           Location location)
     : base(receiver, name, arguments, location)
 {
 }
Пример #7
0
 public IfExpression(Expression test,
                     Node thenPart,
                     Node elsePart,
                     Location location)
     : base(location)
 {
     ifStatement = new IfStatement(test, thenPart, elsePart, location);
 }
Пример #8
0
 public ConditionalExpression(Expression left, Expression right,
                              Location location)
     : base(location)
 {
     this.left = left;
     this.right = right;
 }
Пример #9
0
 public CallExpression(TypeSpecifier typeSpecifier,
                       string name,
                       TypedNodeList arguments,
                       Location location)
     : base(location)
 {
     receiver = null;
     this.typeSpecifier = typeSpecifier;
     this.name = name;
     this.arguments = arguments;
     flip = false;
     method = null;
     isBuiltin = false;
 }
Пример #10
0
 public CallExpression(Expression receiver,
                       string name,
                       TypedNodeList arguments)
     : this(receiver, name, arguments, false, Location.Null)
 {
 }
Пример #11
0
 public CallExpression(Expression receiver,
                       string name,
                       TypedNodeList arguments,
                       bool flip,
                       Location location)
     : base(location)
 {
     this.receiver = receiver;
     typeSpecifier = null;
     this.name = name;
     this.arguments = arguments;
     this.flip = flip;
     method = null;
     isBuiltin = false;
 }
Пример #12
0
 public CaseStatement(Expression test,
                      NodeList whenPartList,
                      StatementList elsePart,
                      Location location)
     : base(location)
 {
     this.test = test;
     this.whenPartList = whenPartList;
     this.elsePart = elsePart;
 }
Пример #13
0
 public YieldStatement(Expression value, Location location)
     : base(value, location)
 {
     resumePoint = new ResumePoint();
 }
Пример #14
0
 public ReturnStatement(Expression value, Location location)
     : base(location)
 {
     this.value = value;
 }
Пример #15
0
 public IfStatement(Expression test,
                    Node thenPart,
                    Node elsePart,
                    Location location)
     : base(location)
 {
     this.test = test;
     this.thenPart = thenPart;
     this.elsePart = elsePart;
 }
Пример #16
0
 public ExpressionStatement(Expression expression, Location location)
     : base(location)
 {
     expression.HasValue = false;
     this.expression = expression;
 }