C#: Add ExperimentalAttribute class.

This commit is contained in:
Michael Nebel
2024-02-28 11:20:43 +01:00
parent e5e0b4c537
commit 95dc2f71d3

View File

@@ -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() }
}