示例#1
0
        protected override bool CanRewrite(Block block)
        {
            AttributeBlockCodeGenerator gen = block.CodeGenerator as AttributeBlockCodeGenerator;

            return(gen != null &&
                   block.Children.Any() &&
                   block.Children.All(IsLiteralAttributeValue));
        }
 public PreprocessedAttributeBlockCodeGenerator(AttributeBlockCodeGenerator old)
     : base(old.Name, old.Prefix, old.Suffix)
 {
 }