coreRuntime/src/sc/obj/ScopeContext.java
public void init() {
      if (destroyed) {
         System.err.println("*** Reinitializing destroyed scope context");
         destroyed = false;
      }
      ScopeDefinition def = getScopeDefinition();
      if (def != null) {
         List<ScopeDefinition> parScopeDefs = def.getParentScopes();
         if (parScopeDefs != null) {
            for (ScopeDefinition parScopeDef: parScopeDefs) {
               ScopeContext parCtx = parScopeDef.getScopeContext(true);
               if (parCtx != null) {
                  parCtx.addChildContext(this);
                  addParentContext(parCtx);
               }
            }
         }
      }
   }
/** Should be called to initialize the parent/child scopeContexts */
Should be called to initialize the parent/child scopeContexts
Should be called to initialize the parent / child scopeContexts
public void init() {
      if (destroyed) {
         System.err.println("*** Reinitializing destroyed scope context");
         destroyed = false;
      }
      ScopeDefinition def = getScopeDefinition();
      if (def != null) {
         List<ScopeDefinition> parScopeDefs = def.getParentScopes();
         if (parScopeDefs != null) {
            for (ScopeDefinition parScopeDef: parScopeDefs) {
               ScopeContext parCtx = parScopeDef.getScopeContext(true);
               if (parCtx != null) {
                  parCtx.addChildContext(this);
                  addParentContext(parCtx);
               }
            }
         }
      }
   }
public void init ( ) { if ( destroyed ) { System . err . println ( "*** Reinitializing destroyed scope context" ) ; destroyed = false ; } ScopeDefinition def = getScopeDefinition ( ) ; if ( def != null ) { List < ScopeDefinition > parScopeDefs = def . getParentScopes ( ) ; if ( parScopeDefs != null ) { for ( ScopeDefinition parScopeDef : parScopeDefs ) { ScopeContext parCtx = parScopeDef . getScopeContext ( true ) ; if ( parCtx != null ) { parCtx . addChildContext ( this ) ; addParentContext ( parCtx ) ; } } } } }
Should be called to initialize the parent/child scopeContexts
Should be called to initialize the parent / child scopeContexts