From c7daef72e2ee2911aa26c2adb561c1da45cf19ed Mon Sep 17 00:00:00 2001 From: Tan Li Hau Date: Thu, 5 Mar 2020 08:57:19 +0800 Subject: [PATCH] mark todo cleanup with the same identifier --- src/compiler/compile/render_dom/Renderer.ts | 1 + src/compiler/compile/render_dom/wrappers/IfBlock.ts | 3 ++- .../compile/render_dom/wrappers/shared/get_slot_definition.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compiler/compile/render_dom/Renderer.ts b/src/compiler/compile/render_dom/Renderer.ts index fbb0c76d7d5d..25012792143e 100644 --- a/src/compiler/compile/render_dom/Renderer.ts +++ b/src/compiler/compile/render_dom/Renderer.ts @@ -230,6 +230,7 @@ export default class Renderer { return bitmask; }; + // TODO: context-overflow make it less gross return { // Using a ParenthesizedExpression allows us to create // the expression lazily. TODO would be better if diff --git a/src/compiler/compile/render_dom/wrappers/IfBlock.ts b/src/compiler/compile/render_dom/wrappers/IfBlock.ts index 4d7ade79f7b4..943d76a9d4d6 100644 --- a/src/compiler/compile/render_dom/wrappers/IfBlock.ts +++ b/src/compiler/compile/render_dom/wrappers/IfBlock.ts @@ -592,7 +592,8 @@ export default class IfBlockWrapper extends Wrapper { const _this = this; const array = x`[-1]`; const val = x`-1`; - + + // TODO: context-overflow make it less gross return { ...array, ...val, diff --git a/src/compiler/compile/render_dom/wrappers/shared/get_slot_definition.ts b/src/compiler/compile/render_dom/wrappers/shared/get_slot_definition.ts index 9ab48dd035e8..0f28689df312 100644 --- a/src/compiler/compile/render_dom/wrappers/shared/get_slot_definition.ts +++ b/src/compiler/compile/render_dom/wrappers/shared/get_slot_definition.ts @@ -63,7 +63,7 @@ export function get_slot_definition(block: Block, scope: TemplateScope, lets: Le const { context_lookup } = block.renderer; // i am well aware that this code is gross - // TODO make it less gross + // TODO: context-overflow make it less gross const changes = { type: 'ParenthesizedExpression', get expression() {