Changes between Version 1 and Version 2 of Scopes
- Timestamp:
- 04/20/11 08:22:13 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Scopes
v1 v2 7 7 8 8 ScopeIF: 9 Collection<LocalVariableIF> variables();10 ScopeIF parent();11 Iterator<ScopeIF> children();12 int numChildren();9 * Collection<LocalVariableIF> variables(); 10 * ScopeIF parent(); 11 * Iterator<ScopeIF> children(); 12 * int numChildren(); 13 13 14 14 ModelIF: 15 ScopeIF newScope(ScopeIF parentScope);16 LocationIF newLocation(ScopeIF scope, ...);17 methods to create locations need to specify scope instead of function15 * ScopeIF newScope(ScopeIF parentScope); 16 * LocationIF newLocation(ScopeIF scope, ...); 17 * methods to create locations need to specify scope instead of function 18 18 19 19 FunctionIF: 20 /* creating a function creates one scope automatically: */21 ScopeIF outerScope();20 * /* creating a function creates one scope automatically: */ 21 * ScopeIF outerScope();
