Skip to content

Commit b799113

Browse files
reshuffle ILMemberAccess so plain comparison works
1 parent 5986427 commit b799113

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/absil/il.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,12 +1243,12 @@ type ILMethodBody =
12431243

12441244
[<RequireQualifiedAccess>]
12451245
type ILMemberAccess =
1246-
| Assembly
12471246
| CompilerControlled
1247+
| Private
12481248
| FamilyAndAssembly
1249+
| Assembly
12491250
| FamilyOrAssembly
12501251
| Family
1251-
| Private
12521252
| Public
12531253

12541254
[<RequireQualifiedAccess; StructuralEquality; StructuralComparison>]

src/absil/il.fsi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -727,16 +727,17 @@ type ILMethodBody =
727727
SourceMarker: ILSourceMarker option }
728728

729729
/// Member Access
730+
// important: order of definition matters for AccessibilityLogic.GetILAccessOfILPropInfo
730731
[<RequireQualifiedAccess>]
731732
type ILMemberAccess =
732-
| Assembly
733733
| CompilerControlled
734+
| Private
734735
| FamilyAndAssembly
736+
| Assembly
735737
| FamilyOrAssembly
736738
| Family
737-
| Private
738-
| Public
739-
739+
| Public
740+
740741
[<RequireQualifiedAccess>]
741742
type ILAttribElem =
742743
/// Represents a custom attribute parameter of type 'string'. These may be null, in which case they are encoded in a special

0 commit comments

Comments
 (0)