Skip to content

Commit

Permalink
Fix SCodeDump of redeclare dimensions (#11793)
Browse files Browse the repository at this point in the history
- Dump the dimensions of a component redeclare after the component name
  and not before, since having the dimensions on the type is not valid
  and no longer supported by OMC.
  • Loading branch information
perost committed Jan 9, 2024
1 parent 54cc78f commit f48b666
Show file tree
Hide file tree
Showing 3 changed files with 372 additions and 372 deletions.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/Template/SCodeDumpTpl.tpl
Expand Up @@ -254,7 +254,7 @@ match component
end match
let cond_str = match condition case SOME(cond) then ' if <%AbsynDumpTpl.dumpExp(cond)%>'
let cmt_str = dumpComment(comment, options)
'<%prefix_str%><%attr_pre_str%><%type_str%><%attr_dim_str%> <%name%><%mod_str%><%cond_str%><%cc_str%><%cmt_str%>'
'<%prefix_str%><%attr_pre_str%><%type_str%> <%name%><%attr_dim_str%><%mod_str%><%cond_str%><%cc_str%><%cmt_str%>'
end dumpComponent;

template dumpDefineUnit(SCode.Element defineUnit)
Expand Down

0 comments on commit f48b666

Please sign in to comment.