Changeset 13987
- Timestamp:
- 2012-11-20T14:05:24+01:00 (11 years ago)
- Location:
- trunk/Compiler/FrontEnd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/FrontEnd/InstSymbolTable.mo
r13986 r13987 264 264 265 265 // A basic type doesn't have any components, nothing to add. 266 case (InstTypes.BASIC_TYPE(name), st) then (inClass, st);266 case (InstTypes.BASIC_TYPE(name), st) then st; 267 267 268 268 // A complex class, add its components to the symboltable. … … 319 319 input SymbolTable inSymbolTable; 320 320 input Boolean inCondition; 321 output Class outClass; 322 output SymbolTable outSymbolTable; 323 algorithm 324 (outClass, outSymbolTable) := match(inClass, inSymbolTable, inCondition) 321 output SymbolTable outSymbolTable; 322 algorithm 323 outSymbolTable := match(inClass, inSymbolTable, inCondition) 325 324 local 326 325 Class cls; 327 326 SymbolTable st; 328 327 329 case (cls, st, false) then (cls, st);328 case (cls, st, false) then st; 330 329 case (cls, st, true) 331 330 equation 332 (cls, st)= addClass(cls, st);333 then 334 (cls, st);331 st = addClass(cls, st); 332 then 333 st; 335 334 336 335 end match; … … 592 591 (st, added) = addInstCondComponent(name, comp, opt_comp, st); 593 592 // Add the element's class if the component was added. 594 (cls, st)= addClassOnTrue(cls, st, added);593 st = addClassOnTrue(cls, st, added); 595 594 then 596 595 (st, added); -
trunk/Compiler/FrontEnd/SCodeInst.mo
r13986 r13987 2298 2298 InstTypes.NO_PREFIXES(), env, InstTypes.emptyPrefix, INST_ALL(), inGlobals); 2299 2299 2300 (_, consts)= InstSymbolTable.addElement(elem, consts);2300 consts = InstSymbolTable.addElement(elem, consts); 2301 2301 then 2302 2302 ((consts, funcs)); … … 2345 2345 InstTypes.NO_PREFIXES(), env, prefix, INST_ALL(), inGlobals); 2346 2346 2347 (_, consts)= InstSymbolTable.addElement(elem, consts);2347 consts = InstSymbolTable.addElement(elem, consts); 2348 2348 then 2349 2349 ((consts, funcs));
Note: See TracChangeset
for help on using the changeset viewer.