Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc769fec

Browse files
authored
Revert code lens .... it's being stabilized in the branch 15.8 (dotnet#4547)
* Revert "remove comment (dotnet#4538)"This reverts commit4dce3d1.* Revert "Code Lens and Line Lens (dotnet#3608)"This reverts commit8f8cbd6.
1 parentc87da60 commitc769fec

File tree

35 files changed

+6
-1556
lines changed

35 files changed

+6
-1556
lines changed

‎src/fsharp/NicePrint.fs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1970,7 +1970,6 @@ let isGeneratedExceptionField pos f = TastDefinitionPrinting.isGeneratedExce
19701970
letstringOfTyparConstraint denv tpc= stringOfTyparConstraints denv[tpc]
19711971
letstringOfTy denv x= x|> PrintTypes.layoutType denv|> showL
19721972
letprettyLayoutOfType denv x= x|> PrintTypes.prettyLayoutOfType denv
1973-
letprettyLayoutOfTypeNoCx denv x= x|> PrintTypes.prettyLayoutOfTypeNoConstraints denv
19741973
letprettyStringOfTy denv x= x|> PrintTypes.prettyLayoutOfType denv|> showL
19751974
letprettyStringOfTyNoCx denv x= x|> PrintTypes.prettyLayoutOfTypeNoConstraints denv|> showL
19761975
letstringOfRecdField denv x= x|> TastDefinitionPrinting.layoutRecdFieldfalse denv|> showL

‎src/fsharp/service/service.fs‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -908,9 +908,6 @@ type TypeCheckInfo
908908
match itemwith
909909
| Item.Types_| Item.ModuleOrNamespaces_->true
910910
|_->false
911-
912-
/// Find the most precise display context for the given line and column.
913-
member__.GetBestDisplayEnvForPos cursorPos= GetBestEnvForPos cursorPos
914911

915912
member__.GetVisibleNamespacesAndModulesAtPosition(cursorPos:pos):ModuleOrNamespaceRef list=
916913
let(nenv,ad),m= GetBestEnvForPos cursorPos
@@ -1985,7 +1982,6 @@ type FSharpCheckFileResults(filename: string, errors: FSharpErrorInfo[], scopeOp
19851982
|_->
19861983
async.Return dflt
19871984

1988-
19891985
memberinfo.GetToolTipText(line,colAtEndOfNames,lineStr,names,tokenTag,userOpName)=
19901986
info.GetStructuredToolTipText(line, colAtEndOfNames, lineStr, names, tokenTag, ?userOpName=userOpName)
19911987
|> Tooltips.Map Tooltips.ToFSharpToolTipText
@@ -2097,13 +2093,6 @@ type FSharpCheckFileResults(filename: string, errors: FSharpErrorInfo[], scopeOp
20972093
RequireCompilationThread ctok
20982094
scope.IsRelativeNameResolvableFromSymbol(pos, plid, symbol))
20992095

2100-
memberinfo.GetDisplayEnvForPos(pos:pos):Async<DisplayEnvoption>=
2101-
letuserOpName="CodeLens"
2102-
reactorOp userOpName"GetDisplayContextAtPos" None(fun ctok scope->
2103-
DoesNotRequireCompilerThreadTokenAndCouldPossiblyBeMadeConcurrent ctok
2104-
let(nenv,_),_= scope.GetBestDisplayEnvForPos pos
2105-
Some nenv.DisplayEnv)
2106-
21072096
memberinfo.ImplementationFiles=
21082097
ifnot keepAssemblyContentsthen invalidOp"The 'keepAssemblyContents' flag must be set to true on the FSharpChecker in order to access the checked contents of assemblies"
21092098
scopeOptX

‎src/fsharp/service/service.fsi‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,6 @@ type public FSharpCheckFileResults =
242242

243243
member internal GetVisibleNamespacesAndModulesAtPoint: pos-> Async<Tast.ModuleOrNamespaceRef[]>
244244

245-
/// Find the most precise display environment for the given line and column.
246-
member internal GetDisplayEnvForPos: pos: pos-> Async<DisplayEnv option>
247-
248245
/// Determines if a long ident is resolvable at a specific point.
249246
///<param name="userOpName">An optional string usedfor tracing compiler operations associatedwith this request.</param>
250247
memberinternalIsRelativeNameResolvable:cursorPos:pos* plid: string list* item: Item* ?userOpName: string-> Async<bool>

‎src/fsharp/symbols/Symbols.fs‎

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,23 +1844,6 @@ and FSharpMemberOrFunctionOrValue(cenv, d:FSharpMemberOrValData, item) =
18441844
prefix+ x.LogicalName
18451845
with_->"??"
18461846

1847-
memberx.FormatLayout(denv:FSharpDisplayContext)=
1848-
match x.IsMember, dwith
1849-
|true, V v->
1850-
NicePrint.prettyLayoutOfValOrMemberNoInst{(denv.Contents cenv.g)with showMemberContainers=true} v.Deref
1851-
|_,_->
1852-
checkIsResolved()
1853-
letty=
1854-
match dwith
1855-
| E e-> e.GetDelegateType(cenv.amap, range0)
1856-
| P p-> p.GetPropertyType(cenv.amap, range0)
1857-
| M m| C m->
1858-
letrty= m.GetFSharpReturnTy(cenv.amap, range0, m.FormalMethodInst)
1859-
letargtysl= m.GetParamTypes(cenv.amap, range0, m.FormalMethodInst)
1860-
mkIteratedFunTy(List.map(mkRefTupledTy cenv.g) argtysl) rty
1861-
| V v-> v.TauType
1862-
NicePrint.prettyLayoutOfTypeNoCx(denv.Contents cenv.g) ty
1863-
18641847

18651848
andFSharpType(cenv,typ:TType)=
18661849

@@ -2006,11 +1989,7 @@ and FSharpType(cenv, typ:TType) =
20061989

20071990
memberx.Format(denv:FSharpDisplayContext)=
20081991
protect<|fun()->
2009-
NicePrint.prettyStringOfTyNoCx(denv.Contents cenv.g) typ
2010-
2011-
memberx.FormatLayout(denv:FSharpDisplayContext)=
2012-
protect<|fun()->
2013-
NicePrint.prettyLayoutOfTypeNoCx(denv.Contents cenv.g) typ
1992+
NicePrint.prettyStringOfTyNoCx(denv.Contents cenv.g) typ
20141993

20151994
overridex.ToString()=
20161995
protect<|fun()->

‎src/fsharp/symbols/Symbols.fsi‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -819,9 +819,6 @@ and [<Class>] public FSharpMemberOrFunctionOrValue =
819819

820820
/// Indicates if this is a constructor.
821821
memberIsConstructor:bool
822-
823-
/// Format the type using the rules of the given display context
824-
memberFormatLayout:context:FSharpDisplayContext->Layout
825822

826823

827824
/// A subtype of FSharpSymbol that represents a parameter
@@ -934,9 +931,6 @@ and [<Class>] public FSharpType =
934931
/// Format the type using the rules of the given display context
935932
memberFormat:context:FSharpDisplayContext->string
936933

937-
/// Format the type using the rules of the given display context
938-
memberFormatLayout:context:FSharpDisplayContext->Layout
939-
940934
/// Instantiate generic type parameters in a type
941935
memberInstantiate:(FSharpGenericParameter* FSharpType)list->FSharpType
942936

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp