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