Skip to content

Commit ae3d98f

Browse files
committed
C#: Add change note
1 parent 57ec094 commit ae3d98f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
5+
* The predicate `UnboundGeneric::getName` now prints the number of type parameters as a `` `N`` suffix, instead of a `<,...,>` suffix. For example, the unbound generic type
6+
`System.Collections.Generic.IList<T>` is printed as ``IList`1`` instead of `IList<>`.
7+
* The predicates `hasQualifiedName`, `getQualifiedName`, and `getQualifiedNameWithTypes` have been deprecated, and are instead replaced by `hasFullyQualifiedName`, `getFullyQualifiedName`, and `getFullyQualifiedNameWithTypes`, respectively. The new predicates use the same format for unbound generic types as mentioned above.
8+
* These changes also affect models-as-data rows that refer to a field or a property belonging to a generic type. For example, instead of writing
9+
```yml
10+
extensions:
11+
- addsTo:
12+
pack: codeql/csharp-all
13+
extensible: summaryModel
14+
data:
15+
- ["System.Collections.Generic", "Dictionary<TKey,TValue>", False, "Add", "(System.Collections.Generic.KeyValuePair<TKey,TValue>)", "", "Argument[0].Property[System.Collections.Generic.KeyValuePair<,>.Key]", "Argument[this].Element.Property[System.Collections.Generic.KeyValuePair<,>.Key]", "value", "manual"]
16+
```
17+
one now writes
18+
```yml
19+
extensions:
20+
- addsTo:
21+
pack: codeql/csharp-all
22+
extensible: summaryModel
23+
data:
24+
- ["System.Collections.Generic", "Dictionary<TKey,TValue>", False, "Add", "(System.Collections.Generic.KeyValuePair<TKey,TValue>)", "", "Argument[0].Property[System.Collections.Generic.KeyValuePair`2.Key]", "Argument[this].Element.Property[System.Collections.Generic.KeyValuePair`2.Key]", "value", "manual"]
25+
```

0 commit comments

Comments
 (0)