summaryrefslogtreecommitdiff
path: root/colm/pdabuild.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2012-05-16 20:26:09 -0400
committerAdrian Thurston <thurston@complang.org>2012-05-16 20:26:09 -0400
commit6c0c29b1718a1d8d17f460093d73d7f95059268d (patch)
tree64f54323d637460780d79c297bab210d1a960156 /colm/pdabuild.cc
parentd8e71f126d6484ab30b17e265b1da583f7e97778 (diff)
downloadcolm-6c0c29b1718a1d8d17f460093d73d7f95059268d.tar.gz
ARTIFICIAL and NAMED flags now used only in parse trees.
Diffstat (limited to 'colm/pdabuild.cc')
-rw-r--r--colm/pdabuild.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/colm/pdabuild.cc b/colm/pdabuild.cc
index eafc514b..b44a9b27 100644
--- a/colm/pdabuild.cc
+++ b/colm/pdabuild.cc
@@ -1577,9 +1577,6 @@ void countNodes( Program *prg, int &count, ParseTree *parseTree, Kid *kid )
//count += prg->rtd->lelInfo[kid->tree->id].numCaptureAttr;
- assert( ( parseTree->flags & AF_NAMED ) == ( kid->tree->flags & AF_NAMED ) );
- assert( ( parseTree->flags & AF_ARTIFICIAL ) == ( kid->tree->flags & AF_ARTIFICIAL ) );
-
if ( !( parseTree->flags & AF_NAMED ) &&
!( parseTree->flags & AF_ARTIFICIAL ) &&
treeChild( prg, kid->tree ) != 0 )
@@ -1596,9 +1593,6 @@ void fillNodes( Program *prg, int &nextAvail, Bindings *bindings, long &bindId,
if ( kid != 0 ) {
PatReplNode &node = nodes[ind];
- assert( ( parseTree->flags & AF_NAMED ) == ( kid->tree->flags & AF_NAMED ) );
- assert( ( parseTree->flags & AF_ARTIFICIAL ) == ( kid->tree->flags & AF_ARTIFICIAL ) );
-
Kid *child =
!( parseTree->flags & AF_NAMED ) &&
!( parseTree->flags & AF_ARTIFICIAL ) &&