mirror of
https://github.com/github/codeql.git
synced 2026-04-20 22:44:52 +02:00
C#: Add ExperimentalAttribute class.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/** Provides definitions related to the namespace `System.Diagnostics.CodeAnalysis`. */
|
||||
|
||||
private import csharp
|
||||
|
||||
/** An attribute of type `System.Diagnostics.CodeAnalysis.ExperimentalAttribute`. */
|
||||
class ExperimentalAttribute extends Attribute {
|
||||
ExperimentalAttribute() {
|
||||
this.getType().hasFullyQualifiedName("System.Diagnostics.CodeAnalysis", "ExperimentalAttribute")
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the diagnostic ID.
|
||||
*/
|
||||
string getId() { result = this.getConstructorArgument(0).getValue() }
|
||||
}
|
||||
Reference in New Issue
Block a user