docs: function inlineAndCompile(filenames, options, reporter, callback, errback) {
  
    // The caller needs to do a chdir.
    var basePath = './';
    var depTarget = options && options.depTarget;
  
    var loadCount = 0;
    var elements = [];
    var project = new Project(basePath);
    var loader = new InlineCodeLoader(reporter, project, elements, depTarget);
  
    function loadNext() {
      var codeUnit = loader.load(filenames[loadCount]);
      startCodeUnit = codeUnit;
  
      codeUnit.addListener(function() {
        loadCount++;
        if (loadCount < filenames.length) {
          loadNext();
        } else if (depTarget) {
          callback(null);
        } else {
          var tree = allLoaded(basePath, reporter, elements);
          callback(tree);
        }
      }, function() {
        console.error(codeUnit.loader.error);
        errback(codeUnit.loader.error);
      });
    }
  
    loadNext();
  }