system/src/sc/lang/js/JSRuntimeProcessor.java
private void addFrameworkDependencies(BodyTypeDeclaration type, String typeLibFile, Map<JSFileEntry,Boolean> typesInFile) {
      if (ModelUtil.getCompileLiveDynamicTypes(type) && (type.isComponentType() || type.getDeclarationType() == DeclarationType.OBJECT)) {
         addJSLibFiles(DynUtil.class, true, typeLibFile, type, DepType.Uses);
      }

      if (type.needsDataBinding()) {
         addDependentType(type, Bind.class, typeLibFile, typesInFile, DepType.Uses);
      }
      if (type.needsSync()) {
         addDependentType(type, SyncManager.class, typeLibFile, typesInFile, DepType.Uses);
      }
      IScopeProcessor scopeProcessor = type.getScopeProcessor();
      if (scopeProcessor != null) {
         addDependentType(type, ScopeContext.class, typeLibFile, typesInFile, DepType.Extends);
      }
      if (type.dbTypeDescriptor != null) {
         addDependentType(type, IDBObject.class, typeLibFile, typesInFile, DepType.Extends);
      }
   }
/**
    * We detect dependencies during 'start' which does not include those added during 'transform'.   TODO: should this be changed.  It makes it harder to add new platform components?
    * For now we have a way to determine the key platform dependencies and add those to the JS at runtime so that's done here.
    */
We detect dependencies during 'start' which does not include those added during 'transform'.   TODO: should this be changed.  It makes it harder to add new platform components.
For now we have a way to determine the key platform dependencies and add those to the JS at runtime so that's done here.
We detect dependencies during ' start ' which does not include those added during ' transform ' . TODO : should this be changed . It makes it harder to add new platform components . For now we have a way to determine the key platform dependencies and add those to the JS at runtime so that ' s done here .
private void addFrameworkDependencies(BodyTypeDeclaration type, String typeLibFile, Map<JSFileEntry,Boolean> typesInFile) {
      if (ModelUtil.getCompileLiveDynamicTypes(type) && (type.isComponentType() || type.getDeclarationType() == DeclarationType.OBJECT)) {
         addJSLibFiles(DynUtil.class, true, typeLibFile, type, DepType.Uses);
      }
      if (type.needsDataBinding()) {
         addDependentType(type, Bind.class, typeLibFile, typesInFile, DepType.Uses);
      }
      if (type.needsSync()) {
         addDependentType(type, SyncManager.class, typeLibFile, typesInFile, DepType.Uses);
      }
      IScopeProcessor scopeProcessor = type.getScopeProcessor();
      if (scopeProcessor != null) {
         addDependentType(type, ScopeContext.class, typeLibFile, typesInFile, DepType.Extends);
      }
      if (type.dbTypeDescriptor != null) {
         addDependentType(type, IDBObject.class, typeLibFile, typesInFile, DepType.Extends);
      }
   }
private void addFrameworkDependencies ( BodyTypeDeclaration type , String typeLibFile , Map < JSFileEntry , Boolean > typesInFile ) { if ( ModelUtil . getCompileLiveDynamicTypes ( type ) && ( type . isComponentType ( ) || type . getDeclarationType ( ) == DeclarationType . OBJECT ) ) { addJSLibFiles ( DynUtil . class , true , typeLibFile , type , DepType . Uses ) ; } if ( type . needsDataBinding ( ) ) { addDependentType ( type , Bind . class , typeLibFile , typesInFile , DepType . Uses ) ; } if ( type . needsSync ( ) ) { addDependentType ( type , SyncManager . class , typeLibFile , typesInFile , DepType . Uses ) ; } IScopeProcessor scopeProcessor = type . getScopeProcessor ( ) ; if ( scopeProcessor != null ) { addDependentType ( type , ScopeContext . class , typeLibFile , typesInFile , DepType . Extends ) ; } if ( type . dbTypeDescriptor != null ) { addDependentType ( type , IDBObject . class , typeLibFile , typesInFile , DepType . Extends ) ; } }
We detect dependencies during 'start' which does not include those added during 'transform'.
We detect dependencies during ' start ' which does not include those added during ' transform ' .