/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
adev/shared-docs/pipeline/api-gen/rendering/transforms/function-transforms.mts
65 строк
2 KB
Matthieu Riegler
docs(docs-infra): Show function args
18 май 2026, 23:22
18 май 2026, 23:22
872853f
Код
Авторство
О чём код?
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {FunctionEntry, FunctionSignatureMetadata} from '../entities.mjs'; import { FunctionEntryRenderable, FunctionSignatureMetadataRenderable, } from '../entities/renderables.mjs'; import {addRenderableCodeToc} from './code-transforms.mjs'; import { addHtmlAdditionalLinks, addHtmlDescription, addHtmlJsDocTagComments, addHtmlUsageNotes, setEntryFlags, } from './jsdoc-transforms.mjs'; import {addModuleName} from './module-name.mjs'; import {addHtmlReturnDescription, addRenderableFunctionParams} from './params-transforms.mjs'; import {addRepo} from './repo.mjs'; /** Given an unprocessed function entry, get the fully renderable function entry. */ export async function getFunctionRenderable( entry: FunctionEntry, moduleName: string, repo: string, ): Promise<FunctionEntryRenderable> { return setEntryFlags( await addRenderableCodeToc( addHtmlAdditionalLinks( addHtmlUsageNotes( setEntryFlags( addHtmlJsDocTagComments( addHtmlDescription(addRepo(addModuleName(entry, moduleName), repo)), ), ), ), ), ), ); } export function getFunctionMetadataRenderable( entry: FunctionSignatureMetadata, moduleName: string, repo: string, ): FunctionSignatureMetadataRenderable { return addHtmlAdditionalLinks( addHtmlReturnDescription( addRenderableFunctionParams( addHtmlUsageNotes( setEntryFlags( addHtmlJsDocTagComments( addHtmlDescription(addRepo(addModuleName(entry, moduleName), repo)), ), ), ), ), ), ); }