@@ -120,7 +120,8 @@ function gatherReferences(file, project) {
120120 var cache = {};
121121 var filePath = file.filePath();
122122 var directory = file.directory;
123− var ast = file.namespace('mdast').ast;
123+ var space = file.namespace('mdast');
124+ var ast = space.tree || space.ast;
124125 var getDefinition;
125126 var prefix = '';
126127
@@ -300,7 +301,8 @@ function gatherExposedFactory() {
300301 */
301302 function gather(file) {
302303 var filePath = file.filePath();
303− var ast = file.namespace('mdast').ast;
304+ var space = file.namespace('mdast');
305+ var ast = space.tree || space.ast;
304306
305307 /*
306308 * Ignore files without AST or filename.