public RazorFreeState(
            HtmlTagState tagState,
            HtmlClosingTagState closingTagState,
            XmlCommentState commentState,
            XmlCDataState cDataState,
            XmlDocTypeState docTypeState,
            XmlProcessingInstructionState processingInstructionState,
            RazorCodeBlockState codeBlockState,
            RazorExpressionState expressionState,
            RazorCommentState razorCommentState,
            RazorSpeculativeState speculativeState
            )
            : base(tagState, closingTagState, commentState, cDataState, docTypeState, processingInstructionState)
        {
            CodeBlockState     = codeBlockState;
            ExpressionState    = expressionState;
            ServerCommentState = razorCommentState;
            SpeculativeState   = speculativeState;

            Adopt(CodeBlockState);
            Adopt(ExpressionState);
            Adopt(ServerCommentState);
            Adopt(SpeculativeState);

            UseSimplifiedBracketTracker = false;
        }
Пример #2
0
        public RazorCodeFragmentState(HtmlTagState html, HtmlClosingTagState htmlClosing,
                                      RazorCommentState comment, RazorExpressionState expression, RazorSpeculativeState speculative)
        {
            htmlTagState        = html;
            htmlClosingTagState = htmlClosing;
            razorCommentState   = comment;
            expressionState     = expression;
            speculativeState    = speculative;

            Adopt(htmlTagState);
            Adopt(htmlClosingTagState);
            Adopt(razorCommentState);
            Adopt(expressionState);
            Adopt(speculativeState);

            bracketsBuilder = new StringBuilder();
        }
Пример #3
0
        public WebFormsRootState(
            HtmlTagState tagState,
            HtmlClosingTagState closingTagState,
            XmlCommentState commentState,
            XmlCDataState cDataState,
            XmlDocTypeState docTypeState,
            XmlProcessingInstructionState processingInstructionState,
            WebFormsExpressionState expressionState,
            WebFormsDirectiveState directiveState,
            WebFormsServerCommentState serverCommentState
            )
            : base(tagState, closingTagState, commentState, cDataState, docTypeState, processingInstructionState)
        {
            this.expressionState    = expressionState;
            this.directiveState     = directiveState;
            this.serverCommentState = serverCommentState;

            Adopt(this.ExpressionState);
            Adopt(this.DirectiveState);
            Adopt(this.ServerCommentState);
        }