AST: Remove ConstructorDecl::getResultType()

This commit is contained in:
Slava Pestov
2016-11-24 01:19:11 -05:00
parent 7d83704bd9
commit 69e7cca64f
8 changed files with 21 additions and 22 deletions

View File

@@ -1160,7 +1160,7 @@ static SDKNode *constructFunctionNode(SDKContext &Ctx, FuncDecl* FD,
static SDKNode* constructInitNode(SDKContext &Ctx, ConstructorDecl *CD) {
auto Func = SDKNodeInitInfo(Ctx, CD).createSDKNode(SDKNodeKind::Constructor);
Func->addChild(constructTypeNode(Ctx, CD->getResultType()));
Func->addChild(constructTypeNode(Ctx, CD->getResultInterfaceType()));
for (auto *paramList : CD->getParameterLists()) {
for (auto param : *paramList)
Func->addChild(constructTypeNode(Ctx, param->getInterfaceType()));