File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -188,8 +188,12 @@ module Impl =
188
188
189
189
type FSharpDisplayContext ( denv : TcGlobals -> DisplayEnv ) =
190
190
member x.Contents g = denv g
191
+
191
192
static member Empty = FSharpDisplayContext( fun g -> DisplayEnv.Empty g)
192
193
194
+ member x.WithShortTypeNames shortNames =
195
+ FSharpDisplayContext( fun g -> { denv g with shortTypeNames = shortNames })
196
+
193
197
194
198
// delay the realization of 'item' in case it is unresolved
195
199
type FSharpSymbol ( cenv : SymbolEnv , item : ( unit -> Item ), access : ( FSharpSymbol -> CcuThunk -> AccessorDomain -> bool )) =
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ type [<Class>] public FSharpDisplayContext =
50
50
internal new : denv: ( TcGlobals -> Tastops.DisplayEnv) -> FSharpDisplayContext
51
51
static member Empty : FSharpDisplayContext
52
52
53
+ member WithShortTypeNames : bool -> FSharpDisplayContext
54
+
53
55
/// Represents a symbol in checked F# source code or a compiled .NET component.
54
56
///
55
57
/// The subtype of the symbol may reveal further information and can be one of FSharpEntity, FSharpUnionCase
You can’t perform that action at this time.
0 commit comments