public EventDoc(NameInfo name, MetaDoc meta = null, IEnumerable <ExceptionDoc> exceptions = null, NameFlags adderFlags = default, NameFlags removerFlags = default) { Name = name ?? throw new ArgumentNullException(nameof(name)); Meta = meta; Exceptions = exceptions.MakeImmutableList(); AdderFlags = adderFlags; RemoverFlags = removerFlags; }
public PropertyDoc(NameInfo name, MetaDoc meta = null, IEnumerable <ExceptionDoc> exceptions = null, NameFlags getterFlags = default, NameFlags setterFlags = default) { Name = name ?? throw new ArgumentNullException(nameof(name)); Meta = meta; Exceptions = exceptions.MakeImmutableList(); GetterFlags = getterFlags; SetterFlags = setterFlags; }
public MethodDoc(NameInfo name, MetaDoc meta = null, IEnumerable <TypeParameterDoc> typeParameters = null, IEnumerable <ParameterDoc> parameters = null, IEnumerable <ExceptionDoc> exceptions = null) { Name = name ?? throw new ArgumentNullException(nameof(name)); Meta = meta; Parameters = parameters.MakeImmutableList(); TypeParameters = typeParameters.MakeImmutableList(); Exceptions = exceptions.MakeImmutableList(); }
public TypeDoc(NameInfo name, MetaDoc meta = null, IEnumerable <TypeParameterDoc> typeParameters = null, ImmutableDictionary <string, FieldDoc> fields = null, ImmutableDictionary <string, PropertyDoc> properties = null, ImmutableDictionary <string, EventDoc> events = null, ImmutableDictionary <string, MethodDoc> methods = null) { Name = name ?? throw new ArgumentNullException(nameof(name)); Meta = meta; TypeParameters = typeParameters.MakeImmutableList(); Fields = fields ?? ImmutableDictionary <string, FieldDoc> .Empty; Properties = properties ?? ImmutableDictionary <string, PropertyDoc> .Empty; Events = events ?? ImmutableDictionary <string, EventDoc> .Empty; Methods = methods ?? ImmutableDictionary <string, MethodDoc> .Empty; }
public PropertyDoc WithMeta(MetaDoc meta) => new PropertyDoc(Name, meta, Exceptions, GetterFlags, SetterFlags);
public FieldDoc WithMeta(MetaDoc meta) => new FieldDoc(Name, meta);
public FieldDoc(NameInfo name, MetaDoc meta = null) { Name = name ?? throw new ArgumentNullException(nameof(name)); Meta = meta; }
public TypeDoc WithMeta(MetaDoc meta) => new TypeDoc(Name, meta, TypeParameters, Fields, Properties, Events, Methods);
public MethodDoc WithMeta(MetaDoc meta) => new MethodDoc(Name, meta, TypeParameters, Parameters, Exceptions);
public EventDoc WithMeta(MetaDoc meta) => new EventDoc(Name, meta, Exceptions, AdderFlags, RemoverFlags);