Skip to content

Commit dfde571

Browse files
authored
Merge pull request #10031 from jketema/block-assign
C++: Handle block assignments
2 parents a3fb54c + 40334a2 commit dfde571

File tree

16 files changed

+9623
-511
lines changed

16 files changed

+9623
-511
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Expr extends @expr {
2+
string toString() { none() }
3+
}
4+
5+
class Location extends @location_expr {
6+
string toString() { none() }
7+
}
8+
9+
from Expr expr, int kind, int kind_new, Location location
10+
where
11+
exprs(expr, kind, location) and
12+
if expr instanceof @blockassignexpr then kind_new = 0 else kind_new = kind
13+
select expr, kind_new, location

0 commit comments

Comments
 (0)