Ejemplo n.º 1
0
 public void BeginAddHtmlAttributeValues(
     TagHelperExecutionContext executionContext,
     string attributeName,
     int attributeValuesCount)
 {
     _tagHelperAttributeInfo = new TagHelperAttributeInfo(executionContext, attributeName, attributeValuesCount);
 }
Ejemplo n.º 2
0
 private void WriteTagHelperAttributeInfo(TagHelperAttributeInfo info)
 {
     // Write attributes
     WriteSeparator();
     Write(info.Name);
     WriteSeparator();
     Write(info.AttributeStructure);
     WriteSeparator();
     Write(info.Bound ? "Bound" : "Unbound");
 }
Ejemplo n.º 3
0
 private static void WriteTagHelperAttributeInfo(TagHelperAttributeInfo info, StringBuilder builder)
 {
     // Write attributes
     builder.Append(" - ");
     builder.Append(info.Name);
     builder.Append(" - ");
     builder.Append(info.AttributeStructure);
     builder.Append(" - ");
     builder.Append(info.Bound ? "Bound" : "Unbound");
 }
        public MarkupTagHelperDirectiveAttributeSyntax WithTagHelperAttributeInfo(TagHelperAttributeInfo info)
        {
            var annotations = new List <SyntaxAnnotation>(GetAnnotations())
            {
                new SyntaxAnnotation(TagHelperAttributeInfoKey, info)
            };

            var newGreen = Green.WithAnnotationsGreen(annotations.ToArray());

            return((MarkupTagHelperDirectiveAttributeSyntax)newGreen.CreateRed(Parent, Position));
        }