-
Notifications
You must be signed in to change notification settings - Fork 1.7k
C# 11: String related functionality. #11922
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
ad20e81
C#: Add test for interpolated strings, where newlines are used in the…
michaelnebel 3b93cd4
C#: Extract the ValueText instead of Text for interpolated string lit…
michaelnebel 72fa3bd
C#: Add test cases for raw string literals.
michaelnebel e8eedb7
C#: Extractor support for UTF-8 encoded strings.
michaelnebel c87668a
C#: Library support for string UTF8/UTF16 encodings.
michaelnebel c52dbcb
C#: Update all PrintAst test expected output.
michaelnebel 20398f1
C#: Add PrintAst testcase for C# 11 test code.
michaelnebel 5c5d330
C#: Add UTF-8 encoded string test case.
michaelnebel 5a1e96d
C#: Update string literal test query and expected output.
michaelnebel 6c7c085
C#: Add change note.
michaelnebel 4d321d6
C#: Add upgrade and downgrade scripts.
michaelnebel 440fe80
C#: Update stats.
michaelnebel 4c966f2
C#: Add some more UTF-8 encoded string examples.
michaelnebel 0b04654
C#: Update expected test output.
michaelnebel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
csharp/downgrades/81a394bedda3d4747e36496c7be4d958424636d6/expressions.ql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class Expression extends @expr { | ||
string toString() { none() } | ||
} | ||
|
||
class TypeOrRef extends @type_or_ref { | ||
string toString() { none() } | ||
} | ||
|
||
from Expression e, int k, int kind, TypeOrRef t | ||
where | ||
expressions(e, k, t) and | ||
if k = 135 then kind = 106 else kind = k | ||
select e, kind, t | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.