Example #1
0
        public override IDeclaredType GetBaseClassType()
        {
            var typeElement = TypeElement.GetContainingType();

            return(typeElement != null
        ? TypeFactory.CreateType(typeElement)
        : null);
        }
        public override IEnumerable <IDeclaredType> GetSuperTypes()
        {
            var parent = TypeElement.GetContainingType();

            if (parent == null)
            {
                return(EmptyList <IDeclaredType> .Instance);
            }

            return(new[] { TypeFactory.CreateType(parent) });
        }
Example #3
0
 public NewUnionCaseMethod([NotNull] TypeElement typeElement) : base(typeElement.GetContainingType()) =>