mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
refactor(compiler): Move an enum to enums.ts for Template Pipeline (#52464)
This enum belongs in the main enums file. PR Close #52464
This commit is contained in:
parent
3cd86f4cfc
commit
6347e0ebf4
2 changed files with 11 additions and 8 deletions
|
|
@ -528,3 +528,13 @@ export enum DeferTriggerKind {
|
|||
Interaction,
|
||||
Viewport,
|
||||
}
|
||||
|
||||
/**
|
||||
* Repeaters implicitly define these derived variables, and child nodes may read them.
|
||||
*/
|
||||
export enum DerivedRepeaterVarIdentity {
|
||||
First,
|
||||
Last,
|
||||
Even,
|
||||
Odd,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import * as o from '../../../../output/output_ast';
|
|||
import type {ParseSourceSpan} from '../../../../parse_util';
|
||||
|
||||
import * as t from '../../../../render3/r3_ast';
|
||||
import {ExpressionKind, OpKind, SanitizerFn} from './enums';
|
||||
import {DerivedRepeaterVarIdentity, ExpressionKind, OpKind, SanitizerFn} from './enums';
|
||||
import {ConsumesVarsTrait, UsesVarOffset, UsesVarOffsetTrait} from './traits';
|
||||
import {SlotHandle} from './handle';
|
||||
import type {XrefId} from './operations';
|
||||
|
|
@ -820,13 +820,6 @@ export class ConditionalCaseExpr extends ExpressionBase {
|
|||
}
|
||||
}
|
||||
|
||||
export enum DerivedRepeaterVarIdentity {
|
||||
First,
|
||||
Last,
|
||||
Even,
|
||||
Odd,
|
||||
}
|
||||
|
||||
export class DerivedRepeaterVarExpr extends ExpressionBase {
|
||||
override readonly kind = ExpressionKind.DerivedRepeaterVar;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue