final ImmutableSet<String> annotationNames() { return annotations().keySet(); }
JsDocInfoParser(JsDocTokenStream stream, String comment, int commentPosition, Node templateNode, Config config, ErrorReporter errorReporter) { this.stream = stream; boolean parseDocumentation = config.jsDocParsingMode().shouldParseDescriptions(); this.jsdocBuilder = new JSDocInfoBuilder(parseDocumentation); if (comment != null) { this.jsdocBuilder.recordOriginalCommentString(comment); this.jsdocBuilder.recordOriginalCommentPosition(commentPosition); } this.annotations = config.annotations(); this.suppressionNames = config.suppressionNames(); this.preserveWhitespace = config.jsDocParsingMode().shouldPreserveWhitespace(); this.errorReporter = errorReporter; this.templateNode = templateNode == null ? IR.script() : templateNode; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof Config) { Config that = (Config) o; return (this.languageMode.equals(that.languageMode())) && (this.strictMode.equals(that.strictMode())) && (this.jsDocParsingMode.equals(that.jsDocParsingMode())) && (this.runMode.equals(that.runMode())) && (this.annotations.equals(that.annotations())) && (this.suppressionNames.equals(that.suppressionNames())) && (this.parseInlineSourceMaps == that.parseInlineSourceMaps()); } return false; }