mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 08:22:00 +00:00
[C#] Remove superfluous semicolon in C# structs (#6791)
Aims to resolve #6788 -Remove superfluous semicolon in C# structs
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public struct Ability : IFlatbufferObject
|
|||||||
_o.Id,
|
_o.Id,
|
||||||
_o.Distance);
|
_o.Distance);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class AbilityT
|
public class AbilityT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ public struct ArrayStruct : IFlatbufferObject
|
|||||||
_o.E,
|
_o.E,
|
||||||
_f);
|
_f);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class ArrayStructT
|
public class ArrayStructT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -741,7 +741,7 @@ public struct Monster : IFlatbufferObject
|
|||||||
_testrequirednestedflatbuffer,
|
_testrequirednestedflatbuffer,
|
||||||
_scalar_key_sorted_tables);
|
_scalar_key_sorted_tables);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class MonsterT
|
public class MonsterT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ public struct NestedStruct : IFlatbufferObject
|
|||||||
_c,
|
_c,
|
||||||
_d);
|
_d);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class NestedStructT
|
public class NestedStructT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ public struct Referrable : IFlatbufferObject
|
|||||||
builder,
|
builder,
|
||||||
_o.Id);
|
_o.Id);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class ReferrableT
|
public class ReferrableT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ public struct Stat : IFlatbufferObject
|
|||||||
_o.Val,
|
_o.Val,
|
||||||
_o.Count);
|
_o.Count);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class StatT
|
public class StatT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ public struct StructOfStructs : IFlatbufferObject
|
|||||||
_c_id,
|
_c_id,
|
||||||
_c_distance);
|
_c_distance);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class StructOfStructsT
|
public class StructOfStructsT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public struct Test : IFlatbufferObject
|
|||||||
_o.A,
|
_o.A,
|
||||||
_o.B);
|
_o.B);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class TestT
|
public class TestT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ internal partial struct TestSimpleTableWithEnum : IFlatbufferObject
|
|||||||
builder,
|
builder,
|
||||||
_o.Color);
|
_o.Color);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
internal partial class TestSimpleTableWithEnumT
|
internal partial class TestSimpleTableWithEnumT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ public struct TypeAliases : IFlatbufferObject
|
|||||||
_v8,
|
_v8,
|
||||||
_vf64);
|
_vf64);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class TypeAliasesT
|
public class TypeAliasesT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ public struct Vec3 : IFlatbufferObject
|
|||||||
_test3_a,
|
_test3_a,
|
||||||
_test3_b);
|
_test3_b);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class Vec3T
|
public class Vec3T
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public struct Monster : IFlatbufferObject
|
|||||||
StartMonster(builder);
|
StartMonster(builder);
|
||||||
return EndMonster(builder);
|
return EndMonster(builder);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class MonsterT
|
public class MonsterT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public struct InParentNamespace : IFlatbufferObject
|
|||||||
StartInParentNamespace(builder);
|
StartInParentNamespace(builder);
|
||||||
return EndInParentNamespace(builder);
|
return EndInParentNamespace(builder);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class InParentNamespaceT
|
public class InParentNamespaceT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ public struct MonsterExtra : IFlatbufferObject
|
|||||||
_dvec,
|
_dvec,
|
||||||
_fvec);
|
_fvec);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class MonsterExtraT
|
public class MonsterExtraT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ public struct KeywordsInTable : IFlatbufferObject
|
|||||||
_o.Is,
|
_o.Is,
|
||||||
_o.Private);
|
_o.Private);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class KeywordsInTableT
|
public class KeywordsInTableT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public struct StructInNestedNS : IFlatbufferObject
|
|||||||
_o.A,
|
_o.A,
|
||||||
_o.B);
|
_o.B);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class StructInNestedNST
|
public class StructInNestedNST
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public struct TableInNestedNS : IFlatbufferObject
|
|||||||
builder,
|
builder,
|
||||||
_o.Foo);
|
_o.Foo);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class TableInNestedNST
|
public class TableInNestedNST
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public struct SecondTableInA : IFlatbufferObject
|
|||||||
builder,
|
builder,
|
||||||
_refer_to_c);
|
_refer_to_c);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class SecondTableInAT
|
public class SecondTableInAT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ public struct TableInFirstNS : IFlatbufferObject
|
|||||||
_foo_union,
|
_foo_union,
|
||||||
_o.FooStruct);
|
_o.FooStruct);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class TableInFirstNST
|
public class TableInFirstNST
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ public struct ScalarStuff : IFlatbufferObject
|
|||||||
_o.MaybeEnum,
|
_o.MaybeEnum,
|
||||||
_o.DefaultEnum);
|
_o.DefaultEnum);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class ScalarStuffT
|
public class ScalarStuffT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ public struct Attacker : IFlatbufferObject
|
|||||||
builder,
|
builder,
|
||||||
_o.SwordAttackDamage);
|
_o.SwordAttackDamage);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class AttackerT
|
public class AttackerT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ public struct BookReader : IFlatbufferObject
|
|||||||
builder,
|
builder,
|
||||||
_o.BooksRead);
|
_o.BooksRead);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class BookReaderT
|
public class BookReaderT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ public struct Movie : IFlatbufferObject
|
|||||||
_characters_type,
|
_characters_type,
|
||||||
_characters);
|
_characters);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class MovieT
|
public class MovieT
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ public struct Rapunzel : IFlatbufferObject
|
|||||||
builder,
|
builder,
|
||||||
_o.HairLength);
|
_o.HairLength);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
public class RapunzelT
|
public class RapunzelT
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user