Skip to content
Snippets Groups Projects
Commit a5907e9b authored by Emma Söderberg's avatar Emma Söderberg
Browse files

Removes incremental construction state entry and exit from AST edit operations.

The incremental construction state should not be entered for these edit operations
as such edits should trigger change propagation. The construction state should only
be entered when constructing the initial AST from constructors or when modifying the
AST during CTNA evaluation or similar.
parent 2925eaf0
No related branches found
No related tags found
No related merge requests found
......@@ -33,9 +33,7 @@ $if(!#isNTA)
* @apilevel high-level
*/
public void $Host.set$Name($Type node) {
$include(State.incHookConstructionStart)
setChild(node, $Index);
$include(State.incHookConstructionEnd)
}
$endif
......
......@@ -69,9 +69,7 @@ $if(!#isNTA)
* @apilevel high-level
*/
$Modifier void $Host.set$(Name)List($ListType list) {
$include(State.incHookConstructionStart)
setChild(list, $Index);
$include(State.incHookConstructionEnd)
}
$endif
......
......@@ -60,9 +60,7 @@ $if(!#isNTA)
* @apilevel low-level
*/
$Modifier void $Host.set$(Name)Opt($OptType opt) {
$include(State.incHookConstructionStart)
setChild(opt, $Index);
$include(State.incHookConstructionEnd)
}
$endif
......@@ -84,7 +82,6 @@ $endif
* @apilevel high-level
*/
$Modifier void $Host.set$Name($Type node) {
$include(State.incHookConstructionStart)
$if(EmptyContainerSingletons)
$if(#isNTA)
// TODO: should also check if getOpt() is the empty singleton, since we check the _value on return.
......@@ -99,7 +96,6 @@ $if(EmptyContainerSingletons)
$else
get$(Name)Opt().setChild(node, 0);
$endif
$include(State.incHookConstructionEnd)
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment