summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-11-12 10:14:03 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-12 10:17:25 -0300
commita5daa2b72fa725c6a8129f990351f18b694ef357 (patch)
tree4b7bed3aca3a27e74a343c8213254ae7e5fd32ec
parent77c1777ca2a9594e04b9b2bac1fc241fdff68445 (diff)
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
-rw-r--r--src/bin/eolian_mono/eolian/mono/parameter.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/parameter.hh b/src/bin/eolian_mono/eolian/mono/parameter.hh
index 7c7b8f2..deb9a9e 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
909 // Assign a default value to the out variable in case we end up in the catch clause. 909 // Assign a default value to the out variable in case we end up in the catch clause.
910 return as_generator( 910 return as_generator(
911 string << " = default(" << type << ");" 911 string << " = default(" << type << ");"
912 ).generate(sink, std::make_tuple(param.param_name, param), context); 912 ).generate(sink, std::make_tuple(escape_keyword(param.param_name), param), context);
913 } 913 }
914 return true; 914 return true;
915 } 915 }