protected void emitBlockDescription(StringBuilder sb) { String blockDescription = getComment().getBlockDescription(); if (blockDescription != null) { sb.append(indent); sb.append(" * "); sb.append(blockDescription.replaceAll("\\n", "\n" + indent + " * ")); sb.append("\n ").append(indent).append("*\n"); } }
protected void emitBlockDescription(StringBuilder sb) { String blockDescription = getComment().getBlockDescription(); if (blockDescription != null) { sb.append(indent); sb.append(" * "); sb.append(blockDescription.replaceAll("\\n", "\n" + indent + " * ")); sb.append("\n ").append(indent).append("*\n"); } }
protected void emitBlockDescription(StringBuilder sb) { String blockDescription = getComment().getBlockDescription(); if (blockDescription != null) { sb.append(indent); sb.append(" * "); sb.append(blockDescription.replaceAll("\\n", "\n" + indent + " * ")); sb.append("\n ").append(indent).append("*\n"); } }
private void maybeEmitJsDoc(JSDocInfo docs, boolean ignoreParams) { if (docs == null) { return; } String desc = docs.getBlockDescription(); if (desc == null) { return; } emit("/**"); emitBreak(); for (String line : Splitter.on('\n').split(desc)) { emit(" *"); if (!line.isEmpty()) emit(line); emitBreak(); } if (!ignoreParams) { for (String name : docs.getParameterNames()) { if (docs.getDescriptionForParameter(name) == null) continue; emit(" * @param"); emit(name); emit(docs.getDescriptionForParameter(name)); emitBreak(); } } emit(" */"); emitBreak(); }
&& Objects.equals(jsDoc1.getBlockDescription(), jsDoc2.getBlockDescription()) && Objects.equals(jsDoc1.getFileOverview(), jsDoc2.getFileOverview()) && Objects.equals(jsDoc1.getImplementedInterfaces(), jsDoc2.getImplementedInterfaces())
classInfo.getBlockDescription(), ctorInfo.getBlockDescription()); if (!blockDescription.isEmpty()) { mergedInfo.recordBlockDescription(blockDescription);
classInfo.getBlockDescription(), ctorInfo.getBlockDescription()); if (!blockDescription.isEmpty()) { mergedInfo.recordBlockDescription(blockDescription);
&& Objects.equals(jsDoc1.getBlockDescription(), jsDoc2.getBlockDescription()) && Objects.equals(jsDoc1.getFileOverview(), jsDoc2.getFileOverview()) && Objects.equals(jsDoc1.getImplementedInterfaces(), jsDoc2.getImplementedInterfaces())