Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
GRADLE_USER_HOME: ${{ github.workspace }}/.github/gradle
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public interface IFSharpDeclaredElement : IClrDeclaredElement
string SourceName { get; }
}

public interface IFSharpTypeElement : IFSharpDeclaredElement, ITypeElement, IAccessRightsOwner
public interface IFSharpTypeElement : IFSharpDeclaredElement, ITypeElement, ITypeMember
{
ModuleMembersAccessKind AccessKind { get; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.Modules;
using JetBrains.ReSharper.Psi.Tree;
using JetBrains.ReSharper.Psi.Util;

namespace JetBrains.ReSharper.Plugins.FSharp.Psi.Impl;

Expand Down Expand Up @@ -160,7 +161,7 @@ public static bool IsAccessible(ITypeElement typeElement, ITreeNode context)
if (accessRights == AccessRights.PRIVATE && !IsTheSameOwner(fsTypeElement, context))
return false;

if (accessRights == AccessRights.INTERNAL && !typeElement.IsInternalsVisibleToApplies(context.GetPsiModule()))
if (accessRights == AccessRights.INTERNAL && !AccessUtil.IsInternalSymbolAccessible(fsTypeElement, context.GetPsiModule()))
return false;

if (fsTypeElement is IFSharpSourceTypeElement fsSourceTypeElement)
Expand Down
Loading