Skip to content

Commit

Permalink
Merge pull request github#15426 from michaelnebel/csharp/collectionex…
Browse files Browse the repository at this point in the history
…pressions

C# 12: Support for collection expressions.
  • Loading branch information
michaelnebel authored Jan 30, 2024
2 parents 78d5d9a + cda0947 commit 41cca47
Show file tree
Hide file tree
Showing 25 changed files with 9,217 additions and 552 deletions.
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 = [136, 137] then kind = 106 else kind = k
select e, kind, t
Loading

0 comments on commit 41cca47

Please sign in to comment.