/** * 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(); }
private JSDocInfo handleJsDoc(Comment comment) { if (comment != null) { JsDocInfoParser jsDocParser = createJsDocInfoParser(comment); parsedComments.add(comment); if (!handlePossibleFileOverviewJsDoc(jsDocParser)) { return recordJsDoc(comment.location, jsDocParser.retrieveAndResetParsedJSDocInfo()); } } return null; }
private JSDocInfo handleJsDoc(Comment comment) { if (comment != null) { JsDocInfoParser jsDocParser = createJsDocInfoParser(comment); parsedComments.add(comment); if (!handlePossibleFileOverviewJsDoc(jsDocParser)) { return recordJsDoc(comment.location, jsDocParser.retrieveAndResetParsedJSDocInfo()); } } return null; }
/** * Parse a description as a {@code @type}. */ public JSDocInfo parseInlineTypeDoc() { skipEOLs(); JsDocToken token = next(); int lineno = stream.getLineno(); int startCharno = stream.getCharno(); Node typeAst = parseParamTypeExpression(token); recordTypeNode(lineno, startCharno, typeAst, token == JsDocToken.LEFT_CURLY); JSTypeExpression expr = createJSTypeExpression(typeAst); if (expr != null) { jsdocBuilder.recordType(expr); jsdocBuilder.recordInlineType(); return retrieveAndResetParsedJSDocInfo(); } return null; }
/** * Parse a description as a {@code @type}. */ public JSDocInfo parseInlineTypeDoc() { skipEOLs(); JsDocToken token = next(); int lineno = stream.getLineno(); int startCharno = stream.getCharno(); Node typeAst = parseParamTypeExpression(token); recordTypeNode(lineno, startCharno, typeAst, token == JsDocToken.LEFT_CURLY); JSTypeExpression expr = createJSTypeExpression(typeAst); if (expr != null) { jsdocBuilder.recordType(expr); jsdocBuilder.recordInlineType(); return retrieveAndResetParsedJSDocInfo(); } return null; }
fileOverviewJSDocInfo = retrieveAndResetParsedJSDocInfo(); Visibility visibility = fileOverviewJSDocInfo.getVisibility(); switch (visibility) {
fileOverviewJSDocInfo = retrieveAndResetParsedJSDocInfo(); Visibility visibility = fileOverviewJSDocInfo.getVisibility(); switch (visibility) {