Exemplo n.º 1
0
 public AttributeData(string name, WebIDLType type, AttributeQualifiers qualifiers, IReadOnlyList <ExtendedAttribute> extendedAttributes)
 {
     Name               = name;
     Type               = type;
     Qualifiers         = qualifiers;
     ExtendedAttributes = extendedAttributes;
 }
Exemplo n.º 2
0
 private void Visit(AttributeQualifiers qualifiers)
 {
     if ((qualifiers & AttributeQualifiers.Stringifier) != 0)
     {
         _sb.Append("stringifier ");
     }
     if ((qualifiers & AttributeQualifiers.Static) != 0)
     {
         _sb.Append("static ");
     }
     if ((qualifiers & AttributeQualifiers.Inherit) != 0)
     {
         _sb.Append("inherit ");
     }
     if ((qualifiers & AttributeQualifiers.ReadOnly) != 0)
     {
         _sb.Append("readonly ");
     }
 }
Exemplo n.º 3
0
 public static InterfaceMember Attribute(string name, WebIDLType type, AttributeQualifiers qualifiers, IEnumerable <ExtendedAttribute> extendedAttributes)
 {
     return(new InterfaceMember {
         _attribute = new AttributeData(name, type, qualifiers, extendedAttributes.AsReadOnlySafe())
     });
 }
Exemplo n.º 4
0
 private void Visit(AttributeQualifiers qualifiers)
 {
     if ((qualifiers & AttributeQualifiers.Stringifier) != 0)
         _sb.Append("stringifier ");
     if ((qualifiers & AttributeQualifiers.Static) != 0)
         _sb.Append("static ");
     if ((qualifiers & AttributeQualifiers.Inherit) != 0)
         _sb.Append("inherit ");
     if ((qualifiers & AttributeQualifiers.ReadOnly) != 0)
         _sb.Append("readonly ");
 }