A bit optimizing setters/getters codegen
Publish PHP Package / docker (push) Successful in 5s Details

This commit is contained in:
Pavel Shevaev 2024-11-22 18:15:14 +03:00
parent 2c87ea219b
commit d5e8a9fe58
1 changed files with 2 additions and 2 deletions

View File

@ -802,7 +802,7 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack
{%- elseif has_token(o, 'bhl_blob') ~%}
ref var f = ref ctx.GetBlob<{{class}}>();
{%- else ~%}
var f = ({{class}})ctx.obj;
var f = ({{class}})ctx._obj;
{%- endif ~%}
{% if token(f, 'bhl_set') == 2 %}
@ -821,7 +821,7 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack
{%~ elseif has_token(o, 'bhl_blob') ~%}
//nothing for blob
{%- else ~%}
ctx.SetObj(f, ctx.type);
ctx._obj = f;
{%- endif ~%}
#endif
}