lib/get_ast.js
function getAst(load, sourceMapFileName){
	if(load.ast) {
		return load.ast;
	}

	var fileName = sourceMapFileName || load.map && load.map.file;

	load.ast = esprima.parse(load.source.toString(), {
		loc: true,
		source: fileName || load.address
	});

	if(load.map) {
		sourceMapToAst(load.ast, load.map);
	}

	return load.ast;
}
function getAst(load, sourceMapFileName){
	if(load.ast) {
		return load.ast;
	}

	var fileName = sourceMapFileName || load.map && load.map.file;

	load.ast = esprima.parse(load.source.toString(), {
		loc: true,
		source: fileName || load.address
	});

	if(load.map) {
		sourceMapToAst(load.ast, load.map);
	}

	return load.ast;
}
function getAst ( load , sourceMapFileName ) { if ( load . ast ) { return load . ast ; } var fileName = sourceMapFileName || load . map && load . map . file ; load . ast = esprima . parse ( load . source . toString ( ) , { loc : true , source : fileName || load . address } ) ; if ( load . map ) { sourceMapToAst ( load . ast , load . map ) ; } return load . ast ; }
Get the ast for a load or create one if it doesn't exist.
Get the ast for a load or create one if it doesn t exist .