Пример #1
0
 protected internal override CapnpEnum VisitEnum(CapnpEnum @enum)
 {
     _ValidateAnnotations(@enum.Annotations, AnnotationTypes.@enum);
     _ValidateHaveId(@enum);
     _ValidateNumbering(@enum.Enumerants);
     return(base.VisitEnum(@enum));
 }
        protected internal override CapnpEnum VisitEnum(CapnpEnum @enum)
        {
            if (@enum.Id == null)
            {
                @enum.Id = _GenerateId(@enum);
            }

            return(base.VisitEnum(@enum));
        }
Пример #3
0
 protected internal virtual CapnpEnum VisitEnum(CapnpEnum @enum)
 {
     @enum.Annotations = @enum.Annotations.Select(a => VisitAnnotation(a)).ToArray();
     @enum.Enumerants  = @enum.Enumerants.Select(e => VisitEnumerant(e)).ToArray();
     return(@enum);
 }