Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b7e8f46

Browse files
committed
C#: DB upgrade script.
1 parent f909965 commit b7e8f46

1 file changed

Lines changed: 18 additions & 14 deletions

File tree

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
from @element element, int annotation
2-
where
3-
exists(int mode |
4-
params(param, _, _, _, mode, _, _)
5-
|
6-
mode = 1 and annotation = 5 // ref
1+
class Element extends @element {
2+
string toString() { none() }
3+
4+
int getAnnotation() {
5+
exists(int mode | params(this, _, _, _, mode, _, _) |
6+
mode = 1 and result = 5 // ref
7+
or
8+
mode = 2 and result = 6 // out
9+
or
10+
mode = 5 and result = 4 // in
11+
)
712
or
8-
mode = 2 and annotation = 6 // out
13+
ref_returns(this) and result = 5
914
or
10-
mode = 5 and annotation = 4 // in
11-
)
12-
or
13-
returns_ref(element) and annotation = 5
14-
or
15-
returns_readonly_ref(element) and annotation = 4
16-
select element, annotation
15+
ref_readonly_returns(this) and result = 4
16+
}
17+
}
18+
19+
from Element element
20+
select element, element.getAnnotation()

0 commit comments

Comments
 (0)