diff options
Diffstat (limited to 'src/declare.cc')
-rw-r--r-- | src/declare.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/declare.cc b/src/declare.cc index 5102746c..5d153a9b 100644 --- a/src/declare.cc +++ b/src/declare.cc @@ -693,6 +693,16 @@ void Compiler::makeDefaultIterators() objMethod->iterDef = triter; } + { + UniqueType *anyRefUT = findUniqueType( TYPE_REF, anyLangEl ); + ObjectMethod *objMethod = initFunction( uniqueTypeAny, rootNamespace, globalObjectDef, + ObjectMethod::Call, "with_ignore", IN_HALT, IN_HALT, anyRefUT, true ); + + IterDef *triter = findIterDef( IterDef::WithIgnore ); + objMethod->iterDef = triter; + } + + /* Child iterator. */ { UniqueType *anyRefUT = findUniqueType( TYPE_REF, anyLangEl ); |