private void Visit(OperationQualifiers qualifiers) { if ((qualifiers & OperationQualifiers.Stringifier) != 0) { _sb.Append("stringifier "); } if ((qualifiers & OperationQualifiers.Static) != 0) { _sb.Append("static "); } if ((qualifiers & OperationQualifiers.LegacyCaller) != 0) { _sb.Append("legacycaller "); } if ((qualifiers & OperationQualifiers.Getter) != 0) { _sb.Append("getter "); } if ((qualifiers & OperationQualifiers.Setter) != 0) { _sb.Append("setter "); } if ((qualifiers & OperationQualifiers.Creator) != 0) { _sb.Append("creator "); } if ((qualifiers & OperationQualifiers.Deleter) != 0) { _sb.Append("deleter "); } }
public OperationData(string name, WebIDLType returnType, OperationQualifiers qualifiers, IReadOnlyList <Argument> arguments, IReadOnlyList <ExtendedAttribute> extendedAttributes) { Name = name; ReturnType = returnType; Qualifiers = qualifiers; Arguments = arguments; ExtendedAttributes = extendedAttributes; }
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()) }); }
private void Visit(OperationQualifiers qualifiers) { if ((qualifiers & OperationQualifiers.Stringifier) != 0) _sb.Append("stringifier "); if ((qualifiers & OperationQualifiers.Static) != 0) _sb.Append("static "); if ((qualifiers & OperationQualifiers.LegacyCaller) != 0) _sb.Append("legacycaller "); if ((qualifiers & OperationQualifiers.Getter) != 0) _sb.Append("getter "); if ((qualifiers & OperationQualifiers.Setter) != 0) _sb.Append("setter "); if ((qualifiers & OperationQualifiers.Creator) != 0) _sb.Append("creator "); if ((qualifiers & OperationQualifiers.Deleter) != 0) _sb.Append("deleter "); }