@Override protected ConformanceResult checkConformance(NodeTraversal t, Node n) { JSDocInfo info = n.getJSDocInfo(); if (info != null && info.isExpose()) { return ConformanceResult.VIOLATION; } return ConformanceResult.CONFORMANCE; } }
/** * Checks that deprecated annotations such as @expose are not present */ private void validateDeprecatedJsDoc(Node n, JSDocInfo info) { if (info != null && info.isExpose()) { report(n, ANNOTATION_DEPRECATED, "@expose", "Use @nocollapse or @export instead."); } }
private static boolean isMarkedExpose(Node n) { JSDocInfo info = n.getJSDocInfo(); return info != null && info.isExpose(); } }
@Override protected ConformanceResult checkConformance(NodeTraversal t, Node n) { JSDocInfo info = n.getJSDocInfo(); if (info != null && info.isExpose()) { return ConformanceResult.VIOLATION; } return ConformanceResult.CONFORMANCE; } }
/** * Checks that deprecated annotations such as @expose are not present */ private void validateDeprecatedJsDoc(Node n, JSDocInfo info) { if (info != null && info.isExpose()) { report(n, ANNOTATION_DEPRECATED, "@expose", "Use @nocollapse or @export instead."); } }
private static boolean isMarkedExpose(Node n) { JSDocInfo info = n.getJSDocInfo(); return info != null && info.isExpose(); } }
/** * Records that the {@link JSDocInfo} being built should have its * {@link JSDocInfo#isExpose()} flag set to {@code true}. */ public boolean recordExpose() { if (!currentInfo.isExpose()) { currentInfo.setExpose(true); populated = true; return true; } else { return false; } }
/** * Records that the {@link JSDocInfo} being built should have its * {@link JSDocInfo#isExpose()} flag set to {@code true}. */ public boolean recordExpose() { if (!currentInfo.isExpose()) { currentInfo.setExpose(true); populated = true; return true; } else { return false; } }