mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +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,
|
||||
field_has_create_set);
|
||||
}
|
||||
code += "};\n\n";
|
||||
code += "}\n\n";
|
||||
|
||||
if (opts.generate_object_based_api) {
|
||||
GenStruct_ObjectAPI(struct_def, code_ptr, opts);
|
||||
|
||||
@@ -43,7 +43,7 @@ public struct Ability : IFlatbufferObject
|
||||
_o.Id,
|
||||
_o.Distance);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class AbilityT
|
||||
{
|
||||
|
||||
@@ -97,7 +97,7 @@ public struct ArrayStruct : IFlatbufferObject
|
||||
_o.E,
|
||||
_f);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class ArrayStructT
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ public struct ArrayTable : IFlatbufferObject
|
||||
AddA(builder, MyGame.Example.ArrayStruct.Pack(builder, _o.A));
|
||||
return EndArrayTable(builder);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class ArrayTableT
|
||||
{
|
||||
|
||||
@@ -741,7 +741,7 @@ public struct Monster : IFlatbufferObject
|
||||
_testrequirednestedflatbuffer,
|
||||
_scalar_key_sorted_tables);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class MonsterT
|
||||
{
|
||||
|
||||
@@ -66,7 +66,7 @@ public struct NestedStruct : IFlatbufferObject
|
||||
_c,
|
||||
_d);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class NestedStructT
|
||||
{
|
||||
|
||||
@@ -74,7 +74,7 @@ public struct Referrable : IFlatbufferObject
|
||||
builder,
|
||||
_o.Id);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class ReferrableT
|
||||
{
|
||||
|
||||
@@ -94,7 +94,7 @@ public struct Stat : IFlatbufferObject
|
||||
_o.Val,
|
||||
_o.Count);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class StatT
|
||||
{
|
||||
|
||||
@@ -61,7 +61,7 @@ public struct StructOfStructs : IFlatbufferObject
|
||||
_c_id,
|
||||
_c_distance);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class StructOfStructsT
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ public struct Test : IFlatbufferObject
|
||||
_o.A,
|
||||
_o.B);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class TestT
|
||||
{
|
||||
|
||||
@@ -49,7 +49,7 @@ internal partial struct TestSimpleTableWithEnum : IFlatbufferObject
|
||||
builder,
|
||||
_o.Color);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
internal partial class TestSimpleTableWithEnumT
|
||||
{
|
||||
|
||||
@@ -158,7 +158,7 @@ public struct TypeAliases : IFlatbufferObject
|
||||
_v8,
|
||||
_vf64);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class TypeAliasesT
|
||||
{
|
||||
|
||||
@@ -71,7 +71,7 @@ public struct Vec3 : IFlatbufferObject
|
||||
_test3_a,
|
||||
_test3_b);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class Vec3T
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@ public struct Monster : IFlatbufferObject
|
||||
StartMonster(builder);
|
||||
return EndMonster(builder);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class MonsterT
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@ public struct InParentNamespace : IFlatbufferObject
|
||||
StartInParentNamespace(builder);
|
||||
return EndInParentNamespace(builder);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class InParentNamespaceT
|
||||
{
|
||||
|
||||
@@ -147,7 +147,7 @@ public struct MonsterExtra : IFlatbufferObject
|
||||
_dvec,
|
||||
_fvec);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class MonsterExtraT
|
||||
{
|
||||
|
||||
@@ -53,7 +53,7 @@ public struct KeywordsInTable : IFlatbufferObject
|
||||
_o.Is,
|
||||
_o.Private);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class KeywordsInTableT
|
||||
{
|
||||
|
||||
@@ -43,7 +43,7 @@ public struct StructInNestedNS : IFlatbufferObject
|
||||
_o.A,
|
||||
_o.B);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class StructInNestedNST
|
||||
{
|
||||
|
||||
@@ -49,7 +49,7 @@ public struct TableInNestedNS : IFlatbufferObject
|
||||
builder,
|
||||
_o.Foo);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class TableInNestedNST
|
||||
{
|
||||
|
||||
@@ -49,7 +49,7 @@ public struct SecondTableInA : IFlatbufferObject
|
||||
builder,
|
||||
_refer_to_c);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class SecondTableInAT
|
||||
{
|
||||
|
||||
@@ -83,7 +83,7 @@ public struct TableInFirstNS : IFlatbufferObject
|
||||
_foo_union,
|
||||
_o.FooStruct);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class TableInFirstNST
|
||||
{
|
||||
|
||||
@@ -56,7 +56,7 @@ public struct TableInC : IFlatbufferObject
|
||||
_refer_to_a1,
|
||||
_refer_to_a2);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class TableInCT
|
||||
{
|
||||
|
||||
@@ -261,7 +261,7 @@ public struct ScalarStuff : IFlatbufferObject
|
||||
_o.MaybeEnum,
|
||||
_o.DefaultEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class ScalarStuffT
|
||||
{
|
||||
|
||||
@@ -46,7 +46,7 @@ public struct Attacker : IFlatbufferObject
|
||||
builder,
|
||||
_o.SwordAttackDamage);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class AttackerT
|
||||
{
|
||||
|
||||
@@ -35,7 +35,7 @@ public struct BookReader : IFlatbufferObject
|
||||
builder,
|
||||
_o.BooksRead);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class BookReaderT
|
||||
{
|
||||
|
||||
@@ -148,7 +148,7 @@ public struct Movie : IFlatbufferObject
|
||||
_characters_type,
|
||||
_characters);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class MovieT
|
||||
{
|
||||
|
||||
@@ -35,7 +35,7 @@ public struct Rapunzel : IFlatbufferObject
|
||||
builder,
|
||||
_o.HairLength);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public class RapunzelT
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user