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) }); }
public NewUnionCaseMethod([NotNull] TypeElement typeElement) : base(typeElement.GetContainingType()) =>