public SwitchStatement(HappySourceLocation startsAt, HappySourceLocation endsAt, ExpressionNodeBase switchExpression, SwitchCase[] cases, StatementBlock defaultCase) : base(startsAt, endsAt) { this.SwitchExpression = switchExpression; this.Cases = cases; this.DefaultStatementBlock = defaultCase; }
public BinaryExpression(ExpressionNodeBase lvalue, Operator oper, ExpressionNodeBase rvalue) : base(lvalue.Location, rvalue.Location) { this.LeftValue = lvalue; this.RightValue = rvalue; this.Operator = oper; }
public IfStatement(HappySourceLocation startsAt, ExpressionNodeBase value, StatementBlock trueStatementBlock, StatementBlock falseStatementBlock) : base(startsAt, falseStatementBlock != null ? falseStatementBlock.Location : trueStatementBlock.Location) { _condition = value; _trueStatementBlock = trueStatementBlock; _falseStatementBlock = falseStatementBlock; }
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; }
public FunctionCallExpression(HappySourceLocation startsAt, HappySourceLocation endsAt, Identifier templateIdentifier, ExpressionNodeBase[] arguments) : base(startsAt, endsAt, templateIdentifier) { _arguments = arguments; }
public ArgumentList(HappySourceLocation location, ExpressionNodeBase[] arguments) : base(location) { this.Arguments = arguments; }
public virtual void AfterRightExpressionVisit(ExpressionNodeBase node) { //Intentionally left blank }
public OutputStatement(ExpressionNodeBase[] expressionsToWrite) : base(expressionsToWrite.First().Location, expressionsToWrite.Last().Location) { _expressionsToWrite = expressionsToWrite; }
public WhileStatement(HappySourceLocation startsAt, ExpressionNodeBase condition, StatementBlock block) : base(startsAt, block.Location) { Block = block; this.Condition = condition; }
public ReturnStatement(HappySourceLocation location, ExpressionNodeBase returnExp) : base(location, returnExp != null ? returnExp.Location : location) { this.ReturnExp = returnExp; }
public ForWhereClause(HappySourceLocation startsAt, string loopVariableName, ExpressionNodeBase expressionNode) : base(startsAt, expressionNode.Location) { LoopVariableName = loopVariableName; _expressionNode = expressionNode; }
public VariableDef(Identifier identifier, ExpressionNodeBase defaultExpression) : base(identifier.Location, defaultExpression != null ? defaultExpression.Location : null, identifier) { this.InitializerExpression = defaultExpression; }
public NewObjectExpression(HappySourceLocation startsAt, HappySourceLocation endsAt, ExpressionNodeBase typeExpression, ExpressionNodeBase[] constructorArgs) : base(startsAt, endsAt) { this.TypeExpression = typeExpression; this.ConstructorAgs = constructorArgs; }
public UnaryExpression(ExpressionNodeBase value, Operator oper) : base(oper.Location, value.Location) { this.Value = value; this.Operator = oper; }
public SwitchCase(ExpressionNodeBase[] caseValues, StatementBlock statements) : base(statements.Location) { this.CaseValues = caseValues; this.CaseStatementBlock = statements; }