summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/struct_definition.hh
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-03-22 13:17:42 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2018-04-03 17:29:41 -0300
commitd1e7a9474cc8dca46aa2c1eec7adac19a9fa84b0 (patch)
treedef4bd458c9c911bca96c631ead35be919a7d225 /src/bin/eolian_mono/eolian/mono/struct_definition.hh
parenteac568f6dcdfdd8ab79d020e6a82a4b8666d17de (diff)
csharp: Fix typo in generated code.
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/struct_definition.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/struct_definition.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/struct_definition.hh b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
index 2382368bcd..f772564440 100644
--- a/src/bin/eolian_mono/eolian/mono/struct_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
@@ -140,12 +140,12 @@ struct struct_internal_definition_generator
140 scope_tab << "///<summary>Implicit conversion to the internal/marshalling representation.</summary>\n" 140 scope_tab << "///<summary>Implicit conversion to the internal/marshalling representation.</summary>\n"
141 << scope_tab << "public static implicit operator " << string << "(" << string << " struct_)\n" 141 << scope_tab << "public static implicit operator " << string << "(" << string << " struct_)\n"
142 << scope_tab << "{\n" 142 << scope_tab << "{\n"
143 << scope_tab << scope_tab << "return " << string << "_StructConvertion.ToExternal(struct_);\n" 143 << scope_tab << scope_tab << "return " << string << "_StructConversion.ToExternal(struct_);\n"
144 << scope_tab << "}\n" 144 << scope_tab << "}\n"
145 << scope_tab << "///<summary>Implicit conversion to the managed representation.</summary>\n" 145 << scope_tab << "///<summary>Implicit conversion to the managed representation.</summary>\n"
146 << scope_tab << "public static implicit operator " << string << "(" << string << " struct_)\n" 146 << scope_tab << "public static implicit operator " << string << "(" << string << " struct_)\n"
147 << scope_tab << "{\n" 147 << scope_tab << "{\n"
148 << scope_tab << scope_tab << "return " << string << "_StructConvertion.ToInternal(struct_);\n" 148 << scope_tab << scope_tab << "return " << string << "_StructConversion.ToInternal(struct_);\n"
149 << scope_tab << "}\n" 149 << scope_tab << "}\n"
150 ).generate(sink, std::make_tuple(external_name, internal_name, external_name, 150 ).generate(sink, std::make_tuple(external_name, internal_name, external_name,
151 internal_name, external_name, external_name), context)) 151 internal_name, external_name, external_name), context))
@@ -201,7 +201,7 @@ struct to_internal_field_convert_generator
201 else if (need_struct_conversion(regular)) 201 else if (need_struct_conversion(regular))
202 { 202 {
203 if (!as_generator( 203 if (!as_generator(
204 scope_tab << scope_tab << "_internal_struct." << string << " = " << type << "_StructConvertion.ToInternal(_external_struct." << string << ");\n") 204 scope_tab << scope_tab << "_internal_struct." << string << " = " << type << "_StructConversion.ToInternal(_external_struct." << string << ");\n")
205 .generate(sink, std::make_tuple(field_name, field.type, field_name), context)) 205 .generate(sink, std::make_tuple(field_name, field.type, field_name), context))
206 return false; 206 return false;
207 } 207 }
@@ -311,7 +311,7 @@ struct to_external_field_convert_generator
311 else if (need_struct_conversion(regular)) 311 else if (need_struct_conversion(regular))
312 { 312 {
313 if (!as_generator( 313 if (!as_generator(
314 scope_tab << scope_tab << "_external_struct." << string << " = " << type << "_StructConvertion.ToExternal(_internal_struct." << string << ");\n") 314 scope_tab << scope_tab << "_external_struct." << string << " = " << type << "_StructConversion.ToExternal(_internal_struct." << string << ");\n")
315 .generate(sink, std::make_tuple(field_name, field.type, field_name), context)) 315 .generate(sink, std::make_tuple(field_name, field.type, field_name), context))
316 return false; 316 return false;
317 } 317 }
@@ -365,7 +365,7 @@ struct struct_binding_conversion_functions_generator
365 // Open conversion class 365 // Open conversion class
366 if (!as_generator 366 if (!as_generator
367 ( 367 (
368 "internal static class " << string << "_StructConvertion\n{\n" 368 "internal static class " << string << "_StructConversion\n{\n"
369 ) 369 )
370 .generate(sink, struct_.cxx_name, context)) 370 .generate(sink, struct_.cxx_name, context))
371 return false; 371 return false;