Skip to content

Commit 36380a6

Browse files
committed
Add MatchType and TypeLambda for Scala3
1 parent ed7e271 commit 36380a6

File tree

2 files changed

+414
-1
lines changed

2 files changed

+414
-1
lines changed

generator/src/main/protobuf/scalameta.proto

Lines changed: 20 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+
TypeLambda type_lambda = 24;
77+
MatchType match_type = 25;
7678
}
7779
}
7880

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

149+
message TypeLambda {
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+
Type bound = 2;
161+
repeated CaseType cases = 3;
162+
}
163+
164+
147165
message Constant {
148166
oneof sealed_value {
149167
UnitConstant unit_constant = 1;
@@ -414,4 +432,5 @@ message SelectTree {
414432
message TypeApplyTree {
415433
Tree function = 1;
416434
repeated Type type_arguments = 2;
417-
}
435+
}
436+

0 commit comments

Comments
 (0)