/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/compiler/src/output/map_util.ts
30 строк
599 B
Shuaib Hasan Akib
refactor(compiler): remove unused code and exports
03 авг 2026, 19:42
03 авг 2026, 19:42
337053e
Код
Авторство
О чём код?
/** * @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 * as o from './output_ast'; export type MapEntry = { key: string; quoted: boolean; value: o.Expression; }; export type MapLiteral = MapEntry[]; export function mapLiteral( obj: {[key: string]: o.Expression}, quoted: boolean = false, ): o.Expression { return o.literalMap( Object.keys(obj).map((key) => ({ key, quoted, value: obj[key], })), ); }