/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
devtools/projects/ng-devtools/src/lib/shared/utils/control-flow.ts
24 строки
627 B
hawkgs
refactor(devtools): utilize new unified getControlFlowBlocks API (#66167)
17 мар 2026, 00:17
17 мар 2026, 00:17
f3e6698
Код
Авторство
О чём код?
/** * @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 { ControlFlowBlock, ControlFlowBlockType, DeferBlock, ForLoopBlock, } from '../../../../../protocol'; export const BlockType = { isDeferBlock(node: ControlFlowBlock | null): node is DeferBlock { return !!node && node.type === ControlFlowBlockType.Defer; }, isForLoopBlock(node: ControlFlowBlock | null): node is ForLoopBlock { return !!node && node.type === ControlFlowBlockType.For; }, };