Example #1
0
        protected virtual TResult VisitSubModelExpressionNode(SubModelExpressionNode subModuleExpression)
        {
            this.VisitExpressionNode(subModuleExpression.ModelExpression);
            this.VisitExpressionNode(subModuleExpression.SubModelExpression);

            return(null);
        }
            protected override IClientModel VisitSubModelExpressionNode(SubModelExpressionNode subModuleExpression)
            {
                _modelStack.Push(this.VisitExpressionNode(subModuleExpression.ModelExpression));
                var result = this.VisitExpressionNode(subModuleExpression.SubModelExpression);

                _modelStack.Pop();
                return(result);
            }
Example #3
0
        private Expression EvaluateSubModel(SubModelExpressionNode node)
        {
            var modelExpression = ParseExpression(node.ModelExpression);

            PushScope(modelExpression);
            var subModel = ParseExpression(node.SubModelExpression);

            PopScope();
            return(subModel);
        }
Example #4
0
            protected override JSchema VisitSubModelExpressionNode(SubModelExpressionNode subModuleExpression)
            {
                var schema = this.VisitExpressionNode(subModuleExpression.ModelExpression);

                _schemas.Push(schema);
                schema = VisitExpressionNode(subModuleExpression.SubModelExpression);
                _schemas.Pop();

                return(schema);
            }
Example #5
0
 private void EvaluateSubModelExpression(SubModelExpressionNode node)
 {
     EvaluateExpressionAgainstModelOnStack(node.ModelExpression);
     EvaluateExpressionAgainstModelOnStack(node.SubModelExpression);
 }