Skip to content

Commit 3db94e5

Browse files
committed
C#: Add test for assembly attributes in standalone extraction
1 parent 2e9d548 commit 3db94e5

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| standalone.cs:9:2:9:11 | [Attribute1(...)] |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import csharp
2+
3+
from Attribute a
4+
where a.getType().getName() = "Attribute1Attribute"
5+
select a
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
semmle-extractor-options: --standalone
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
3+
[assembly: global::Attribute1]
4+
5+
class Attribute1Attribute : Attribute
6+
{
7+
}
8+
9+
[Attribute1]
10+
class A
11+
{
12+
}

0 commit comments

Comments
 (0)