summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/klass.hh
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-03-21 14:38:45 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-03-21 14:48:33 -0300
commit0881d1524b6d3996a29b68820690f97821116585 (patch)
treec3fa39f72ad50b7f6ac0a0eb8652ba539af1c5a3 /src/bin/eolian_mono/eolian/mono/klass.hh
parentf36d8b9bb1792730bc96c2cf07126361ccfe4ebe (diff)
efl-csharp: Add back I prefix for interfaces.
Summary: Conforming to C# coding conventions. For properties, now we only generate a wrapper if its name does not clash with the name of the class that would be implementing it. Fixes T7751 Reviewers: vitor.sousa, felipealmeida, segfaultxavi Reviewed By: vitor.sousa, segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7751 Differential Revision: https://phab.enlightenment.org/D8397
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/klass.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh
index 71228ed..20045de 100644
--- a/src/bin/eolian_mono/eolian/mono/klass.hh
+++ b/src/bin/eolian_mono/eolian/mono/klass.hh
@@ -177,7 +177,7 @@ struct klass
177 ).generate(sink, p, iface_cxt)) 177 ).generate(sink, p, iface_cxt))
178 return false; 178 return false;
179 179
180 if (!as_generator(*(property_wrapper_definition)).generate(sink, cls.properties, iface_cxt)) 180 if (!as_generator(*(property_wrapper_definition(cls))).generate(sink, cls.properties, iface_cxt))
181 return false; 181 return false;
182 182
183 // End of interface declaration 183 // End of interface declaration
@@ -272,13 +272,13 @@ struct klass
272 return false; 272 return false;
273 273
274 // Property wrappers 274 // Property wrappers
275 if (!as_generator(*(property_wrapper_definition)).generate(sink, cls.properties, concrete_cxt)) 275 if (!as_generator(*(property_wrapper_definition(cls))).generate(sink, cls.properties, concrete_cxt))
276 return false; 276 return false;
277 277
278 for (auto&& klass : helpers::non_implemented_interfaces(cls, concrete_cxt)) 278 for (auto&& klass : helpers::non_implemented_interfaces(cls, concrete_cxt))
279 { 279 {
280 attributes::klass_def c(get_klass(klass, cls.unit), cls.unit); 280 attributes::klass_def c(get_klass(klass, cls.unit), cls.unit);
281 if (!as_generator(*(property_wrapper_definition)).generate(sink, c.properties, concrete_cxt)) 281 if (!as_generator(*(property_wrapper_definition(cls))).generate(sink, c.properties, concrete_cxt))
282 return false; 282 return false;
283 } 283 }
284 284
@@ -353,13 +353,13 @@ struct klass
353 return false; 353 return false;
354 354
355 // Property wrappers 355 // Property wrappers
356 if (!as_generator(*(property_wrapper_definition)).generate(sink, cls.properties, inherit_cxt)) 356 if (!as_generator(*(property_wrapper_definition(cls))).generate(sink, cls.properties, inherit_cxt))
357 return false; 357 return false;
358 358
359 for (auto&& klass : helpers::non_implemented_interfaces(cls, inherit_cxt)) 359 for (auto&& klass : helpers::non_implemented_interfaces(cls, inherit_cxt))
360 { 360 {
361 attributes::klass_def c(get_klass(klass, cls.unit), cls.unit); 361 attributes::klass_def c(get_klass(klass, cls.unit), cls.unit);
362 if (!as_generator(*(property_wrapper_definition)).generate(sink, c.properties, inherit_cxt)) 362 if (!as_generator(*(property_wrapper_definition(cls))).generate(sink, c.properties, inherit_cxt))
363 return false; 363 return false;
364 } 364 }
365 365