Commit 20507e6
authored
feat(jsii): Propagate stability to members (#522)
The JSII compiler now propagates an entity's own stability to it's
members that are not decorated with an explicit stability. Un-annotated
types get the stability of the assembly, un-annotated type members
(methods, properties, constructors, ...) get the stability of their
declaring type.
Note: Overridden members do not derogate! It is the responsibility of
the overriding entity to ensure an appropriate stability is used.1 parent 28241cd commit 20507e6
323 files changed
Lines changed: 8553 additions & 232 deletions
File tree
- packages
- jsii-calc-lib/test
- jsii-calc/test
- jsii-dotnet-generator/src/Amazon.JSII.Generator
- Class
- Enum
- Interface
- jsii-pacmak/test
- expected.jsii-calc-lib
- dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId
- Amazon/JSII/Tests/CalculatorNamespace/LibNamespace
- java/src/main/java/software/amazon/jsii/tests/calculator/lib
- python/src/scope/jsii_calc_lib
- expected.jsii-calc
- dotnet/Amazon.JSII.Tests.CalculatorPackageId
- Amazon/JSII/Tests/CalculatorNamespace
- DerivedClassHasNoProperties
- InterfaceInNamespaceIncludesClasses
- InterfaceInNamespaceOnlyInterface
- composition
- CompositeOperation
- java/src/main/java/software/amazon/jsii/tests/calculator
- DerivedClassHasNoProperties
- InterfaceInNamespaceIncludesClasses
- InterfaceInNamespaceOnlyInterface
- composition
- python/src/jsii_calc
- jsii/lib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
138 | 145 | | |
139 | 146 | | |
140 | 147 | | |
| |||
143 | 150 | | |
144 | 151 | | |
145 | 152 | | |
| 153 | + | |
146 | 154 | | |
147 | 155 | | |
148 | 156 | | |
| |||
155 | 163 | | |
156 | 164 | | |
157 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
158 | 169 | | |
159 | 170 | | |
160 | 171 | | |
| |||
171 | 182 | | |
172 | 183 | | |
173 | 184 | | |
| 185 | + | |
174 | 186 | | |
175 | 187 | | |
176 | 188 | | |
| |||
183 | 195 | | |
184 | 196 | | |
185 | 197 | | |
| 198 | + | |
186 | 199 | | |
187 | 200 | | |
188 | 201 | | |
| |||
203 | 216 | | |
204 | 217 | | |
205 | 218 | | |
| 219 | + | |
206 | 220 | | |
207 | 221 | | |
208 | 222 | | |
| |||
217 | 231 | | |
218 | 232 | | |
219 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
220 | 237 | | |
221 | 238 | | |
222 | 239 | | |
| |||
230 | 247 | | |
231 | 248 | | |
232 | 249 | | |
| 250 | + | |
233 | 251 | | |
234 | 252 | | |
235 | 253 | | |
| |||
243 | 261 | | |
244 | 262 | | |
245 | 263 | | |
| 264 | + | |
246 | 265 | | |
247 | 266 | | |
248 | 267 | | |
| |||
258 | 277 | | |
259 | 278 | | |
260 | 279 | | |
| 280 | + | |
261 | 281 | | |
262 | 282 | | |
263 | 283 | | |
| |||
272 | 292 | | |
273 | 293 | | |
274 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
275 | 298 | | |
276 | 299 | | |
277 | 300 | | |
| |||
294 | 317 | | |
295 | 318 | | |
296 | 319 | | |
| 320 | + | |
297 | 321 | | |
298 | 322 | | |
299 | 323 | | |
300 | 324 | | |
301 | 325 | | |
| 326 | + | |
302 | 327 | | |
303 | 328 | | |
304 | 329 | | |
| |||
325 | 350 | | |
326 | 351 | | |
327 | 352 | | |
| 353 | + | |
328 | 354 | | |
329 | 355 | | |
330 | 356 | | |
| |||
340 | 366 | | |
341 | 367 | | |
342 | 368 | | |
| 369 | + | |
343 | 370 | | |
344 | 371 | | |
345 | 372 | | |
| |||
360 | 387 | | |
361 | 388 | | |
362 | 389 | | |
| 390 | + | |
363 | 391 | | |
364 | 392 | | |
365 | 393 | | |
| |||
373 | 401 | | |
374 | 402 | | |
375 | 403 | | |
| 404 | + | |
376 | 405 | | |
377 | 406 | | |
378 | 407 | | |
| |||
394 | 423 | | |
395 | 424 | | |
396 | 425 | | |
| 426 | + | |
397 | 427 | | |
398 | 428 | | |
399 | 429 | | |
| |||
407 | 437 | | |
408 | 438 | | |
409 | 439 | | |
| 440 | + | |
410 | 441 | | |
411 | 442 | | |
412 | 443 | | |
| |||
422 | 453 | | |
423 | 454 | | |
424 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
425 | 459 | | |
426 | 460 | | |
427 | 461 | | |
| |||
435 | 469 | | |
436 | 470 | | |
437 | 471 | | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
438 | 475 | | |
439 | 476 | | |
440 | 477 | | |
| |||
453 | 490 | | |
454 | 491 | | |
455 | 492 | | |
| 493 | + | |
456 | 494 | | |
457 | 495 | | |
458 | 496 | | |
| |||
465 | 503 | | |
466 | 504 | | |
467 | 505 | | |
| 506 | + | |
468 | 507 | | |
469 | 508 | | |
470 | 509 | | |
| |||
484 | 523 | | |
485 | 524 | | |
486 | 525 | | |
| 526 | + | |
487 | 527 | | |
488 | 528 | | |
489 | 529 | | |
| |||
500 | 540 | | |
501 | 541 | | |
502 | 542 | | |
503 | | - | |
| 543 | + | |
504 | 544 | | |
0 commit comments