/// <summary> /// Adds the given module /// </summary> /// <param name="sourceModule"></param> public void AddModule(SourceModule sourceModule) { Contract.Requires(sourceModule != null); // nab the module's blocks var blocks = sourceModule.GetBlocks(); // add it to our list modules.Add(blocks); // add its imports foreach (var import in blocks.Imports) { imports.Add(import); } // parse the JavaScript sections foreach (var jsRegion in sourceModule.Regions.JavascriptRegions) { AddJavaScriptRegion(jsRegion); } }