[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, GenPackUnPack_ObjectAPI(struct_def, code_ptr, opts, struct_has_create,
field_has_create_set); field_has_create_set);
} }
code += "};\n\n"; code += "}\n\n";
if (opts.generate_object_based_api) { if (opts.generate_object_based_api) {
GenStruct_ObjectAPI(struct_def, code_ptr, opts); GenStruct_ObjectAPI(struct_def, code_ptr, opts);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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