internal FSharpUnionCaseProperty([NotNull] ISingletonCaseDeclaration declaration, [NotNull] FSharpUnionCase unionCase) : base(declaration) { UnionCase = unionCase; var containingType = declaration.GetContainingTypeDeclaration()?.DeclaredElement; ReturnType = containingType != null ? TypeFactory.CreateType(containingType) : TypeFactory.CreateUnknownType(Module); }
internal FSharpUnionCaseProperty([NotNull] ISingletonCaseDeclaration declaration) : base(declaration) { }