mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-23 12:20:00 +00:00
[C#] Handle keywords (#6775)
* Handle keywords in C# C# should handle keywords similarly to other languages by appending an underscore after the keyword. * Fix clang-format for idl_gen_csharp.cpp * Fix spacing clang-format issue
This commit is contained in:
@@ -137,6 +137,18 @@
|
||||
<Compile Include="..\optional_scalars\ScalarStuff.cs">
|
||||
<Link>optional_scalars\ScalarStuff.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\keyword_test\ABC.cs">
|
||||
<Link>keyword_test\ABC.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\keyword_test\public.cs">
|
||||
<Link>keyword_test\public.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\keyword_test\KeywordsInTable.cs">
|
||||
<Link>keyword_test\KeywordsInTable.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\keyword_test\KeywordsInUnion.cs">
|
||||
<Link>keyword_test\KeywordsInUnion.cs</Link>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -168,6 +168,18 @@
|
||||
<Compile Include="..\optional_scalars\ScalarStuff.cs">
|
||||
<Link>optional_scalars\ScalarStuff.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\keyword_test\ABC.cs">
|
||||
<Link>keyword_test\ABC.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\keyword_test\public.cs">
|
||||
<Link>keyword_test\public.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\keyword_test\KeywordsInTable.cs">
|
||||
<Link>keyword_test\KeywordsInTable.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\keyword_test\KeywordsInUnion.cs">
|
||||
<Link>keyword_test\KeywordsInUnion.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="Assert.cs" />
|
||||
<Compile Include="ByteBufferTests.cs" />
|
||||
<Compile Include="FlatBufferBuilderTests.cs" />
|
||||
|
||||
Reference in New Issue
Block a user