forked from enlightenment/efl
csharp: Fix typo in generated code.
This commit is contained in:
parent
eac568f6dc
commit
d1e7a9474c
|
@ -554,7 +554,7 @@ struct native_convert_in_variable_generator
|
|||
else if (need_struct_conversion(regular))
|
||||
{
|
||||
return as_generator(
|
||||
"var " << string << " = " << type << "_StructConvertion.ToExternal(" << escape_keyword(param.param_name) << ");\n"
|
||||
"var " << string << " = " << type << "_StructConversion.ToExternal(" << escape_keyword(param.param_name) << ");\n"
|
||||
).generate(sink, std::make_tuple(in_variable_name(param.param_name), param.type), context);
|
||||
}
|
||||
else if (param.type.c_type == "Eina_Binbuf *" || param.type.c_type == "const Eina_Binbuf *")
|
||||
|
@ -622,7 +622,7 @@ struct convert_in_variable_generator
|
|||
else if (need_struct_conversion(regular))
|
||||
{
|
||||
return as_generator(
|
||||
"var " << string << " = " << type << "_StructConvertion.ToInternal(" << escape_keyword(param.param_name) << ");\n"
|
||||
"var " << string << " = " << type << "_StructConversion.ToInternal(" << escape_keyword(param.param_name) << ");\n"
|
||||
).generate(sink, std::make_tuple(in_variable_name(param.param_name), param.type), context);
|
||||
}
|
||||
else if (param.type.c_type == "Eina_Binbuf *" || param.type.c_type == "const Eina_Binbuf *")
|
||||
|
@ -883,7 +883,7 @@ struct convert_out_assign_generator
|
|||
else if (need_struct_conversion(regular))
|
||||
{
|
||||
return as_generator(
|
||||
string << " = " << type << "_StructConvertion.ToExternal(" << out_variable_name(param.param_name) << ");\n"
|
||||
string << " = " << type << "_StructConversion.ToExternal(" << out_variable_name(param.param_name) << ");\n"
|
||||
).generate(sink, std::make_tuple(escape_keyword(param.param_name), param.type), context);
|
||||
}
|
||||
else if (param_is_acceptable(param, "Eina_Binbuf *", WANT_OWN, WANT_OUT)
|
||||
|
@ -966,7 +966,7 @@ struct native_convert_in_ptr_assign_generator
|
|||
if (param_should_use_in_var(param, true) && param.type.is_ptr && !param.type.has_own && need_struct_conversion(regular))
|
||||
{
|
||||
return as_generator(
|
||||
string << " = " << type << "_StructConvertion.ToInternal(" << in_variable_name(param.param_name) << ");\n"
|
||||
string << " = " << type << "_StructConversion.ToInternal(" << in_variable_name(param.param_name) << ");\n"
|
||||
).generate(sink, std::make_tuple(escape_keyword(param.param_name), param.type), context);
|
||||
}
|
||||
|
||||
|
@ -983,7 +983,7 @@ struct convert_in_ptr_assign_generator
|
|||
if (param_should_use_in_var(param, true) && param.type.is_ptr && !param.type.has_own && need_struct_conversion(regular))
|
||||
{
|
||||
return as_generator(
|
||||
string << " = " << type << "_StructConvertion.ToExternal(" << in_variable_name(param.param_name) << ");\n"
|
||||
string << " = " << type << "_StructConversion.ToExternal(" << in_variable_name(param.param_name) << ");\n"
|
||||
).generate(sink, std::make_tuple(escape_keyword(param.param_name), param.type), context);
|
||||
}
|
||||
|
||||
|
@ -1021,7 +1021,7 @@ struct convert_return_generator
|
|||
else if (need_struct_conversion(regular))
|
||||
{
|
||||
return as_generator(
|
||||
"return " << type << "_StructConvertion.ToExternal(_ret_var);\n"
|
||||
"return " << type << "_StructConversion.ToExternal(_ret_var);\n"
|
||||
).generate(sink, ret_type, context);
|
||||
}
|
||||
else if (ret_type.c_type == "Eina_Binbuf *" || ret_type.c_type == "const Eina_Binbuf *")
|
||||
|
@ -1089,7 +1089,7 @@ struct native_convert_out_assign_generator
|
|||
else if (need_struct_conversion(regular))
|
||||
{
|
||||
return as_generator(
|
||||
string << " = " << type << "_StructConvertion.ToInternal(" << string << ");\n"
|
||||
string << " = " << type << "_StructConversion.ToInternal(" << string << ");\n"
|
||||
).generate(sink, std::make_tuple(escape_keyword(param.param_name), param.type, out_variable_name(param.param_name)), context);
|
||||
}
|
||||
else if (param_is_acceptable(param, "Eina_Stringshare *", !WANT_OWN, WANT_OUT))
|
||||
|
@ -1222,7 +1222,7 @@ struct native_convert_return_generator
|
|||
else if (need_struct_conversion(regular))
|
||||
{
|
||||
return as_generator(
|
||||
"return " << type << "_StructConvertion.ToInternal(_ret_var);\n"
|
||||
"return " << type << "_StructConversion.ToInternal(_ret_var);\n"
|
||||
).generate(sink, ret_type, context);
|
||||
}
|
||||
else if (ret_type.c_type == "const char *")
|
||||
|
|
|
@ -140,12 +140,12 @@ struct struct_internal_definition_generator
|
|||
scope_tab << "///<summary>Implicit conversion to the internal/marshalling representation.</summary>\n"
|
||||
<< scope_tab << "public static implicit operator " << string << "(" << string << " struct_)\n"
|
||||
<< scope_tab << "{\n"
|
||||
<< scope_tab << scope_tab << "return " << string << "_StructConvertion.ToExternal(struct_);\n"
|
||||
<< scope_tab << scope_tab << "return " << string << "_StructConversion.ToExternal(struct_);\n"
|
||||
<< scope_tab << "}\n"
|
||||
<< scope_tab << "///<summary>Implicit conversion to the managed representation.</summary>\n"
|
||||
<< scope_tab << "public static implicit operator " << string << "(" << string << " struct_)\n"
|
||||
<< scope_tab << "{\n"
|
||||
<< scope_tab << scope_tab << "return " << string << "_StructConvertion.ToInternal(struct_);\n"
|
||||
<< scope_tab << scope_tab << "return " << string << "_StructConversion.ToInternal(struct_);\n"
|
||||
<< scope_tab << "}\n"
|
||||
).generate(sink, std::make_tuple(external_name, internal_name, external_name,
|
||||
internal_name, external_name, external_name), context))
|
||||
|
@ -201,7 +201,7 @@ struct to_internal_field_convert_generator
|
|||
else if (need_struct_conversion(regular))
|
||||
{
|
||||
if (!as_generator(
|
||||
scope_tab << scope_tab << "_internal_struct." << string << " = " << type << "_StructConvertion.ToInternal(_external_struct." << string << ");\n")
|
||||
scope_tab << scope_tab << "_internal_struct." << string << " = " << type << "_StructConversion.ToInternal(_external_struct." << string << ");\n")
|
||||
.generate(sink, std::make_tuple(field_name, field.type, field_name), context))
|
||||
return false;
|
||||
}
|
||||
|
@ -311,7 +311,7 @@ struct to_external_field_convert_generator
|
|||
else if (need_struct_conversion(regular))
|
||||
{
|
||||
if (!as_generator(
|
||||
scope_tab << scope_tab << "_external_struct." << string << " = " << type << "_StructConvertion.ToExternal(_internal_struct." << string << ");\n")
|
||||
scope_tab << scope_tab << "_external_struct." << string << " = " << type << "_StructConversion.ToExternal(_internal_struct." << string << ");\n")
|
||||
.generate(sink, std::make_tuple(field_name, field.type, field_name), context))
|
||||
return false;
|
||||
}
|
||||
|
@ -365,7 +365,7 @@ struct struct_binding_conversion_functions_generator
|
|||
// Open conversion class
|
||||
if (!as_generator
|
||||
(
|
||||
"internal static class " << string << "_StructConvertion\n{\n"
|
||||
"internal static class " << string << "_StructConversion\n{\n"
|
||||
)
|
||||
.generate(sink, struct_.cxx_name, context))
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue