THRIFT-5656 Escape Delphi keywords with '&' prefix instead of '_' suffix
Client: Delphi
Patch: Jens Geyer
diff --git a/lib/delphi/test/serializer/TestSerializer.Data.pas b/lib/delphi/test/serializer/TestSerializer.Data.pas
index 269e307..24f850d 100644
--- a/lib/delphi/test/serializer/TestSerializer.Data.pas
+++ b/lib/delphi/test/serializer/TestSerializer.Data.pas
@@ -213,7 +213,7 @@
var bonk : IBonk;
begin
bonk := TBonkImpl.Create;
- bonk.Type_ := 31337;
+ bonk.&Type := 31337;
bonk.Message := 'I am a bonk... xor!';
result := TNestingImpl.Create;
@@ -262,11 +262,11 @@
// one with two
stage2 := TThriftListImpl<IBonk>.Create;
b := TBonkImpl.Create;
- b.type_ := 1;
+ b.&type := 1;
b.message := 'Wait.';
stage2.Add( b);
b := TBonkImpl.Create;
- b.type_ := 2;
+ b.&type := 2;
b.message := 'What?';
stage2.Add( b);
result.Bonks.Add( 'two', stage2);
@@ -274,15 +274,15 @@
// one with three
stage2 := TThriftListImpl<IBonk>.Create;
b := TBonkImpl.Create;
- b.type_ := 3;
+ b.&type := 3;
b.message := 'quoth';
stage2.Add( b);
b := TBonkImpl.Create;
- b.type_ := 4;
+ b.&type := 4;
b.message := 'the raven';
stage2.Add( b);
b := TBonkImpl.Create;
- b.type_ := 5;
+ b.&type := 5;
b.message := 'nevermore';
stage2.Add( b);
result.bonks.Add( 'three', stage2);