public static AttributeSyntax Create(NameToken name, EqualsToken eq, AttributeLiteralToken literal) { if (eq.Equals(EqualsToken.Default)) { return(new AttributeSyntaxWithDefaultEqToken(name, literal)); } return(new AttributeSyntaxWithCustomEqToken(name, eq, literal)); }
public AttributeSyntaxWithCustomEqToken(NameToken name, EqualsToken eq, AttributeLiteralToken literal) : base( name, literal) { Eq = eq; }
protected virtual SyntaxToken VisitEquals(EqualsToken token) { return(token); }