@VisibleForTesting public static JSDocInfo parseFileOverviewJsdoc(String toParse) { JsDocInfoParser parser = getParser(toParse); parser.parse(); return parser.getFileOverviewJSDocInfo(); }
jsdocParser.parseImportantComment(); } else { jsdocParser.parse();
/** * Parses a string containing a JsDoc declaration, returning the entire JSDocInfo * if the parsing succeeded or {@code null} if it failed. */ public static JSDocInfo parseJsdoc(String toParse) { JsDocInfoParser parser = getParser(toParse); parser.parse(); return parser.retrieveAndResetParsedJSDocInfo(); }
/** * Parses a string containing a JsDoc declaration, returning the entire JSDocInfo * if the parsing succeeded or {@code null} if it failed. */ public static JSDocInfo parseJsdoc(String toParse) { JsDocInfoParser parser = getParser(toParse); parser.parse(); return parser.retrieveAndResetParsedJSDocInfo(); }
jsdocParser.setFileLevelJsDocBuilder(fileLevelJsDocBuilder); jsdocParser.setFileOverviewJSDocInfo(fileOverviewInfo); jsdocParser.parse(); return jsdocParser;