JSDocInfo handleInlineJsDoc( com.google.javascript.jscomp.parsing.parser.Token token) { return handleInlineJsDoc(token.location); }
JSDocInfo handleInlineJsDoc( com.google.javascript.jscomp.parsing.parser.Token token) { return handleInlineJsDoc(token.location); }
JSDocInfo handleInlineJsDoc(ParseTree node) { return handleInlineJsDoc(node.location); }
JSDocInfo handleInlineJsDoc(ParseTree node) { return handleInlineJsDoc(node.location); }
Node processNameWithInlineJSDoc(IdentifierToken identifierToken) { JSDocInfo info = handleInlineJsDoc(identifierToken); maybeWarnReservedKeyword(identifierToken); Node node = newStringNode(Token.NAME, identifierToken.value); if (info != null) { node.setJSDocInfo(info); } setSourceInfo(node, identifierToken); return node; }
/** * Names and destructuring patterns, in parameters or variable declarations are special, * because they can have inline type docs attached. * * <pre>function f(/** string */ x) {}</pre> annotates 'x' as a string. * * @see <a href="http://code.google.com/p/jsdoc-toolkit/wiki/InlineDocs"> * Using Inline Doc Comments</a> */ Node transformNodeWithInlineJsDoc(ParseTree node) { JSDocInfo info = handleInlineJsDoc(node); Node irNode = transformDispatcher.process(node); if (info != null) { irNode.setJSDocInfo(info); } setSourceInfo(irNode, node); return irNode; }
/** * Names and destructuring patterns, in parameters or variable declarations are special, * because they can have inline type docs attached. * * <pre>function f(/** string */ x) {}</pre> annotates 'x' as a string. * * @see <a href="http://code.google.com/p/jsdoc-toolkit/wiki/InlineDocs"> * Using Inline Doc Comments</a> */ Node transformNodeWithInlineJsDoc(ParseTree node) { JSDocInfo info = handleInlineJsDoc(node); Node irNode = transformDispatcher.process(node); if (info != null) { irNode.setJSDocInfo(info); } setSourceInfo(irNode, node); return irNode; }
Node processNameWithInlineJSDoc(IdentifierToken identifierToken) { JSDocInfo info = handleInlineJsDoc(identifierToken); maybeWarnReservedKeyword(identifierToken); Node node = newStringNode(Token.NAME, identifierToken.toString()); if (info != null) { node.setJSDocInfo(info); } setSourceInfo(node, identifierToken); return node; }