Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20216 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Apr 21, 2014
1 parent bdc2615 commit 6bcf8a5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions Compiler/FFrontEnd/FGraphBuild.mo
Expand Up @@ -1283,19 +1283,19 @@ algorithm
// ignore basic types and builtins
true = not FNode.isRefBasicType(inTargetRef) and
not FNode.isRefBuiltin(inTargetRef);
// if target is a reference found on the way

// if target is a reference found on the way
// to the top from parent ref do not clone!
true = listMember(inTargetRef, FNode.originalScope(inParentRef));

/*
// if the first non implicit scope of target
// if the first non implicit scope of target
// and parent are the same do not clone
true = referenceEq(
FNode.nonImplicitRefFromScope(FNode.originalScope(inTargetRef)),
FNode.nonImplicitRefFromScope(FNode.originalScope(inParentRef)));
*/

(g, n) = FGraph.node(g, inName, {inParentRef}, FCore.REF(inTargetRef));
// make a ref
rn = FNode.toRef(n);
Expand Down
8 changes: 4 additions & 4 deletions Compiler/FFrontEnd/FGraphStream.mo
Expand Up @@ -118,14 +118,14 @@ algorithm
// filter basic types, builtins and things in sections, modifers or dimensions
false = FNode.isBasicType(n);
false = FNode.isIn(n, FNode.isRefBasicType);
false = FNode.isBuiltin(n);
false = FNode.isIn(n, FNode.isRefBuiltin);
false = FNode.isIn(n, FNode.isRefSection);
false = FNode.isIn(n, FNode.isRefMod);
false = FNode.isIn(n, FNode.isRefDims);
id = intString(FNode.id(n));
(color, _, nds) = FGraphDump.graphml(n, false);
GraphStream.addNode("default", "omc", -1, id);
Expand All @@ -147,7 +147,7 @@ algorithm
case (_, _)
equation
true = Flags.isSet(Flags.GRAPH_INST_SHOW_GRAPH);
// filter basic types, builtins and things in sections, modifers or dimensions
false = FNode.isBasicType(source);
false = FNode.isBasicType(target);
Expand Down
8 changes: 4 additions & 4 deletions Compiler/FFrontEnd/FNode.mo
Expand Up @@ -844,7 +844,7 @@ end isIn;

public function nonImplicitRefFromScope
"@author: adrpo
returns the first NON implicit
returns the first NON implicit
reference from the given scope!"
input Scope inScope;
output Ref outRef;
Expand All @@ -853,15 +853,15 @@ algorithm
local
Ref r;
Scope rest;

case ({}) then fail();

case (r::rest)
equation
false = isRefImplicitScope(r);
then
r;

case (_::rest)
equation
r = nonImplicitRefFromScope(rest);
Expand Down

0 comments on commit 6bcf8a5

Please sign in to comment.