Skip to content

Commit

Permalink
- Add PARTEVALFUNCTION to the list of called functions in a function
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11731 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 12, 2012
1 parent 077e748 commit f1d436a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Compiler/BackEnd/SimCode.mo
Expand Up @@ -9748,6 +9748,11 @@ algorithm
path = Absyn.makeNotFullyQualified(path);
false = List.isMemberOnTrue(path,filter,Absyn.pathEqual);
then ((e,(path::acc,filter)));
case ((e as DAE.PARTEVALFUNCTION(path = path),(acc,filter)))
equation
path = Absyn.makeNotFullyQualified(path);
false = List.isMemberOnTrue(path,filter,Absyn.pathEqual);
then ((e,(path::acc,filter)));
case ((e as DAE.CREF(ty = DAE.T_FUNCTION_REFERENCE_FUNC(builtin = false)),(acc,filter)))
equation
path = Absyn.crefToPath(getCrefFromExp(e));
Expand Down
2 changes: 0 additions & 2 deletions Compiler/FrontEnd/Parser.mo
Expand Up @@ -66,8 +66,6 @@ end parseexp;
public function parsestring "Parse a string as if it were a stored definition"
input String str;
input String infoFilename := "<interactive>";
/* What ??? */
/*input Boolean skipScodeCheck "Would cause ModelicaBuiltin.mo to run into an infinite loop";*/
output Absyn.Program outProgram;
algorithm
outProgram := parsebuiltinstring(str,infoFilename);
Expand Down

0 comments on commit f1d436a

Please sign in to comment.