public AttributeToken(int position, string beforeNameFragment, string name, string beforeValueFragment, AttributeValueToken value) : base(position) { BeforeNameFragment = beforeNameFragment; Name = name; BeforeValueFragment = beforeValueFragment; Value = value; }
public void AddOrUpdateAttribute(string name, AttributeValueToken value) { var attribute = FindAttribute(name); if (attribute == null) { attribute = new AttributeToken(0, " ", name, "=", value); Attributes.Add(attribute); } else { attribute.ChangeValue(value); } }
public void ChangeValue(AttributeValueToken value) { Value = value; }