[C#] Remove superfluous semicolon in C# structs (#6791)

Aims to resolve #6788

-Remove superfluous semicolon in C# structs
This commit is contained in:
Todd Hansen
2021-08-17 10:02:57 -05:00
committed by GitHub
parent d6f51ea16d
commit 4a0879458d
27 changed files with 27 additions and 27 deletions

View File

@@ -1335,7 +1335,7 @@ class CSharpGenerator : public BaseGenerator {
GenPackUnPack_ObjectAPI(struct_def, code_ptr, opts, struct_has_create,
field_has_create_set);
}
code += "};\n\n";
code += "}\n\n";
if (opts.generate_object_based_api) {
GenStruct_ObjectAPI(struct_def, code_ptr, opts);

View File

@@ -43,7 +43,7 @@ public struct Ability : IFlatbufferObject
_o.Id,
_o.Distance);
}
};
}
public class AbilityT
{

View File

@@ -97,7 +97,7 @@ public struct ArrayStruct : IFlatbufferObject
_o.E,
_f);
}
};
}
public class ArrayStructT
{

View File

@@ -44,7 +44,7 @@ public struct ArrayTable : IFlatbufferObject
AddA(builder, MyGame.Example.ArrayStruct.Pack(builder, _o.A));
return EndArrayTable(builder);
}
};
}
public class ArrayTableT
{

View File

@@ -741,7 +741,7 @@ public struct Monster : IFlatbufferObject
_testrequirednestedflatbuffer,
_scalar_key_sorted_tables);
}
};
}
public class MonsterT
{

View File

@@ -66,7 +66,7 @@ public struct NestedStruct : IFlatbufferObject
_c,
_d);
}
};
}
public class NestedStructT
{

View File

@@ -74,7 +74,7 @@ public struct Referrable : IFlatbufferObject
builder,
_o.Id);
}
};
}
public class ReferrableT
{

View File

@@ -94,7 +94,7 @@ public struct Stat : IFlatbufferObject
_o.Val,
_o.Count);
}
};
}
public class StatT
{

View File

@@ -61,7 +61,7 @@ public struct StructOfStructs : IFlatbufferObject
_c_id,
_c_distance);
}
};
}
public class StructOfStructsT
{

View File

@@ -44,7 +44,7 @@ public struct Test : IFlatbufferObject
_o.A,
_o.B);
}
};
}
public class TestT
{

View File

@@ -49,7 +49,7 @@ internal partial struct TestSimpleTableWithEnum : IFlatbufferObject
builder,
_o.Color);
}
};
}
internal partial class TestSimpleTableWithEnumT
{

View File

@@ -158,7 +158,7 @@ public struct TypeAliases : IFlatbufferObject
_v8,
_vf64);
}
};
}
public class TypeAliasesT
{

View File

@@ -71,7 +71,7 @@ public struct Vec3 : IFlatbufferObject
_test3_a,
_test3_b);
}
};
}
public class Vec3T
{

View File

@@ -37,7 +37,7 @@ public struct Monster : IFlatbufferObject
StartMonster(builder);
return EndMonster(builder);
}
};
}
public class MonsterT
{

View File

@@ -37,7 +37,7 @@ public struct InParentNamespace : IFlatbufferObject
StartInParentNamespace(builder);
return EndInParentNamespace(builder);
}
};
}
public class InParentNamespaceT
{

View File

@@ -147,7 +147,7 @@ public struct MonsterExtra : IFlatbufferObject
_dvec,
_fvec);
}
};
}
public class MonsterExtraT
{

View File

@@ -53,7 +53,7 @@ public struct KeywordsInTable : IFlatbufferObject
_o.Is,
_o.Private);
}
};
}
public class KeywordsInTableT
{

View File

@@ -43,7 +43,7 @@ public struct StructInNestedNS : IFlatbufferObject
_o.A,
_o.B);
}
};
}
public class StructInNestedNST
{

View File

@@ -49,7 +49,7 @@ public struct TableInNestedNS : IFlatbufferObject
builder,
_o.Foo);
}
};
}
public class TableInNestedNST
{

View File

@@ -49,7 +49,7 @@ public struct SecondTableInA : IFlatbufferObject
builder,
_refer_to_c);
}
};
}
public class SecondTableInAT
{

View File

@@ -83,7 +83,7 @@ public struct TableInFirstNS : IFlatbufferObject
_foo_union,
_o.FooStruct);
}
};
}
public class TableInFirstNST
{

View File

@@ -56,7 +56,7 @@ public struct TableInC : IFlatbufferObject
_refer_to_a1,
_refer_to_a2);
}
};
}
public class TableInCT
{

View File

@@ -261,7 +261,7 @@ public struct ScalarStuff : IFlatbufferObject
_o.MaybeEnum,
_o.DefaultEnum);
}
};
}
public class ScalarStuffT
{

View File

@@ -46,7 +46,7 @@ public struct Attacker : IFlatbufferObject
builder,
_o.SwordAttackDamage);
}
};
}
public class AttackerT
{

View File

@@ -35,7 +35,7 @@ public struct BookReader : IFlatbufferObject
builder,
_o.BooksRead);
}
};
}
public class BookReaderT
{

View File

@@ -148,7 +148,7 @@ public struct Movie : IFlatbufferObject
_characters_type,
_characters);
}
};
}
public class MovieT
{

View File

@@ -35,7 +35,7 @@ public struct Rapunzel : IFlatbufferObject
builder,
_o.HairLength);
}
};
}
public class RapunzelT
{