eolian: make hashes beta-only for now

They're not completely settled on and we don't even know if we want
them at all. So let's make them beta only for now.

Ref T8050.
This commit is contained in:
Daniel Kolesa 2019-09-20 17:03:58 +02:00
parent 61ce4c79fd
commit 718f3cd495
3 changed files with 10 additions and 5 deletions

View File

@ -293,6 +293,11 @@ _validate_type(Validate_State *vals, Eolian_Type *tp)
int kwid = eo_lexer_keyword_str_to_id(tp->base.name);
if (kwid > KW_void)
tp->ownable = EINA_TRUE;
if (kwid == KW_hash && vals->stable)
{
_eo_parser_log(&tp->base, "hashes not allowed in stable context");
return EINA_FALSE;
}
Eolian_Type *itp = tp->base_type;
/* validate types in brackets so transitive fields get written */
while (itp)

View File

@ -1,4 +1,4 @@
class Owning {
class @beta Owning {
methods {
test1 {
params {

View File

@ -58,12 +58,12 @@ class Complex extends Efl.Object
l: array<string> @move;
}
}
inhash {
inhash @beta {
params {
l: hash<string, string>;
}
}
inhashown {
inhashown @beta {
params {
l: hash<string, string> @move;
}
@ -139,12 +139,12 @@ class Complex extends Efl.Object
@out l: array<string> @move;
}
}
outhash {
outhash @beta {
params {
@out l: hash<string, string>;
}
}
outhashown {
outhashown @beta {
params {
@out l: hash<string, string> @move;
}