function getAST(load) {

	if (load.ast) {
		return load.ast;
	} else {
		if (load.source) {
			const opts = Object.assign({sourceFile: load.sourceFile}, parseOpts);
			return acorn.parse(load.source, opts);
		} else {
			throw new Error('Cannot get AST!');
		}
	}
}
function getAST(load) {

	if (load.ast) {
		return load.ast;
	} else {
		if (load.source) {
			const opts = Object.assign({sourceFile: load.sourceFile}, parseOpts);
			return acorn.parse(load.source, opts);
		} else {
			throw new Error('Cannot get AST!');
		}
	}
}
function getAST ( load ) { if ( load . ast ) { return load . ast ; } else { if ( load . source ) { const opts = Object . assign ( { sourceFile : load . sourceFile } , parseOpts ) ; return acorn . parse ( load . source , opts ) ; } else { throw new Error ( 'Cannot get AST!' ) ; } } }
get ast from loaded id (if applicable)
get ast from loaded id ( if applicable )