private void fillEmptyModules ( Iterable < JSModule > modules ) { for ( JSModule module : modules ) { if ( ! module . getName ( ) . equals ( JSModule . WEAK_MODULE_NAME ) && module . getInputs ( ) . isEmpty ( ) ) { CompilerInput input = new CompilerInput ( SourceFile . fromCode ( createFillFileName ( module . getName ( ) ) , "" ) ) ; input . setCompiler ( this ) ; module . add ( input ) ; } } }
Fill any empty modules with a place holder file . It makes any cross module motion easier .