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

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

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

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