Пример #1
0
		public RazorRootState (
			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 RazorRootState(
            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;
        }