-
Notifications
You must be signed in to change notification settings - Fork 1.8k
C#: Extract stackalloc
information
#2766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e914679
to
d10471d
Compare
f34790e
to
96e71c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QL and C# LGTM.
change-notes/1.24/analysis-csharp.md
Outdated
@@ -27,7 +27,8 @@ The following changes in version 1.24 affect C# analysis in all applications. | |||
## Changes to code extraction | |||
|
|||
* Tuple expressions, for example `(int,bool)` in `default((int,bool))` are now extracted correctly. | |||
* Expression nullability flow state is extracted. | |||
* Expression nullability flow state is extracted. | |||
* `stackalloc` array creations are now extracted, and they are represented by the class `Stackalloc`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gives the impression that they weren't previously extracted at all. How about
In extraction:
- The difference between
stackalloc
array creations normal array creations is extracted.
In changes to QL libraries:
stackalloc
array creations are now represented by the QL classStackalloc
. Previously they were represented by the classArrayCreation
.
@@ -372,6 +372,11 @@ class ArrayCreation extends Expr, @array_creation_expr { | |||
override string toString() { result = "array creation of type " + this.getType().getName() } | |||
} | |||
|
|||
/** A `stackalloc` array creation. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about some sample C# code in the comment.
No description provided.