Merge pull request #3484 from calumgrant/cs/index-initializers

C#: Extract indexed initializers correctly
This commit is contained in:
Tom Hvitved
2020-05-20 09:22:47 +02:00
committed by GitHub
7 changed files with 156 additions and 14 deletions

View File

@@ -18,10 +18,13 @@ The following changes in version 1.25 affect C# analysis in all applications.
## Changes to code extraction
* Index initializers, of the form `{ [1] = "one" }`, are extracted correctly. Previously, the kind of the
expression was incorrect, and the index was not extracted.
## Changes to libraries
* The class `UnboundGeneric` has been refined to only be those declarations that actually
have type parameters. This means that non-generic nested types inside construced types,
have type parameters. This means that non-generic nested types inside constructed types,
such as `A<int>.B`, no longer are considered unbound generics. (Such nested types do,
however, still have relevant `.getSourceDeclaration()`s, for example `A<>.B`.)
* The data-flow library has been improved, which affects most security queries by potentially