Skip to content

Commit 5a38af3

Browse files
committed
add FSharpEntity.ArrayRank
1 parent 5a87eb9 commit 5a38af3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/fsharp/vs/Symbols.fs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ and FSharpEntity(cenv:cenv, entity:EntityRef) =
297297
isResolved() &&
298298
isArrayTyconRef cenv.g entity
299299

300+
member __.ArrayRank =
301+
checkIsResolved()
302+
rankOfArrayTyconRef cenv.g entity
303+
300304
member __.IsProvided =
301305
isResolved() &&
302306
entity.IsProvided

src/fsharp/vs/Symbols.fsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ and [<Class>] FSharpEntity =
167167
/// Indicates if the entity is an array type
168168
member IsArrayType : bool
169169

170+
/// Gets the rank of an array type
171+
member ArrayRank : int
172+
170173
/// Indicates if the entity is a 'fake' symbol related to a static instantiation of a type provider
171174
member IsStaticInstantiation : bool
172175

0 commit comments

Comments
 (0)