示例#1
0
        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)
 {
 }