private void addParserWarning(String messageId) { addParserWarning(messageId, stream.getLineno(), stream.getCharno()); }
private void addParserWarning(String messageId, String messageArg) { addParserWarning(messageId, messageArg, stream.getLineno(), stream.getCharno()); }
private void addParserWarning(String messageId) { addParserWarning(messageId, stream.getLineno(), stream.getCharno()); }
private void addParserWarning(String messageId, String messageArg) { addParserWarning(messageId, messageArg, stream.getLineno(), stream.getCharno()); }
if (!idGeneratorAnnotationKeywords.contains(name) && !jsdocBuilder.hasParameter(name)) { addParserWarning("msg.jsdoc.idgen.unknown", name); token = next(); } else { addParserWarning("msg.jsdoc.idgen.bad"); return token; addParserWarning("msg.jsdoc.idgen.bad"); } else { token = next(); addParserWarning("msg.jsdoc.idgen.duplicate"); addParserWarning("msg.jsdoc.idgen.duplicate"); addParserWarning("msg.jsdoc.idgen.duplicate"); addParserWarning("msg.jsdoc.idgen.duplicate");
if (!idGeneratorAnnotationKeywords.contains(name) && !jsdocBuilder.hasParameter(name)) { addParserWarning("msg.jsdoc.idgen.unknown", name); token = next(); } else { addParserWarning("msg.jsdoc.idgen.bad"); return token; addParserWarning("msg.jsdoc.idgen.bad"); } else { token = next(); case "unique": if (!jsdocBuilder.recordIdGenerator()) { addParserWarning("msg.jsdoc.idgen.duplicate"); addParserWarning("msg.jsdoc.idgen.duplicate"); addParserWarning("msg.jsdoc.idgen.duplicate"); addParserWarning("msg.jsdoc.idgen.duplicate"); addParserWarning("msg.jsdoc.idgen.duplicate");
addParserWarning("msg.jsdoc.suppress"); return token; } else { String name = stream.getString(); if (!suppressionNames.contains(name)) { addParserWarning("msg.jsdoc.suppress.unknown", name); token = next(); } else { addParserWarning("msg.jsdoc.suppress"); return token; addParserWarning("msg.jsdoc.suppress"); } else { token = next(); if (!jsdocBuilder.recordSuppressions(suppressions)) { addParserWarning("msg.jsdoc.suppress.duplicate");
addParserWarning("msg.jsdoc.suppress"); return token; } else { String name = stream.getString(); if (!suppressionNames.contains(name)) { addParserWarning("msg.jsdoc.suppress.unknown", name); token = next(); } else { addParserWarning("msg.jsdoc.suppress"); return token; addParserWarning("msg.jsdoc.suppress"); } else { token = next();
if (!modifiesAnnotationKeywords.contains(name) && !jsdocBuilder.hasParameter(name)) { addParserWarning("msg.jsdoc.modifies.unknown", name); token = next(); } else { addParserWarning("msg.jsdoc.modifies"); return token; addParserWarning("msg.jsdoc.modifies"); } else { token = next(); if (!jsdocBuilder.recordModifies(modifies)) { addParserWarning("msg.jsdoc.modifies.duplicate");
if (!modifiesAnnotationKeywords.contains(name) && !jsdocBuilder.hasParameter(name)) { addParserWarning("msg.jsdoc.modifies.unknown", name); token = next(); } else { addParserWarning("msg.jsdoc.modifies"); return token; addParserWarning("msg.jsdoc.modifies"); } else { token = next(); if (!jsdocBuilder.recordModifies(modifies)) { addParserWarning("msg.jsdoc.modifies.duplicate");
private void checkExtendedTypes(List<ExtendedTypeInfo> extendedTypes) { for (ExtendedTypeInfo typeInfo : extendedTypes) { // If interface, record the multiple extended interfaces if (jsdocBuilder.isInterfaceRecorded()) { if (!jsdocBuilder.recordExtendedInterface(typeInfo.type)) { addParserWarning("msg.jsdoc.extends.duplicate", typeInfo.lineno, typeInfo.charno); } } else { if (!jsdocBuilder.recordBaseType(typeInfo.type)) { addTypeWarning("msg.jsdoc.incompat.type", typeInfo.lineno, typeInfo.charno); } } } }
private void checkExtendedTypes(List<ExtendedTypeInfo> extendedTypes) { for (ExtendedTypeInfo typeInfo : extendedTypes) { // If interface, record the multiple extended interfaces if (jsdocBuilder.isInterfaceRecorded()) { if (!jsdocBuilder.recordExtendedInterface(typeInfo.type)) { addParserWarning("msg.jsdoc.extends.duplicate", typeInfo.lineno, typeInfo.charno); } } else { if (!jsdocBuilder.recordBaseType(typeInfo.type)) { addTypeWarning("msg.jsdoc.incompat.type", typeInfo.lineno, typeInfo.charno); } } } }
case PROTECTED: addParserWarning( "msg.bad.fileoverview.visibility.annotation", visibility.toString().toLowerCase()); addParserWarning("msg.unexpected.eof"); checkExtendedTypes(extendedTypes); return false;
case PROTECTED: addParserWarning( "msg.bad.fileoverview.visibility.annotation", Ascii.toLowerCase(visibility.toString())); addParserWarning("msg.unexpected.eof"); checkExtendedTypes(extendedTypes); return false;
Annotation annotation = annotationNames.get(annotationName); if (annotation == null || annotationName.isEmpty()) { addParserWarning("msg.bad.jsdoc.tag", annotationName); } else { case NG_INJECT: if (jsdocBuilder.isNgInjectRecorded()) { addParserWarning("msg.jsdoc.nginject.extra"); } else { jsdocBuilder.recordNgInject(true); addParserWarning("msg.jsdoc.jaggerInject.extra"); } else { jsdocBuilder.recordJaggerInject(true); addParserWarning("msg.jsdoc.jaggerModule.extra"); } else { jsdocBuilder.recordJaggerModule(true); addParserWarning("msg.jsdoc.jaggerProvide.extra"); } else { jsdocBuilder.recordJaggerProvide(true); addParserWarning("msg.jsdoc.jaggerProvidePromise.extra"); } else { jsdocBuilder.recordJaggerProvidePromise(true); addParserWarning("msg.jsdoc.authormissing"); } else {
Annotation annotation = annotations.get(annotationName); if (annotation == null || annotationName.isEmpty()) { addParserWarning("msg.bad.jsdoc.tag", annotationName); } else { case NG_INJECT: if (jsdocBuilder.isNgInjectRecorded()) { addParserWarning("msg.jsdoc.nginject.extra"); } else { jsdocBuilder.recordNgInject(true); addParserWarning("msg.jsdoc.authormissing"); } else { jsdocBuilder.addAuthor(author); addParserWarning("msg.jsdoc.consistidgen"); addParserWarning("msg.jsdoc.deprecated"); addParserWarning("msg.jsdoc.desc.extra"); return eatUntilEOLIfNotAnnotation(); } else { addParserWarning("msg.jsdoc.fileoverview.extra"); addParserWarning("msg.jsdoc.expose"); addParserWarning("msg.jsdoc.externs");