Esempio n. 1
0
 public ConstData(string name, WebIDLType type, Value value, IReadOnlyList <ExtendedAttribute> extendedAttributes)
 {
     Name  = name;
     Type  = type;
     Value = value;
     ExtendedAttributes = extendedAttributes;
 }
Esempio n. 2
0
 public AttributeData(string name, WebIDLType type, AttributeQualifiers qualifiers, IReadOnlyList <ExtendedAttribute> extendedAttributes)
 {
     Name               = name;
     Type               = type;
     Qualifiers         = qualifiers;
     ExtendedAttributes = extendedAttributes;
 }
Esempio n. 3
0
 public CallbackData(string name, WebIDLType returnType, IReadOnlyList <Argument> arguments, IReadOnlyList <ExtendedAttribute> extendedAttributes)
 {
     Name               = name;
     ReturnType         = returnType;
     Arguments          = arguments;
     ExtendedAttributes = extendedAttributes;
 }
Esempio n. 4
0
 public OptionalData(string name, WebIDLType type, Value defaultValue, IReadOnlyList <ExtendedAttribute> extendedAttributes)
 {
     Name               = name;
     Type               = type;
     DefaultValue       = defaultValue;
     ExtendedAttributes = extendedAttributes;
 }
Esempio n. 5
0
 public OperationData(string name, WebIDLType returnType, OperationQualifiers qualifiers, IReadOnlyList <Argument> arguments, IReadOnlyList <ExtendedAttribute> extendedAttributes)
 {
     Name               = name;
     ReturnType         = returnType;
     Qualifiers         = qualifiers;
     Arguments          = arguments;
     ExtendedAttributes = extendedAttributes;
 }
Esempio n. 6
0
 public static WebIDLType Nullable(WebIDLType underlyingType)
 {
     return(new WebIDLType {
         _nullable = new NullableData(underlyingType)
     });
 }
Esempio n. 7
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())
     });
 }
Esempio n. 8
0
 public static InterfaceMember Operation(string name, WebIDLType returnType, IEnumerable <Argument> arguments, OperationQualifiers qualifiers, IEnumerable <ExtendedAttribute> extendedAttributes)
 {
     return(new InterfaceMember {
         _operation = new OperationData(name, returnType, qualifiers, arguments.AsReadOnlySafe(), extendedAttributes.AsReadOnlySafe())
     });
 }
Esempio n. 9
0
 public static InterfaceMember Const(string name, WebIDLType type, Value value, IEnumerable <ExtendedAttribute> extendedAttributes)
 {
     return(new InterfaceMember {
         _const = new ConstData(name, type, value, extendedAttributes.AsReadOnlySafe())
     });
 }
Esempio n. 10
0
 public static DictionaryMember Create(WebIDLType type, string name, Value @default, IEnumerable <ExtendedAttribute> extendedAttributes)
 {
     return(new DictionaryMember {
         Type = type, Name = name, Default = @default, ExtendedAttributes = extendedAttributes.AsReadOnlySafe()
     });
 }
Esempio n. 11
0
 public static Argument Required(string name, WebIDLType type, IEnumerable <ExtendedAttribute> extendedAttributes)
 {
     return(new Argument {
         _required = new RequiredData(name, type, extendedAttributes.AsReadOnlySafe())
     });
 }
Esempio n. 12
0
 public static Definition Callback(string name, WebIDLType returnType, IEnumerable <Argument> arguments, IEnumerable <ExtendedAttribute> extendedAttributes)
 {
     return(new Definition {
         _callback = new CallbackData(name, returnType, arguments.AsReadOnlySafe(), extendedAttributes.AsReadOnlySafe())
     });
 }
Esempio n. 13
0
 public static WebIDLType Sequence(WebIDLType elementType)
 {
     return(new WebIDLType {
         _sequence = new SequenceData(elementType)
     });
 }
Esempio n. 14
0
 public static WebIDLType Array(WebIDLType elementType)
 {
     return(new WebIDLType {
         _array = new ArrayData(elementType)
     });
 }
Esempio n. 15
0
 public EllipsisData(string name, WebIDLType type, IReadOnlyList <ExtendedAttribute> extendedAttributes)
 {
     Name = name;
     Type = type;
     ExtendedAttributes = extendedAttributes;
 }
Esempio n. 16
0
 public static Argument Ellipsis(string name, WebIDLType type, IEnumerable <ExtendedAttribute> extendedAttributes)
 {
     return(new Argument {
         _ellipsis = new EllipsisData(name, type, extendedAttributes.AsReadOnlySafe())
     });
 }
Esempio n. 17
0
 public static Argument Optional(string name, WebIDLType type, Value defaultValue, IEnumerable <ExtendedAttribute> extendedAttributes)
 {
     return(new Argument {
         _optional = new OptionalData(name, type, defaultValue, extendedAttributes.AsReadOnlySafe())
     });
 }
Esempio n. 18
0
 public ArrayData(WebIDLType elementType)
 {
     ElementType = elementType;
 }
Esempio n. 19
0
 public SequenceData(WebIDLType elementType)
 {
     ElementType = elementType;
 }
Esempio n. 20
0
 public TypedefData(string name, WebIDLType referencedType, IReadOnlyList <ExtendedAttribute> typeExtendedAttributes)
 {
     Name                   = name;
     ReferencedType         = referencedType;
     TypeExtendedAttributes = typeExtendedAttributes;
 }
Esempio n. 21
0
 public NullableData(WebIDLType underlyingType)
 {
     UnderlyingType = underlyingType;
 }
Esempio n. 22
0
 public static Definition Typedef(string name, WebIDLType referencedType, IEnumerable <ExtendedAttribute> typeExtendedAttributes)
 {
     return(new Definition {
         _typedef = new TypedefData(name, referencedType, typeExtendedAttributes.AsReadOnlySafe())
     });
 }
Esempio n. 23
0
 public static ExceptionMember Field(string name, WebIDLType type, IEnumerable <ExtendedAttribute> extendedAttributes)
 {
     return(new ExceptionMember {
         _field = new FieldData(name, type, extendedAttributes.AsReadOnlySafe())
     });
 }