summaryrefslogtreecommitdiffstats
path: root/src/jaegertracing/thrift/lib/delphi/test/keywords/ReservedKeywords.thrift
blob: 2f49d742c1391bbde626407725122cc2714da828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

// make sure generated code does not produce name collisions with predefined keywords
namespace delphi System

include "ReservedIncluded.thrift"


typedef i32 Cardinal
typedef string message
typedef list< map< Cardinal, message>> program

struct unit {
  1: Cardinal downto;
  2: program procedure;
}

typedef set< unit> units

exception exception1 {
  1: program message;
  2: unit array;
}

service constructor {
  unit Create(1: Cardinal asm; 2: message inherited) throws (1: exception1 label);
  units Destroy();
}

const Cardinal downto = +1
const Cardinal published = -1

enum keywords {
  record = 1,
  repeat = 2,
  deprecated = 3
}


struct Struct_lists {
  1: list<Struct_simple> init;
  2: list<Struct_simple> struc;
  3: list<Struct_simple> field;
  4: list<Struct_simple> field_;
  5: list<Struct_simple> tracker;
  6: list<Struct_simple> Self;
}

struct Struct_structs {
  1: Struct_simple init;
  2: Struct_simple struc;
  3: Struct_simple field;
  4: Struct_simple field_;
  5: Struct_simple tracker;
  6: Struct_simple Self;
}

struct Struct_simple {
  1: bool init;
  2: bool struc;
  3: bool field;
  4: bool field_;
  5: bool tracker;
  6: bool Self;
}

struct Struct_strings {
  1: string init;
  2: string struc;
  3: string field;
  4: string field_;
  5: string tracker;
  6: string Self;
}

struct Struct_binary {
  1: binary init;
  2: binary struc;
  3: binary field;
  4: binary field_;
  5: binary tracker;
  6: binary Self;
}


typedef i32 IProtocol 
typedef i32 ITransport
typedef i32 IFace
typedef i32 IAsync
typedef i32 System
typedef i32 SysUtils
typedef i32 Generics
typedef i32 Thrift

struct Struct_Thrift_Names {
  1: IProtocol   IProtocol
  2: ITransport  ITransport
  3: IFace       IFace
  4: IAsync      IAsync
  5: System      System
  6: SysUtils    SysUtils
  7: Generics    Generics
  8: Thrift      Thrift
}


enum Thrift4554_Enum {
  Foo = 0,
  Bar = 1,
  Baz = 2,
}

struct Thrift4554_Struct {
  1 : optional double MinValue
  2 : optional double MaxValue
  3 : optional bool Integer  // causes issue
  4 : optional Thrift4554_Enum Foo
}


// EOF