Skip to content

Commit 26a6158

Browse files
committed
first cut at C# enum fields (2)
1 parent 3b38001 commit 26a6158

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/fsharp/vs/Symbols.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,6 +2011,8 @@ type FSharpSymbol with
20112011
| Item.UnionCase (uinfo,_) -> FSharpUnionCase(cenv, uinfo.UnionCaseRef) :> _
20122012
| Item.ExnCase tcref -> FSharpEntity(cenv, tcref) :>_
20132013
| Item.RecdField rfinfo -> FSharpField(cenv, RecdOrClass rfinfo.RecdFieldRef) :> _
2014+
2015+
| Item.ILField finfo -> FSharpField(cenv, ILField (cenv.g, finfo)) :> _
20142016

20152017
| Item.Event einfo ->
20162018
FSharpMemberOrFunctionOrValue(cenv, E einfo, item) :> _

tests/service/InteractiveCheckerTests.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ let identsAndRanges (input: Ast.ParsedInput) =
4848
(identAndRange (longIdentToString longIdent) range) :: (moduleDecls |> List.collect extractFromModuleDecl)
4949

5050
match input with
51-
| Ast.ImplFile(Ast.ParsedImplFileInput(_, _, _, _, _, modulesOrNamespaces, _)) ->
51+
| Ast.ParsedInput.ImplFile(Ast.ParsedImplFileInput(_, _, _, _, _, modulesOrNamespaces, _)) ->
5252
modulesOrNamespaces |> List.collect extractFromModuleOrNamespace
53-
| Ast.SigFile _ -> []
53+
| Ast.ParsedInput.SigFile _ -> []
5454

5555
let parseAndExtractRanges code =
5656
let file = "/home/user/Test.fsx"

0 commit comments

Comments
 (0)