Skip to content

Commit 6405b89

Browse files
committed
Add DB upgrade script to change generic type names to undecorated ones
1 parent f1a596e commit 6405b89

File tree

6 files changed

+4218
-1
lines changed

6 files changed

+4218
-1
lines changed

csharp/ql/src/semmle/code/csharp/Type.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private predicate isObjectClass(Class c) { c instanceof ObjectType }
5656
*/
5757
class ValueOrRefType extends DotNet::ValueOrRefType, Type, Attributable, @value_or_ref_type {
5858
/**
59-
* DEPRECATED: use `getUndecoratedName()` instead
59+
* DEPRECATED: use `getUndecoratedName()` instead.
6060
*
6161
* Gets the name of this type without `<...>` brackets, in case it is a generic type.
6262
*/

csharp/ql/src/semmlecode.csharp.dbscheme

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/* This is a dummy line to alter the dbscheme, so we can make a database upgrade
2+
* without actually changing any of the dbscheme predicates. It contains a date
3+
* to allow for such updates in the future as well.
4+
*
5+
* 2021-07-14
6+
*
7+
* DO NOT remove this comment carelessly, since it can revert the dbscheme back to a
8+
* previously seen state (matching a previously seen SHA), which would make the upgrade
9+
* mechanism not work properly.
10+
*/
111

212
/**
313
* An invocation of the compiler. Note that more than one file may be

0 commit comments

Comments
 (0)