예제 #1
0
 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));
 }
예제 #2
0
 public AttributeSyntaxWithCustomEqToken(NameToken name, EqualsToken eq, AttributeLiteralToken literal) : base(
         name,
         literal)
 {
     Eq = eq;
 }
예제 #3
0
 protected virtual SyntaxToken VisitEquals(EqualsToken token)
 {
     return(token);
 }