Exemple #1
0
        public IncludeStatement(EvaluationStatement target, StatementInfo info)
        {
            Target = target;
            Info   = info;

            TraversableChildren = StatementHelpers.CreateChildren(target);
        }
        public ReturnStatement(EvaluationStatement result, StatementInfo info)
        {
            Result = result;
            Info   = info;

            TraversableChildren = StatementHelpers.CreateChildren(result);
        }
        public ConditionalBlockStatement(EvaluationStatement condition, IStatement statement, StatementInfo info)
        {
            Condition = condition;
            Statement = statement;
            Info      = info;

            TraversableChildren = StatementHelpers.CreateChildren(condition, statement);
        }
Exemple #4
0
        public IndexerAccessStatement(EvaluationStatement source, EvaluationStatement indexer, StatementInfo info)
        {
            Source  = source;
            Indexer = indexer;
            Info    = info;

            TraversableChildren = StatementHelpers.CreateChildren(source, indexer);
        }
Exemple #5
0
        public ForEachStatement(IStatement variable, EvaluationStatement iterator, IStatement statement, StatementInfo info)
        {
            Variable  = variable;
            Iterator  = iterator;
            Statement = statement;
            Info      = info;

            TraversableChildren = StatementHelpers.CreateChildren(variable, iterator, statement);
        }
Exemple #6
0
        public AssignmentStatement(EvaluationStatement leftSide, EvaluationStatement rightSide,
                                   StatementInfo info, IStatement parentStatement = null)
        {
            LeftSide        = leftSide;
            RightSide       = rightSide;
            Info            = info;
            ParentStatement = parentStatement;

            TraversableChildren = StatementHelpers.CreateChildren(leftSide, rightSide);
        }