private void VisitCodeSnippet(CodeBlockExpression codeBlock)
        {
            string code = (Debug)
                                ? codeBlock.Code
                                : CommentTrimmer.Trim(codeBlock.Code);

            AppendCodeBlock(code);
        }
        protected override void VisitCodeBlock(CodeBlockExpression codeBlock)
        {
            base.VisitCodeBlock(codeBlock);
            switch (codeBlock.BlockType)
            {
            case CodeBlockType.Code:
                VisitCodeSnippet(codeBlock);
                break;

            case CodeBlockType.Expression:
                VisitCodeExpression(codeBlock);
                break;

            case CodeBlockType.DataBinding:
                VisitCodeExpression(codeBlock);
                break;
            }
        }
		protected virtual void VisitCodeBlock(CodeBlockExpression codeBlock)
		{
		}
 private void VisitCodeExpression(CodeBlockExpression codeBlock)
 {
     AppendCodeBlock(String.Format("{0}.push({1});",
                                   CodeBufferVariableName, codeBlock.Code));
 }
		private void VisitCodeExpression(CodeBlockExpression codeBlock)
		{
			AppendCodeBlock(String.Format("{0}.push({1});", 
				CodeBufferVariableName, codeBlock.Code));
		}
		private void VisitCodeSnippet(CodeBlockExpression codeBlock)
		{
			string code = (Debug)
				? codeBlock.Code
				: CommentTrimmer.Trim(codeBlock.Code);

			AppendCodeBlock(code);
		}
		protected override void VisitCodeBlock(CodeBlockExpression codeBlock)
		{
			base.VisitCodeBlock(codeBlock);
			switch (codeBlock.BlockType)
			{
				case CodeBlockType.Code:
					VisitCodeSnippet(codeBlock);
					break;
				case CodeBlockType.Expression:
					VisitCodeExpression(codeBlock);
					break;
				case CodeBlockType.DataBinding:
					VisitCodeExpression(codeBlock);
					break;
			}
		}
Ejemplo n.º 8
0
 protected virtual void VisitCodeBlock(CodeBlockExpression codeBlock)
 {
 }