function parse(filePath) {
	let sourceCode;
	try {
		sourceCode = fs.readFileSync(filePath);
		return recast.parse(sourceCode);
	} catch (error) {
		console.error(error.message);
	}
	return undefined;
}
/**
 * @param {string} basePath the path where the component is generated
 * @return {Object|undefined} the AST of index.js file
 */
@param {string} basePath the path where the component is generated
@return {Object|undefined} the AST of index.js file
@param { string } basePath the path where the component is generated @return { Object|undefined } the AST of index . js file
function parse(filePath) {
	let sourceCode;
	try {
		sourceCode = fs.readFileSync(filePath);
		return recast.parse(sourceCode);
	} catch (error) {
		console.error(error.message);
	}
	return undefined;
}
function parse ( filePath ) { let sourceCode ; try { sourceCode = fs . readFileSync ( filePath ) ; return recast . parse ( sourceCode ) ; } catch ( error ) { console . error ( error . message ) ; } return undefined ; }
@param {string} basePath the path where the component is generated
 @return {Object|undefined} the AST of index.js file
@param { string } basePath the path where the component is generated @return { Object|undefined } the AST of index . js file