stdlib: add first argument labels and some other changes to conform to API guidelines

This commit is contained in:
Dmitri Gribenko
2016-02-12 16:59:15 -08:00
parent a558d13a3b
commit efaa39ea79
132 changed files with 1653 additions and 1592 deletions

View File

@@ -1488,7 +1488,8 @@ static void createStubBody(TypeChecker &tc, ConstructorDecl *ctor) {
Expr *className = new (tc.Context) StringLiteralExpr(fullClassName, loc,
/*Implicit=*/true);
className = new (tc.Context) ParenExpr(loc, className, loc, false);
className = TupleExpr::createImplicit(
tc.Context, {className}, {tc.Context.Id_className});
className->setImplicit();
Expr *call = new (tc.Context) CallExpr(fn, className, /*Implicit=*/true);
ctor->setBody(BraceStmt::create(tc.Context, SourceLoc(),