예제 #1
0
 public override void Clear()
 {
     Accessibility        = default;
     DeclarationModifiers = default;
     Name = default;
     Type = default;
 }
예제 #2
0
        public BuilderType AddInterface(ReferenceBuilder reference)
        {
            if (Interfaces == null)
            {
                Interfaces = new List <ReferenceBuilder>();
            }

            Interfaces.Add(reference);
            return((BuilderType)this);
        }
예제 #3
0
        public TypeParameterConfig AddTypeConstraint(ReferenceBuilder reference)
        {
            if (TypeConstraints == null)
            {
                TypeConstraints = new List <ReferenceBuilder>();
            }

            TypeConstraints.Add(reference);

            return(this);
        }
예제 #4
0
 public ReferenceBuilder AddParameter(ReferenceBuilder parameter)
 {
     _parameters.Add(parameter);
     return(this);
 }
예제 #5
0
 public ClassBuilder SetBaseType(ReferenceBuilder base_type_reference)
 {
     BaseType = base_type_reference;
     return(this);
 }
예제 #6
0
 public FieldBuilder SetType(ReferenceBuilder type)
 {
     Type = type;
     return(this);
 }
예제 #7
0
 public ArrayTypeReferenceBuilder SetType(ReferenceBuilder reference)
 {
     Type = reference;
     return(this);
 }
예제 #8
0
 public override void Clear()
 {
     Type = null;
 }