Skip to content

Commit 95dc2f7

Browse files
committed
C#: Add ExperimentalAttribute class.
1 parent e5e0b4c commit 95dc2f7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/** Provides definitions related to the namespace `System.Diagnostics.CodeAnalysis`. */
2+
3+
private import csharp
4+
5+
/** An attribute of type `System.Diagnostics.CodeAnalysis.ExperimentalAttribute`. */
6+
class ExperimentalAttribute extends Attribute {
7+
ExperimentalAttribute() {
8+
this.getType().hasFullyQualifiedName("System.Diagnostics.CodeAnalysis", "ExperimentalAttribute")
9+
}
10+
11+
/**
12+
* Gets the diagnostic ID.
13+
*/
14+
string getId() { result = this.getConstructorArgument(0).getValue() }
15+
}

0 commit comments

Comments
 (0)