Skip to content

Commit

Permalink
- small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo committed Nov 14, 2015
1 parent 91f3526 commit d2ceb48
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Compiler/FFrontEnd/FGraph.mo
Expand Up @@ -816,9 +816,14 @@ public function getGraphName
protected
Absyn.Path p;
Scope s;
Ref r;
algorithm
_::s := listReverse(currentScope(inGraph));
outPath := Absyn.stringListPath(List.map(s, FNode.refName));
r::s := currentScope(inGraph);
p := Absyn.makeIdentPathFromString(FNode.refName(r));
for r in s loop
p := Absyn.QUALIFIED(FNode.refName(r), p);
end for;
Absyn.QUALIFIED(_, outPath) := p;
end getGraphName;

public function getGraphNameNoImplicitScopes
Expand Down

0 comments on commit d2ceb48

Please sign in to comment.