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

Commit5e0b963

Browse files
cloudRoutineKevinRansom
authored andcommitted
show inherited interfaces in tooltips (#2652)
1 parent015c944 commit5e0b963

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

‎src/fsharp/NicePrint.fs‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,17 @@ module private PrintIL =
436436
if isShowBase baseName
437437
then[ WordL.keywordInherit^^ baseName]
438438
else[]
439-
| None->[]
439+
| None->
440+
// for interface show inherited interfaces
441+
match typeDef.tdKindwith
442+
| ILTypeDefKind.Interface->
443+
typeDef.Implements|> List.choose(fun b->
444+
letbaseName= layoutILType denv ilTyparSubst b
445+
if isShowBase baseName
446+
then Some(WordL.keywordInherit^^ baseName)
447+
else None
448+
)
449+
|_->[]
440450

441451
letmemberBlockLs(fieldDefs:ILFieldDefs,methodDefs:ILMethodDefs,propertyDefs:ILPropertyDefs,eventDefs:ILEventDefs)=
442452
letctors=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp