A bit optimizing setters/getters codegen
Publish PHP Package / docker (push) Successful in 5s
Details
Publish PHP Package / docker (push) Successful in 5s
Details
This commit is contained in:
parent
2c87ea219b
commit
d5e8a9fe58
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue