Example #1
0
 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;
 }
Example #2
0
 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;
 }
Example #3
0
 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();
 }
Example #4
0
 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;
 }
Example #5
0
 public PropertyDoc WithMeta(MetaDoc meta)
 => new PropertyDoc(Name, meta, Exceptions, GetterFlags, SetterFlags);
Example #6
0
 public FieldDoc WithMeta(MetaDoc meta)
 => new FieldDoc(Name, meta);
Example #7
0
 public FieldDoc(NameInfo name, MetaDoc meta = null)
 {
     Name = name ?? throw new ArgumentNullException(nameof(name));
     Meta = meta;
 }
Example #8
0
 public TypeDoc WithMeta(MetaDoc meta)
 => new TypeDoc(Name, meta, TypeParameters, Fields, Properties, Events, Methods);
Example #9
0
 public MethodDoc WithMeta(MetaDoc meta)
 => new MethodDoc(Name, meta, TypeParameters, Parameters, Exceptions);
Example #10
0
 public EventDoc WithMeta(MetaDoc meta)
 => new EventDoc(Name, meta, Exceptions, AdderFlags, RemoverFlags);