void DeclarationBuilder::visitCatch(ICatch *node) { TypeBuilder::visitCatch(node); DUChainWriteLocker lock; Declaration *parameter = openDeclaration<Declaration>(node->getIdentifier(), node); parameter->setKind(Declaration::Instance); parameter->setAbstractType(lastType()); closeDeclaration(); }
void DeclarationBuilder::visitForeachType(IForeachType *node) { TypeBuilder::visitForeachType(node); DUChainWriteLocker lock; Declaration *argument = openDeclaration<Declaration>(node->getIdentifier(), node); argument->setKind(Declaration::Instance); argument->setAbstractType(lastType()); closeDeclaration(); }