Skip to content

Commit d78c686

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Use class info for inserted classes
Fixes #3410, where listFile depends on the ELEMENTITEM having a correct Absyn.Info.
1 parent 20a6b17 commit d78c686

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Compiler/Script/Interactive.mo

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14649,11 +14649,14 @@ protected function addClassInElementitemlist
1464914649
input list<Absyn.ElementItem> inAbsynElementItemLst;
1465014650
input Absyn.Class inClass;
1465114651
output list<Absyn.ElementItem> outAbsynElementItemLst;
14652+
protected
14653+
Absyn.Info info;
1465214654
algorithm
14655+
Absyn.CLASS(info=info) := inClass;
1465314656
outAbsynElementItemLst := listAppend(inAbsynElementItemLst,
1465414657
{Absyn.ELEMENTITEM(
1465514658
Absyn.ELEMENT(false,NONE(),Absyn.NOT_INNER_OUTER(),Absyn.CLASSDEF(false,inClass),
14656-
Absyn.dummyInfo,NONE()))});
14659+
info,NONE()))});
1465714660
end addClassInElementitemlist;
1465814661

1465914662
protected function getInnerClass

0 commit comments

Comments
 (0)