JSDocInfo recordJsDoc(SourceRange location, JSDocInfo info) { if (info != null && info.hasTypeInformation()) { hasJsDocTypeAnnotations = true; if (features.isTypeScript()) { errorReporter.error("Can only have JSDoc or inline type annotations, not both", sourceName, lineno(location.start), charno(location.start)); } } return info; }