/
antlr_listener.go
244 lines (163 loc) · 8.17 KB
/
antlr_listener.go
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
// Code generated from antlr.g4 by ANTLR 4.8. DO NOT EDIT.
package parser // antlr
import "github.com/antlr/antlr4/runtime/Go/antlr"
// antlrListener is a complete listener for a parse tree produced by antlrParser.
type antlrListener interface {
antlr.ParseTreeListener
// EnterProto is called when entering the proto production.
EnterProto(c *ProtoContext)
// EnterSyntax is called when entering the syntax production.
EnterSyntax(c *SyntaxContext)
// EnterImports is called when entering the imports production.
EnterImports(c *ImportsContext)
// EnterPackageName is called when entering the packageName production.
EnterPackageName(c *PackageNameContext)
// EnterOption is called when entering the option production.
EnterOption(c *OptionContext)
// EnterOptionName is called when entering the optionName production.
EnterOptionName(c *OptionNameContext)
// EnterOptionDecl is called when entering the optionDecl production.
EnterOptionDecl(c *OptionDeclContext)
// EnterOptionDeclVar is called when entering the optionDeclVar production.
EnterOptionDeclVar(c *OptionDeclVarContext)
// EnterExtend is called when entering the extend production.
EnterExtend(c *ExtendContext)
// EnterExtendDecl is called when entering the extendDecl production.
EnterExtendDecl(c *ExtendDeclContext)
// EnterExtendName is called when entering the extendName production.
EnterExtendName(c *ExtendNameContext)
// EnterMessage is called when entering the message production.
EnterMessage(c *MessageContext)
// EnterMessageDecl is called when entering the messageDecl production.
EnterMessageDecl(c *MessageDeclContext)
// EnterEnum is called when entering the enum production.
EnterEnum(c *EnumContext)
// EnterEnumDecl is called when entering the enumDecl production.
EnterEnumDecl(c *EnumDeclContext)
// EnterEnumField is called when entering the enumField production.
EnterEnumField(c *EnumFieldContext)
// EnterKeyValue is called when entering the keyValue production.
EnterKeyValue(c *KeyValueContext)
// EnterService is called when entering the service production.
EnterService(c *ServiceContext)
// EnterRpcName is called when entering the rpcName production.
EnterRpcName(c *RpcNameContext)
// EnterRpcParams is called when entering the rpcParams production.
EnterRpcParams(c *RpcParamsContext)
// EnterClientStreams is called when entering the clientStreams production.
EnterClientStreams(c *ClientStreamsContext)
// EnterRpcReturns is called when entering the rpcReturns production.
EnterRpcReturns(c *RpcReturnsContext)
// EnterServerStreams is called when entering the serverStreams production.
EnterServerStreams(c *ServerStreamsContext)
// EnterRpc is called when entering the rpc production.
EnterRpc(c *RpcContext)
// EnterReserved is called when entering the reserved production.
EnterReserved(c *ReservedContext)
// EnterRanges is called when entering the ranges production.
EnterRanges(c *RangesContext)
// EnterRangeDef is called when entering the rangeDef production.
EnterRangeDef(c *RangeDefContext)
// EnterFieldNames is called when entering the fieldNames production.
EnterFieldNames(c *FieldNamesContext)
// EnterFieldType is called when entering the fieldType production.
EnterFieldType(c *FieldTypeContext)
// EnterField is called when entering the field production.
EnterField(c *FieldContext)
// EnterFieldOpts is called when entering the fieldOpts production.
EnterFieldOpts(c *FieldOptsContext)
// EnterOneof is called when entering the oneof production.
EnterOneof(c *OneofContext)
// EnterOneofField is called when entering the oneofField production.
EnterOneofField(c *OneofFieldContext)
// EnterMapField is called when entering the mapField production.
EnterMapField(c *MapFieldContext)
// EnterKeyType is called when entering the keyType production.
EnterKeyType(c *KeyTypeContext)
// EnterReservedWord is called when entering the reservedWord production.
EnterReservedWord(c *ReservedWordContext)
// EnterFullIdent is called when entering the fullIdent production.
EnterFullIdent(c *FullIdentContext)
// EnterMessageOrEnumType is called when entering the messageOrEnumType production.
EnterMessageOrEnumType(c *MessageOrEnumTypeContext)
// EnterConstant is called when entering the constant production.
EnterConstant(c *ConstantContext)
// ExitProto is called when exiting the proto production.
ExitProto(c *ProtoContext)
// ExitSyntax is called when exiting the syntax production.
ExitSyntax(c *SyntaxContext)
// ExitImports is called when exiting the imports production.
ExitImports(c *ImportsContext)
// ExitPackageName is called when exiting the packageName production.
ExitPackageName(c *PackageNameContext)
// ExitOption is called when exiting the option production.
ExitOption(c *OptionContext)
// ExitOptionName is called when exiting the optionName production.
ExitOptionName(c *OptionNameContext)
// ExitOptionDecl is called when exiting the optionDecl production.
ExitOptionDecl(c *OptionDeclContext)
// ExitOptionDeclVar is called when exiting the optionDeclVar production.
ExitOptionDeclVar(c *OptionDeclVarContext)
// ExitExtend is called when exiting the extend production.
ExitExtend(c *ExtendContext)
// ExitExtendDecl is called when exiting the extendDecl production.
ExitExtendDecl(c *ExtendDeclContext)
// ExitExtendName is called when exiting the extendName production.
ExitExtendName(c *ExtendNameContext)
// ExitMessage is called when exiting the message production.
ExitMessage(c *MessageContext)
// ExitMessageDecl is called when exiting the messageDecl production.
ExitMessageDecl(c *MessageDeclContext)
// ExitEnum is called when exiting the enum production.
ExitEnum(c *EnumContext)
// ExitEnumDecl is called when exiting the enumDecl production.
ExitEnumDecl(c *EnumDeclContext)
// ExitEnumField is called when exiting the enumField production.
ExitEnumField(c *EnumFieldContext)
// ExitKeyValue is called when exiting the keyValue production.
ExitKeyValue(c *KeyValueContext)
// ExitService is called when exiting the service production.
ExitService(c *ServiceContext)
// ExitRpcName is called when exiting the rpcName production.
ExitRpcName(c *RpcNameContext)
// ExitRpcParams is called when exiting the rpcParams production.
ExitRpcParams(c *RpcParamsContext)
// ExitClientStreams is called when exiting the clientStreams production.
ExitClientStreams(c *ClientStreamsContext)
// ExitRpcReturns is called when exiting the rpcReturns production.
ExitRpcReturns(c *RpcReturnsContext)
// ExitServerStreams is called when exiting the serverStreams production.
ExitServerStreams(c *ServerStreamsContext)
// ExitRpc is called when exiting the rpc production.
ExitRpc(c *RpcContext)
// ExitReserved is called when exiting the reserved production.
ExitReserved(c *ReservedContext)
// ExitRanges is called when exiting the ranges production.
ExitRanges(c *RangesContext)
// ExitRangeDef is called when exiting the rangeDef production.
ExitRangeDef(c *RangeDefContext)
// ExitFieldNames is called when exiting the fieldNames production.
ExitFieldNames(c *FieldNamesContext)
// ExitFieldType is called when exiting the fieldType production.
ExitFieldType(c *FieldTypeContext)
// ExitField is called when exiting the field production.
ExitField(c *FieldContext)
// ExitFieldOpts is called when exiting the fieldOpts production.
ExitFieldOpts(c *FieldOptsContext)
// ExitOneof is called when exiting the oneof production.
ExitOneof(c *OneofContext)
// ExitOneofField is called when exiting the oneofField production.
ExitOneofField(c *OneofFieldContext)
// ExitMapField is called when exiting the mapField production.
ExitMapField(c *MapFieldContext)
// ExitKeyType is called when exiting the keyType production.
ExitKeyType(c *KeyTypeContext)
// ExitReservedWord is called when exiting the reservedWord production.
ExitReservedWord(c *ReservedWordContext)
// ExitFullIdent is called when exiting the fullIdent production.
ExitFullIdent(c *FullIdentContext)
// ExitMessageOrEnumType is called when exiting the messageOrEnumType production.
ExitMessageOrEnumType(c *MessageOrEnumTypeContext)
// ExitConstant is called when exiting the constant production.
ExitConstant(c *ConstantContext)
}