This repository was archived by the owner on May 18, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -785,7 +785,12 @@ algorithm
785785 cls_tree := Class . classTree(InstNode . getClass(extendsNode));
786786 ClassTree . mapExtends(cls_tree, function modifyExtends(scope = extendsNode));
787787
788+ // Replace the node in the node type with the given scope, so that crefs found
789+ // in this extends are prefixed correctly.
788790 InstNodeType . BASE_CLASS (definition = elem) := InstNode . nodeType(extendsNode);
791+ extendsNode := InstNode . setNodeType(InstNodeType . BASE_CLASS (scope, elem), extendsNode);
792+
793+ // Create a modifier from the extends.
789794 ext_mod := Modifier . fromElement(elem, scope);
790795
791796 () := match elem
@@ -848,7 +853,7 @@ algorithm
848853 end if ;
849854
850855 ClassTree . mapExtends(cls_tree,
851- function instExtends(attributes = attributes, parent = parent, visibility = vis));
856+ function instExtends(attributes = attributes, parent = parent, visibility = vis));
852857
853858 ClassTree . applyLocalComponents(cls_tree,
854859 function instComponent(attributes = attributes, parent = node, scope = node));
You can’t perform that action at this time.
0 commit comments