@@ -120,7 +120,8 @@ function gatherReferences(file, project) {
120 var cache = {};
120 var cache = {};
121 var filePath = file.filePath();
121 var filePath = file.filePath();
122 var directory = file.directory;
122 var directory = file.directory;
123− var ast = file.namespace('mdast').ast;
123+ var space = file.namespace('mdast');
124+ var ast = space.tree || space.ast;
124 var getDefinition;
125 var getDefinition;
125 var prefix = '';
126 var prefix = '';
@@ -300,7 +301,8 @@ function gatherExposedFactory() {
301 function gather(file) {
302 function gather(file) {
302 var filePath = file.filePath();
303 var filePath = file.filePath();
303− var ast = file.namespace('mdast').ast;
304+ var space = file.namespace('mdast');
305+ var ast = space.tree || space.ast;
306 * Ignore files without AST or filename.
308 * Ignore files without AST or filename.