Commit 20d7f29
authored
Improve getAllSubtypeOf API (#13889)
- Return an empty list if the class being searched for does not exist.
- Rename `AllLoadedClasses` used as default value by some APIs to
`__OpenModelica_AllLoadedClasses` to reduce the risk of name conflicts.
- Use the top scope as scope in NFApi.frontEndLookup when searching all
loaded classes instead of failing.1 parent 8ae74ad commit 20d7f29
File tree
6 files changed
+54
-11
lines changed- OMCompiler/Compiler
- Script
- Stubs
- testsuite/openmodelica/interactive-API
6 files changed
+54
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3537 | 3537 | | |
3538 | 3538 | | |
3539 | 3539 | | |
| 3540 | + | |
3540 | 3541 | | |
3541 | 3542 | | |
3542 | 3543 | | |
| |||
3546 | 3547 | | |
3547 | 3548 | | |
3548 | 3549 | | |
3549 | | - | |
| 3550 | + | |
3550 | 3551 | | |
3551 | 3552 | | |
3552 | 3553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2364 | 2364 | | |
2365 | 2365 | | |
2366 | 2366 | | |
| 2367 | + | |
2367 | 2368 | | |
2368 | 2369 | | |
2369 | 2370 | | |
| |||
2378 | 2379 | | |
2379 | 2380 | | |
2380 | 2381 | | |
2381 | | - | |
| 2382 | + | |
2382 | 2383 | | |
2383 | 2384 | | |
2384 | 2385 | | |
2385 | 2386 | | |
2386 | | - | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
2387 | 2392 | | |
2388 | 2393 | | |
2389 | 2394 | | |
| |||
3864 | 3869 | | |
3865 | 3870 | | |
3866 | 3871 | | |
3867 | | - | |
| 3872 | + | |
3868 | 3873 | | |
3869 | | - | |
| 3874 | + | |
| 3875 | + | |
3870 | 3876 | | |
3871 | 3877 | | |
3872 | 3878 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| 398 | + | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
| |||
442 | 443 | | |
443 | 444 | | |
444 | 445 | | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | 446 | | |
449 | 447 | | |
450 | 448 | | |
451 | 449 | | |
452 | 450 | | |
453 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
454 | 459 | | |
455 | 460 | | |
456 | 461 | | |
| |||
712 | 717 | | |
713 | 718 | | |
714 | 719 | | |
715 | | - | |
716 | 720 | | |
717 | | - | |
718 | | - | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
719 | 729 | | |
720 | 730 | | |
721 | 731 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
0 commit comments