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

Skip to content

Commit 64534d4

Browse files
committed
C#: Analysis change notes
1 parent b7e8f46 commit 64534d4

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

change-notes/1.22/analysis-csharp.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@
88

99
## Changes to code extraction
1010

11+
* The following C# 8 features are now extracted:
12+
- Suppress-nullable-warning expressions, for example `x!`
13+
- Nullable reference types, for example `string?`
14+
1115
## Changes to QL libraries
1216

17+
* The new class `AnnotatedType` models types with type annotations, including nullability information, return kinds (`ref` and `readonly ref`), and parameter kinds (`in`, `out`, and `ref`)
18+
- The new predicate `Assignable.getAnnotatedType()` gets the annotated type of an assignable (such as a variable or a property)
19+
- The new predicate `Callable.getAnnotatedReturnType()` and `DelegateType.getAnnotatedReturnType()` get the annotated type of the return value
20+
- The new predicate `ArrayType.getAnnotatedElementType()` gets the annotated type of the array element
21+
- The new predicate `ConstructedGeneric.getAnnotatedTypeArgument()` gets the annotated type of a type argument
22+
- The new predicate `TypeParameterConstraints.getAnAnnotatedTypeConstraint()` gets a type constraint with type annotations
23+
* The new class `SuppressNullableWarningExpr` models suppress-nullable-warning expressions such as `x!`
24+
1325
## Changes to autobuilder

0 commit comments

Comments
 (0)