public void BeginAddHtmlAttributeValues( TagHelperExecutionContext executionContext, string attributeName, int attributeValuesCount) { _tagHelperAttributeInfo = new TagHelperAttributeInfo(executionContext, attributeName, attributeValuesCount); }
private void WriteTagHelperAttributeInfo(TagHelperAttributeInfo info) { // Write attributes WriteSeparator(); Write(info.Name); WriteSeparator(); Write(info.AttributeStructure); WriteSeparator(); Write(info.Bound ? "Bound" : "Unbound"); }
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)); }