Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function generateCssDocs(
meta: StylableMeta,
symbol: ClassSymbol | ElementSymbol | VarSymbol,
schemaEntry: StylableSymbolSchema
) {
const cssDoc = getCssDocsForSymbol(meta, symbol);
if (cssDoc) {
if (cssDoc.description) {
schemaEntry.description = cssDoc.description;
}
if (Object.keys(cssDoc.tags).length) {
schemaEntry.docTags = cssDoc.tags;
}
}
}