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

Commitf3b72d6

Browse files
vasily-kirichenkoKevinRansom
authored andcommitted
symbols that have EditorBrowsableAttribute(EditorBrowsableState.Never) attribute applied are not shown in completion (dotnet#2206)
1 parent669d73d commitf3b72d6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

‎src/fsharp/AttributeChecking.fs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ let CheckFSharpAttributesForHidden g attribs =
351351
// when mlCompatibility is set.
352352
v&&not(messageNumber=62&& g.mlCompatibility)
353353
|_->false)
354+
||
355+
(match TryFindFSharpAttribute g g.attrib_ComponentModelEditorBrowsableAttribute attribswith
356+
| Some(Attrib(_,_,[AttribInt32Arg state],_,_,_,_))-> state= int System.ComponentModel.EditorBrowsableState.Never
357+
|_->false)
354358

355359
/// Indicate if a list of F# attributes contains 'ObsoleteAttribute'. Used to suppress the item in intellisense.
356360
letCheckFSharpAttributesForObsolete g attribs=

‎src/fsharp/TcGlobals.fs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,7 @@ type public TcGlobals(compilingFslib: bool, ilg:ILGlobals, fslibCcu: CcuThunk, d
10441044
member valattrib_SecurityAttribute= tryFindSysAttrib"System.Security.Permissions.SecurityAttribute"
10451045
member valattrib_SecurityCriticalAttribute= findSysAttrib"System.Security.SecurityCriticalAttribute"
10461046
member valattrib_SecuritySafeCriticalAttribute= findSysAttrib"System.Security.SecuritySafeCriticalAttribute"
1047+
member valattrib_ComponentModelEditorBrowsableAttribute= findSysAttrib"System.ComponentModel.EditorBrowsableAttribute"
10471048

10481049
member__.better_tcref_map= betterTyconRefMap
10491050
member__.new_decimal_info= v_new_decimal_info

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp