Exemplo n.º 1
0
 public SwitchStatement(HappySourceLocation startsAt, HappySourceLocation endsAt, ExpressionNodeBase switchExpression, SwitchCase[] cases, StatementBlock defaultCase)
     : base(startsAt, endsAt)
 {
     this.SwitchExpression = switchExpression;
     this.Cases = cases;
     this.DefaultStatementBlock = defaultCase;
 }
Exemplo n.º 2
0
 public BinaryExpression(ExpressionNodeBase lvalue, Operator oper, ExpressionNodeBase rvalue)
     : base(lvalue.Location, rvalue.Location)
 {
     this.LeftValue = lvalue;
     this.RightValue = rvalue;
     this.Operator = oper;
 }
Exemplo n.º 3
0
 public IfStatement(HappySourceLocation startsAt, ExpressionNodeBase value, StatementBlock trueStatementBlock, StatementBlock falseStatementBlock)
     : base(startsAt, falseStatementBlock != null ? falseStatementBlock.Location : trueStatementBlock.Location)
 {
     _condition = value;
     _trueStatementBlock = trueStatementBlock;
     _falseStatementBlock = falseStatementBlock;
 }
Exemplo n.º 4
0
 public ForStatement(HappySourceLocation span, Identifier loopVariable, ExpressionNodeBase enumerable, ExpressionNodeBase between, ExpressionNodeBase where, StatementBlock loopBody)
     : base(span, loopBody.Location)
 {
     _loopVariable = loopVariable;
     _enumerable = enumerable;
     _between = between;
     _where = where != null ? new ForWhereClause(where.Location, _loopVariable.Text, where) : null;
     _loopBody = loopBody;
 }
Exemplo n.º 5
0
 public FunctionCallExpression(HappySourceLocation startsAt, HappySourceLocation endsAt, Identifier templateIdentifier, ExpressionNodeBase[] arguments)
     : base(startsAt, endsAt, templateIdentifier)
 {
     _arguments = arguments;
 }
Exemplo n.º 6
0
 public ArgumentList(HappySourceLocation location, ExpressionNodeBase[] arguments)
     : base(location)
 {
     this.Arguments = arguments;
 }
Exemplo n.º 7
0
 public virtual void AfterRightExpressionVisit(ExpressionNodeBase node)
 {
     //Intentionally left blank
 }
Exemplo n.º 8
0
 public OutputStatement(ExpressionNodeBase[] expressionsToWrite)
     : base(expressionsToWrite.First().Location, expressionsToWrite.Last().Location)
 {
     _expressionsToWrite = expressionsToWrite;
 }
Exemplo n.º 9
0
 public WhileStatement(HappySourceLocation startsAt, ExpressionNodeBase condition, StatementBlock block)
     : base(startsAt, block.Location)
 {
     Block = block;
     this.Condition = condition;
 }
Exemplo n.º 10
0
 public ReturnStatement(HappySourceLocation location, ExpressionNodeBase returnExp)
     : base(location, returnExp != null ? returnExp.Location : location)
 {
     this.ReturnExp = returnExp;
 }
Exemplo n.º 11
0
 public ForWhereClause(HappySourceLocation startsAt, string loopVariableName, ExpressionNodeBase expressionNode)
     : base(startsAt, expressionNode.Location)
 {
     LoopVariableName = loopVariableName;
     _expressionNode = expressionNode;
 }
Exemplo n.º 12
0
 public VariableDef(Identifier identifier, ExpressionNodeBase defaultExpression)
     : base(identifier.Location, defaultExpression != null ? defaultExpression.Location : null, identifier)
 {
     this.InitializerExpression = defaultExpression;
 }
Exemplo n.º 13
0
 public NewObjectExpression(HappySourceLocation startsAt, HappySourceLocation endsAt, ExpressionNodeBase typeExpression, ExpressionNodeBase[] constructorArgs)
     : base(startsAt, endsAt)
 {
     this.TypeExpression = typeExpression;
     this.ConstructorAgs = constructorArgs;
 }
Exemplo n.º 14
0
 public UnaryExpression(ExpressionNodeBase value, Operator oper)
     : base(oper.Location, value.Location)
 {
     this.Value = value;
     this.Operator = oper;
 }
Exemplo n.º 15
0
 public SwitchCase(ExpressionNodeBase[] caseValues, StatementBlock statements)
     : base(statements.Location)
 {
     this.CaseValues = caseValues;
     this.CaseStatementBlock = statements;
 }