Skip to content

Commit

Permalink
refactor(compiler): Move an enum to enums.ts for Template Pipeline
Browse files Browse the repository at this point in the history
This enum belongs in the main enums file.
  • Loading branch information
dylhunn committed Oct 31, 2023
1 parent 9c7e718 commit 31aaf46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 10 additions & 0 deletions packages/compiler/src/template/pipeline/ir/src/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
7 changes: 0 additions & 7 deletions packages/compiler/src/template/pipeline/ir/src/expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 31aaf46

Please sign in to comment.