forked from enlightenment/efl
eolian_mono: avoid keyword as a variable name
Summary: ``` private static void relation_left_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity child, out Efl.Gfx.IEntity kw_base, out Efl.Gfx.Align relative_position) { Eina.Log.Debug("function efl_ui_relative_container_relation_left_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { base = default(Efl.Gfx.IEntity);relative_position = default(Efl.Gfx.Align); ``` Parameter name is replaced with `kw_base` but `base` is not changed in assignment expression (`base = default(Efl.Gfx.IEntity...`). This patch will fix following compiler error. ``` src/bindings/mono/efl_ui_relative_container.eo.cs(544,21): error CS1525: Unexpected symbol `=', expecting `.' or `[' ``` Test Plan: ninja with D10640 Reviewers: lauromoura Reviewed By: lauromoura Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10639
This commit is contained in:
parent
838352b163
commit
cb5a3bbbc9
|
@ -909,7 +909,7 @@ struct native_convert_out_variable_generator
|
|||
// Assign a default value to the out variable in case we end up in the catch clause.
|
||||
return as_generator(
|
||||
string << " = default(" << type << ");"
|
||||
).generate(sink, std::make_tuple(param.param_name, param), context);
|
||||
).generate(sink, std::make_tuple(escape_keyword(param.param_name), param), context);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue