Example #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;
 }
Example #2
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;
 }
Example #3
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;
 }
Example #4
0
 protected LoopStatementBase(HappySourceLocation startsAt, HappySourceLocation endsAt)
     : base(startsAt, endsAt)
 {
 }
Example #5
0
 public Identifier(HappySourceLocation location, string text)
 {
     _location = location;
     _text = text;
 }
Example #6
0
 protected StatementNodeBase(HappySourceLocation startsAt, HappySourceLocation endsAt)
     : base(startsAt, endsAt)
 {
 }
Example #7
0
 public BreakStatement(HappySourceLocation location)
     : base(location)
 {
 }
Example #8
0
 public ContinueStatement(HappySourceLocation location)
     : base(location)
 {
 }
Example #9
0
 protected NamedAstNodeBase(HappySourceLocation startsAt, HappySourceLocation endsAt, Identifier name)
     : base(startsAt, endsAt)
 {
     this.Name = name;
 }
Example #10
0
 public LiteralExpression(HappySourceLocation span, object value)
     : base(span)
 {
     _value = value;
 }
Example #11
0
 public StatementBlock(HappySourceLocation startsAt, HappySourceLocation endsAt, AstNodeBase[] stmts)
     : base(startsAt, endsAt)
 {
     this.Statements = stmts;
 }
Example #12
0
 internal ScopeAstNodeBase(HappySourceLocation startsAt, HappySourceLocation endsAt)
     : base(startsAt, endsAt)
 {
 }
Example #13
0
 protected ExpressionNodeBase(HappySourceLocation startsAt, HappySourceLocation endsAt)
     : base(startsAt, endsAt)
 {
 }
Example #14
0
 protected ExpressionNodeBase(HappySourceLocation location)
     : base(location)
 {
 }
Example #15
0
 public NewObjectExpression(HappySourceLocation startsAt, HappySourceLocation endsAt, ExpressionNodeBase typeExpression, ExpressionNodeBase[] constructorArgs)
     : base(startsAt, endsAt)
 {
     this.TypeExpression = typeExpression;
     this.ConstructorAgs = constructorArgs;
 }
Example #16
0
 public VerbatimSection(HappySourceLocation span, string output)
     : base(span)
 {
     _text = output;
 }
Example #17
0
 public ReturnStatement(HappySourceLocation location, ExpressionNodeBase returnExp)
     : base(location, returnExp != null ? returnExp.Location : location)
 {
     this.ReturnExp = returnExp;
 }
Example #18
0
 public NullExpression(HappySourceLocation loc)
     : base(loc)
 {
 }
Example #19
0
 public WhileStatement(HappySourceLocation startsAt, ExpressionNodeBase condition, StatementBlock block)
     : base(startsAt, block.Location)
 {
     Block = block;
     this.Condition = condition;
 }
Example #20
0
 public DefStatement(HappySourceLocation startsAt, VariableDef[] variableDefs)
     : base(startsAt, variableDefs.Last().Location)
 {
     this.VariableDefs = variableDefs;
 }
Example #21
0
 public ArgumentList(HappySourceLocation location, ExpressionNodeBase[] arguments)
     : base(location)
 {
     this.Arguments = arguments;
 }
Example #22
0
 public Function(HappySourceLocation startsAt, Identifier name, FunctionParameterList parameterList, StatementBlock body)
     : base(startsAt, body.Location, name)
 {
     _parameterList = parameterList;
     _body = body;
 }
Example #23
0
 protected NamedExpressionNodeBase(HappySourceLocation startsAt, HappySourceLocation endsAt, Identifier identifier)
     : base(startsAt, endsAt)
 {
     _identifier = identifier;
 }
Example #24
0
 public UnexpectedToken(HappySourceLocation span)
     : base(span)
 {
 }
Example #25
0
 protected StatementNodeBase(HappySourceLocation location)
     : base(location)
 {
 }
Example #26
0
 public ForWhereClause(HappySourceLocation startsAt, string loopVariableName, ExpressionNodeBase expressionNode)
     : base(startsAt, expressionNode.Location)
 {
     LoopVariableName = loopVariableName;
     _expressionNode = expressionNode;
 }
Example #27
0
 public UseStatement(HappySourceLocation startsAt, HappySourceLocation endsAt, string[] namespaceSegments)
     : base(startsAt, endsAt)
 {
     this.NamespaceSegments = namespaceSegments;
 }
Example #28
0
 public FunctionParameterList(HappySourceLocation startsAt, HappySourceLocation endsAt, FunctionParameter[] parameters)
     : base(startsAt, endsAt)
 {
     _parameters = parameters;
 }
Example #29
0
 public FunctionCallExpression(HappySourceLocation startsAt, HappySourceLocation endsAt, Identifier templateIdentifier, ExpressionNodeBase[] arguments)
     : base(startsAt, endsAt, templateIdentifier)
 {
     _arguments = arguments;
 }
Example #30
0
 public LoadDirective(HappySourceLocation startsAt, HappySourceLocation endsAt, string assemblyName)
     : base(startsAt, endsAt)
 {
     this.AssemblyName = assemblyName;
 }