Changeset 3c1d34e in OpenModelica
- Timestamp:
- 2019-01-14T11:26:28+01:00 (5 years ago)
- Branches:
- Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
- Children:
- 8481cc5
- Parents:
- 0fb5b980
- git-author:
- Per Östlund <per.ostlund@…> (01/14/19 11:26:28)
- git-committer:
- hudson <openmodelica@…> (01/14/19 11:26:28)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Compiler/NFFrontEnd/NFFlatten.mo
r0fb5b980 r3c1d34e 1239 1239 input Variable var; 1240 1240 input output FunctionTree funcs; 1241 protected1242 Binding binding;1243 ComponentRef cref;1244 InstNode node;1245 Type ty;1246 1241 algorithm 1247 1242 () := match var 1248 case Variable.VARIABLE(ty = ty, binding = binding) 1249 algorithm 1250 // TODO: Collect functions from the component's type attributes. 1251 1252 funcs := collectTypeFuncs(ty, funcs); 1253 1254 // Collect functions used in the component's binding, if it has one. 1255 if Binding.isExplicitlyBound(binding) then 1256 funcs := collectExpFuncs(Binding.getTypedExp(binding), funcs); 1257 end if; 1243 case Variable.VARIABLE() 1244 algorithm 1245 funcs := collectTypeFuncs(var.ty, funcs); 1246 funcs := collectBindingFuncs(var.binding, funcs); 1247 1248 for attr in var.typeAttributes loop 1249 funcs := collectBindingFuncs(Util.tuple22(attr), funcs); 1250 end for; 1258 1251 then 1259 1252 (); … … 1261 1254 end match; 1262 1255 end collectComponentFuncs; 1256 1257 function collectBindingFuncs 1258 input Binding binding; 1259 input output FunctionTree funcs; 1260 algorithm 1261 if Binding.isExplicitlyBound(binding) then 1262 funcs := collectExpFuncs(Binding.getTypedExp(binding), funcs); 1263 end if; 1264 end collectBindingFuncs; 1263 1265 1264 1266 function collectTypeFuncs
Note: See TracChangeset
for help on using the changeset viewer.