66#include " swift/AST/Expr.h"
77#include " swift/AST/GenericParamList.h"
88#include " swift/AST/Identifier.h"
9- #include " swift/AST/Pattern.h"
109#include " swift/AST/ParameterList.h"
10+ #include " swift/AST/Pattern.h"
1111#include " swift/AST/Stmt.h"
1212#include " swift/AST/TypeRepr.h"
1313
@@ -140,8 +140,8 @@ void *SwiftBooleanLiteralExpr_create(void *ctx, bool value, void *TokenLoc) {
140140}
141141
142142void *SwiftVarDecl_create (void *ctx, BridgedIdentifier _Nullable nameId,
143- void *initExpr,
144- void *loc, bool isStatic, bool isLet, void * dc) {
143+ void *initExpr, void *loc, bool isStatic, bool isLet,
144+ void *dc) {
145145 ASTContext &Context = *static_cast <ASTContext *>(ctx);
146146 auto name = (UnresolvedDeclRefExpr *)nameId;
147147 auto sourceLoc = getSourceLocFromPointer (loc);
@@ -150,7 +150,8 @@ void *SwiftVarDecl_create(void *ctx, BridgedIdentifier _Nullable nameId,
150150 sourceLoc, name->getName ().getBaseIdentifier (),
151151 reinterpret_cast <DeclContext *>(dc));
152152 auto pattern = NamedPattern::createImplicit (Context, varDecl);
153- return PatternBindingDecl::create (Context, sourceLoc,
153+ return PatternBindingDecl::create (
154+ Context, sourceLoc,
154155 isStatic ? StaticSpellingKind::KeywordStatic : StaticSpellingKind::None,
155156 sourceLoc, pattern, sourceLoc, (Expr *)initExpr,
156157 reinterpret_cast <DeclContext *>(dc));
@@ -196,8 +197,7 @@ void *ParamDecl_create(void *ctx, void *loc, void *_Nullable argLoc,
196197 BridgedIdentifier _Nullable argName,
197198 void *_Nullable paramLoc,
198199 BridgedIdentifier _Nullable paramName,
199- void *_Nullable type,
200- void *declContext) {
200+ void *_Nullable type, void *declContext) {
201201 ASTContext &Context = *static_cast <ASTContext *>(ctx);
202202 if (!paramName)
203203 paramName = argName;
0 commit comments