Skip to content

Commit 4d823fd

Browse files
committed
Add MatchType and TypeLambda for Scala3
1 parent ed7e271 commit 4d823fd

File tree

2 files changed

+386
-1
lines changed

2 files changed

+386
-1
lines changed

generator/src/main/protobuf/scalameta.proto

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ message Type {
7373
UniversalType universal_type = 10;
7474
ByNameType by_name_type = 13;
7575
RepeatedType repeated_type = 14;
76+
LambdaType lambda_type = 24;
77+
MatchType match_type = 25;
7678
}
7779
}
7880

@@ -144,6 +146,21 @@ message RepeatedType {
144146
Type tpe = 1;
145147
}
146148

149+
message LambdaType {
150+
Scope parameters = 1;
151+
Type return_type = 2;
152+
}
153+
154+
message MatchType {
155+
message CaseType {
156+
Type key = 1;
157+
Type body = 2;
158+
}
159+
Type scrutinee = 1;
160+
repeated CaseType cases = 2;
161+
}
162+
163+
147164
message Constant {
148165
oneof sealed_value {
149166
UnitConstant unit_constant = 1;
@@ -414,4 +431,5 @@ message SelectTree {
414431
message TypeApplyTree {
415432
Tree function = 1;
416433
repeated Type type_arguments = 2;
417-
}
434+
}
435+

0 commit comments

Comments
 (0)