Commit 80ac1a4
authored
Remove bind from outside markings for default constructors. (#705)
* Remove bind from outside markings for default constructors of non derived records.
- The default constructor should not use outside bindings.
Unless it is for a derived record which has bindings on declaration. Unfortunately
the old FrontEnd creates additional record types even when the modification
on a record variable declaration are not declarations.
- Therefore, we now remove the outside binding markings from the types_vars
even for the default constructor so that they are not picked
by the codegen function when generating the body for the default
constructors.
- Constructors with outside inputs are generated explicitly
with a name that contains the index of the variable.1 parent 533e9a8 commit 80ac1a4
File tree
3 files changed
+32
-2
lines changed- OMCompiler/Compiler
- FrontEnd
- SimCode
3 files changed
+32
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
| 839 | + | |
| 840 | + | |
840 | 841 | | |
841 | 842 | | |
842 | 843 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
| 993 | + | |
993 | 994 | | |
994 | 995 | | |
995 | 996 | | |
| |||
1003 | 1004 | | |
1004 | 1005 | | |
1005 | 1006 | | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
1006 | 1019 | | |
1007 | 1020 | | |
1008 | 1021 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1616 | 1616 | | |
1617 | 1617 | | |
1618 | 1618 | | |
1619 | | - | |
1620 | 1619 | | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
1621 | 1624 | | |
1622 | 1625 | | |
1623 | 1626 | | |
| |||
1712 | 1715 | | |
1713 | 1716 | | |
1714 | 1717 | | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
1715 | 1731 | | |
1716 | 1732 | | |
1717 | 1733 | | |
| |||
0 commit comments