Stub support for annotations
This commit is contained in:
committed by
Alexander Udalov
parent
557fdfcd56
commit
4f12a3d86e
@@ -101,14 +101,13 @@ message Class {
|
||||
/*
|
||||
Visibility
|
||||
Modality
|
||||
has_annotation
|
||||
ClassKind
|
||||
is_inner
|
||||
*/
|
||||
optional int32 flags = 1 [default = 0 /*internal final class*/];
|
||||
optional int32 flags = 1 [default = 0 /*internal final class, no annotations*/];
|
||||
optional string extra_visibility = 2; // for things like java-specific visibilities
|
||||
|
||||
repeated Annotation annotations = 3;
|
||||
|
||||
required int32 name = 4;
|
||||
|
||||
repeated TypeParameter typeParameters = 5;
|
||||
@@ -147,17 +146,17 @@ message Callable {
|
||||
/*
|
||||
Visibility
|
||||
Modality
|
||||
has_annotations
|
||||
fun/val/var/constructor
|
||||
Kind
|
||||
inline
|
||||
setter::Modality
|
||||
setter::Visibility
|
||||
setter::has_annotations
|
||||
*/
|
||||
optional int32 flags = 1;
|
||||
optional string extra_visibility = 2; // for things like java-specific visibilities
|
||||
|
||||
repeated Annotation annotations = 3;
|
||||
|
||||
repeated TypeParameter typeParameters = 4;
|
||||
|
||||
optional Type receiverType = 5;
|
||||
@@ -167,6 +166,7 @@ message Callable {
|
||||
message ValueParameter {
|
||||
/*
|
||||
declaresDefault
|
||||
has_annotations
|
||||
*/
|
||||
optional int32 flags = 1;
|
||||
required int32 name = 2;
|
||||
@@ -194,8 +194,4 @@ enum Visibility {
|
||||
PROTECTED = 0x02;
|
||||
PUBLIC = 0x03;
|
||||
EXTRA = 0x04; // there's an extra field for the actual visibility
|
||||
}
|
||||
|
||||
message Annotation {
|
||||
// TODO ???
|
||||
}
|
||||
Reference in New Issue
Block a user