lauromoura pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=a5daa2b72fa725c6a8129f990351f18b694ef357
commit a5daa2b72fa725c6a8129f990351f18b694ef357 Author: Yeongjong Lee <[email protected]> Date: Tue Nov 12 10:14:03 2019 -0300 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 --- src/bin/eolian_mono/eolian/mono/parameter.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/eolian_mono/eolian/mono/parameter.hh b/src/bin/eolian_mono/eolian/mono/parameter.hh index 7c7b8f275d..deb9a9e5a8 100644 --- a/src/bin/eolian_mono/eolian/mono/parameter.hh +++ b/src/bin/eolian_mono/eolian/mono/parameter.hh @@ -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; } --
