Inheritance: TypedNode
示例#1
0
文件: statement.cs 项目: shugo/babel
 public AssignStatement(string name, Expression value, Location location)
     : base(location)
 {
     this.name = name;
     this.value = value;
     call = null;
 }
示例#2
0
文件: class.cs 项目: shugo/babel
 public SharedAttrDefinition(string name,
                             TypeSpecifier typeSpecifier,
                             Expression value,
                             AttrModifier modifier,
                             Location location)
     : base(name, typeSpecifier, modifier, location)
 {
     this.value = value;
 }
示例#3
0
文件: expression.cs 项目: shugo/babel
 public VoidTestExpression(Expression expression, Location location)
     : base(location)
 {
     this.expression = expression;
 }
示例#4
0
文件: expression.cs 项目: shugo/babel
 public OrExpression(Expression left, Expression right,
                     Location location)
     : base(left, right, location)
 {
 }
示例#5
0
文件: expression.cs 项目: shugo/babel
 public ModalExpression(ArgumentMode mode, Expression expression,
                        Location location)
     : base(location)
 {
     this.mode = mode;
     this.expression = expression;
 }
示例#6
0
文件: expression.cs 项目: shugo/babel
 public IterCallExpression(Expression receiver,
                           string name,
                           TypedNodeList arguments,
                           Location location)
     : base(receiver, name, arguments, location)
 {
 }
示例#7
0
文件: expression.cs 项目: shugo/babel
 public IfExpression(Expression test,
                     Node thenPart,
                     Node elsePart,
                     Location location)
     : base(location)
 {
     ifStatement = new IfStatement(test, thenPart, elsePart, location);
 }
示例#8
0
文件: expression.cs 项目: shugo/babel
 public ConditionalExpression(Expression left, Expression right,
                              Location location)
     : base(location)
 {
     this.left = left;
     this.right = right;
 }
示例#9
0
文件: expression.cs 项目: shugo/babel
 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
文件: expression.cs 项目: shugo/babel
 public CallExpression(Expression receiver,
                       string name,
                       TypedNodeList arguments)
     : this(receiver, name, arguments, false, Location.Null)
 {
 }
示例#11
0
文件: expression.cs 项目: shugo/babel
 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
文件: statement.cs 项目: shugo/babel
 public CaseStatement(Expression test,
                      NodeList whenPartList,
                      StatementList elsePart,
                      Location location)
     : base(location)
 {
     this.test = test;
     this.whenPartList = whenPartList;
     this.elsePart = elsePart;
 }
示例#13
0
文件: statement.cs 项目: shugo/babel
 public YieldStatement(Expression value, Location location)
     : base(value, location)
 {
     resumePoint = new ResumePoint();
 }
示例#14
0
文件: statement.cs 项目: shugo/babel
 public ReturnStatement(Expression value, Location location)
     : base(location)
 {
     this.value = value;
 }
示例#15
0
文件: statement.cs 项目: shugo/babel
 public IfStatement(Expression test,
                    Node thenPart,
                    Node elsePart,
                    Location location)
     : base(location)
 {
     this.test = test;
     this.thenPart = thenPart;
     this.elsePart = elsePart;
 }
示例#16
0
文件: statement.cs 项目: shugo/babel
 public ExpressionStatement(Expression expression, Location location)
     : base(location)
 {
     expression.HasValue = false;
     this.expression = expression;
 }