dotnet/roslyn

IDE0060 false positive for method used as a delegate in nested type

開放

#44,226 建立於 2020年5月13日

 (0 則留言) (0 個反應) (0 位負責人)C# (4,257 個分叉)batch import
Area-IDEBugFeature - IDE0060IDE-CodeStylehelp wanted

倉庫指標

星標
 (20,414 顆星)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 256 個 PR)

描述

See https://github.com/dotnet/roslyn/pull/44199/files#diff-346d613909e7c03e101f681834c8e015R22 in VisualBasicEscapingReducer.vb

#Disable Warning IDE0060 ' Remove unused parameter - False positive, used as a delegate in a nested type.
        ' TODO: File a bug for this 'IDE0060' false positive.
        Private Shared Function TryUnescapeToken(identifier As SyntaxToken, semanticModel As SemanticModel, optionSet As OptionSet, cancellationToken As CancellationToken) As SyntaxToken
#Enable Warning IDE0060 ' Remove unused parameter
            If Not identifier.IsBracketed Then
                Return identifier
            End If

貢獻者指南