mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
C#: Add attribute test for the OverloadResolutionAttribute attribute class.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
| attributes.cs:168:17:168:17 | M | attributes.cs:167:6:167:31 | [OverloadResolutionPriority(...)] | -1 |
|
||||
| attributes.cs:171:17:171:17 | M | attributes.cs:170:6:170:31 | [OverloadResolutionPriority(...)] | 1 |
|
||||
| attributes.cs:174:17:174:17 | M | attributes.cs:173:6:173:31 | [OverloadResolutionPriority(...)] | 2 |
|
||||
@@ -0,0 +1,7 @@
|
||||
import csharp
|
||||
import semmle.code.csharp.frameworks.system.runtime.CompilerServices
|
||||
|
||||
from
|
||||
Attributable element, SystemRuntimeCompilerServicesOverloadResolutionPriorityAttribute attribute
|
||||
where attribute = element.getAnAttribute() and attribute.fromSource()
|
||||
select element, attribute, attribute.getPriority()
|
||||
Reference in New Issue
Block a user