forked from enlightenment/efl
csharp: Small style changes
Summary: - Marshal annotations - Parameters - Structs - Parts Depends on D8614 Reviewers: segfaultxavi, vitor.sousa Reviewed By: segfaultxavi, vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8622
This commit is contained in:
parent
787b3374a9
commit
8d53c19d9c
|
@ -1478,6 +1478,7 @@ struct constructor_invocation_generator
|
||||||
"if (" <<
|
"if (" <<
|
||||||
(efl::eolian::grammar::attribute_reorder<-1>
|
(efl::eolian::grammar::attribute_reorder<-1>
|
||||||
("Efl.Eo.Globals.ParamHelperCheck(" << constructor_parameter_name(ctor) << ")") % " || ") << ")\n"
|
("Efl.Eo.Globals.ParamHelperCheck(" << constructor_parameter_name(ctor) << ")") % " || ") << ")\n"
|
||||||
|
<< scope_tab << scope_tab << "{\n"
|
||||||
<< scope_tab << scope_tab << scope_tab << name_helpers::managed_method_name(ctor.function) << "("
|
<< scope_tab << scope_tab << scope_tab << name_helpers::managed_method_name(ctor.function) << "("
|
||||||
).generate(sink, params, context))
|
).generate(sink, params, context))
|
||||||
return false;
|
return false;
|
||||||
|
@ -1493,7 +1494,9 @@ struct constructor_invocation_generator
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!as_generator(");").generate(sink, attributes::unused, context))
|
if (!as_generator(
|
||||||
|
");\n"
|
||||||
|
<< scope_tab << scope_tab << "}\n").generate(sink, attributes::unused, context))
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ struct part_definition_generator
|
||||||
<< scope_tab << "{\n"
|
<< scope_tab << "{\n"
|
||||||
<< scope_tab << scope_tab << "get\n"
|
<< scope_tab << scope_tab << "get\n"
|
||||||
<< scope_tab << scope_tab << "{\n"
|
<< scope_tab << scope_tab << "{\n"
|
||||||
<< scope_tab << scope_tab << scope_tab << "return Efl.IPartNativeInherit.efl_part_get_ptr.Value.Delegate(NativeHandle, \"" << part.name << "\") as " << part_klass_name << ";\n"
|
<< scope_tab << scope_tab << scope_tab << "return GetPart(\"" << part.name << "\") as " << part_klass_name << ";\n"
|
||||||
<< scope_tab << scope_tab << "}\n"
|
<< scope_tab << scope_tab << "}\n"
|
||||||
<< scope_tab << "}\n"
|
<< scope_tab << "}\n"
|
||||||
).generate(sink, part.documentation, context);
|
).generate(sink, part.documentation, context);
|
||||||
|
|
Loading…
Reference in New Issue