MCPcopy Index your code
hub / github.com/angular/angular / i18nMetaToJSDoc

Function i18nMetaToJSDoc

packages/compiler/src/render3/view/i18n/meta.ts:340–352  ·  view source on GitHub ↗
(meta: I18nMeta)

Source from the content-addressed store, hash-verified

338// Converts i18n meta information for a message (id, description, meaning)
339// to a JsDoc statement formatted as expected by the Closure compiler.
340export function i18nMetaToJSDoc(meta: I18nMeta): o.JSDocComment {
341 const tags: o.JSDocTag[] = [];
342 if (meta.description) {
343 tags.push({tagName: o.JSDocTagName.Desc, text: meta.description});
344 } else {
345 // Suppress the JSCompiler warning that a `@desc` was not given for this message.
346 tags.push({tagName: o.JSDocTagName.Suppress, text: '{msgDescriptions}'});
347 }
348 if (meta.meaning) {
349 tags.push({tagName: o.JSDocTagName.Meaning, text: meta.meaning});
350 }
351 return o.jsDocComment(tags);
352}
353
354/**
355 * Check if the propertyName is a potential event handler.

Callers 2

i18n_spec.tsFile · 0.90

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…