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
4 changes: 4 additions & 0 deletions src/fsharp/symbols/Symbols.fs
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,12 @@ module Impl =

type FSharpDisplayContext(denv: TcGlobals -> DisplayEnv) =
member x.Contents g = denv g

static member Empty = FSharpDisplayContext(fun g -> DisplayEnv.Empty g)

member x.WithShortTypeNames shortNames =
FSharpDisplayContext(fun g -> { denv g with shortTypeNames = shortNames })


// delay the realization of 'item' in case it is unresolved
type FSharpSymbol(cenv: SymbolEnv, item: (unit -> Item), access: (FSharpSymbol -> CcuThunk -> AccessorDomain -> bool)) =
Expand Down
2 changes: 2 additions & 0 deletions src/fsharp/symbols/Symbols.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ type [<Class>] public FSharpDisplayContext =
internal new : denv: (TcGlobals -> Tastops.DisplayEnv) -> FSharpDisplayContext
static member Empty: FSharpDisplayContext

member WithShortTypeNames: bool -> FSharpDisplayContext

/// Represents a symbol in checked F# source code or a compiled .NET component.
///
/// The subtype of the symbol may reveal further information and can be one of FSharpEntity, FSharpUnionCase
Expand Down