Commit 06752e1
Add support for type signatures in CEL environment YAML configuration.
The `env_yaml` parser now accepts type signatures for variable types and function overload signatures. The `type` field can be used instead of `type_name` for variables, allowing a more compact representation of types, including type parameters and parameterized types. The `signature` field can be used for function overloads, providing a single string to define the overload's target, arguments, and member status. The `return` type in function overloads can now also be specified as a type signature string.
PiperOrigin-RevId: 9256272001 parent 76b61ae commit 06752e1
1 file changed
Lines changed: 30 additions & 51 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 83 | + | |
| 84 | + | |
88 | 85 | | |
89 | 86 | | |
90 | 87 | | |
| |||
139 | 136 | | |
140 | 137 | | |
141 | 138 | | |
142 | | - | |
| 139 | + | |
143 | 140 | | |
144 | | - | |
| 141 | + | |
145 | 142 | | |
146 | 143 | | |
147 | 144 | | |
| |||
219 | 216 | | |
220 | 217 | | |
221 | 218 | | |
222 | | - | |
| 219 | + | |
223 | 220 | | |
224 | | - | |
| 221 | + | |
225 | 222 | | |
226 | | - | |
| 223 | + | |
227 | 224 | | |
228 | | - | |
| 225 | + | |
229 | 226 | | |
230 | 227 | | |
231 | 228 | | |
| |||
275 | 272 | | |
276 | 273 | | |
277 | 274 | | |
278 | | - | |
| 275 | + | |
279 | 276 | | |
280 | | - | |
| 277 | + | |
281 | 278 | | |
282 | | - | |
| 279 | + | |
283 | 280 | | |
284 | | - | |
| 281 | + | |
285 | 282 | | |
286 | | - | |
| 283 | + | |
287 | 284 | | |
288 | | - | |
289 | | - | |
290 | | - | |
| 285 | + | |
291 | 286 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
| 287 | + | |
296 | 288 | | |
297 | | - | |
| 289 | + | |
298 | 290 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
| 291 | + | |
303 | 292 | | |
304 | | - | |
| 293 | + | |
305 | 294 | | |
306 | | - | |
| 295 | + | |
307 | 296 | | |
308 | | - | |
309 | | - | |
310 | | - | |
| 297 | + | |
311 | 298 | | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
| 299 | + | |
316 | 300 | | |
317 | | - | |
| 301 | + | |
318 | 302 | | |
319 | | - | |
| 303 | + | |
320 | 304 | | |
321 | 305 | | |
322 | 306 | | |
| |||
338 | 322 | | |
339 | 323 | | |
340 | 324 | | |
341 | | - | |
| 325 | + | |
342 | 326 | | |
343 | | - | |
| 327 | + | |
344 | 328 | | |
345 | 329 | | |
346 | 330 | | |
| |||
554 | 538 | | |
555 | 539 | | |
556 | 540 | | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
| 541 | + | |
| 542 | + | |
562 | 543 | | |
563 | 544 | | |
564 | 545 | | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
| 546 | + | |
| 547 | + | |
569 | 548 | | |
570 | 549 | | |
571 | 550 | | |
| |||
0 commit comments