From 746e77a65ee4c1a099daaa4c48290c657e738aba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Emma=20S=C3=B6derberg?= <emma.m.soderberg@gmail.com>
Date: Mon, 25 Jun 2018 22:41:18 +0200
Subject: [PATCH] Removes enter/exit incremental construction state for AST
 edit operation.

The construction state should only be entered in the constructor, other
AST modification methods should trigger notification.
---
 src/template/ast/components/ListComponent.tt | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/template/ast/components/ListComponent.tt b/src/template/ast/components/ListComponent.tt
index bc9fa2ff..83434a0c 100644
--- a/src/template/ast/components/ListComponent.tt
+++ b/src/template/ast/components/ListComponent.tt
@@ -166,7 +166,6 @@ $endif
    */
   $Modifier void $Host.set$Name($Type node, int i) {
     $ListType list = get$(Name)List();
-    $include(State.incHookConstructionStart)
 $if(EmptyContainerSingletons)
     if (list == $List.EMPTY) {
       setChild(new $List(node), $Index);
@@ -176,7 +175,6 @@ $if(EmptyContainerSingletons)
 $else
     list.setChild(node, i);
 $endif
-    $include(State.incHookConstructionEnd)
   }
 
 $if(#isNTA)
-- 
GitLab