Skip to content

Commit 0ca5581

Browse files
committed
[astgen] Add '.rawValue' to map operation.
1 parent 47b29b6 commit 0ca5581

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

include/swift/AST/CASTBridging.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ void TopLevelCodeDecl_dump(void *);
229229
void Expr_dump(void *);
230230
void Decl_dump(void *);
231231
void Stmt_dump(void *);
232+
void Type_dump(void *);
232233

233234
#ifdef __cplusplus
234235
}

lib/AST/CASTBridging.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,3 +495,4 @@ void TopLevelCodeDecl_dump(void *decl) {
495495
void Expr_dump(void *expr) { ((Expr *)expr)->dump(llvm::errs()); }
496496
void Decl_dump(void *expr) { ((Decl *)expr)->dump(llvm::errs()); }
497497
void Stmt_dump(void *expr) { ((Stmt *)expr)->dump(llvm::errs()); }
498+
void Type_dump(void *expr) { ((TypeRepr *)expr)->dump(); }

lib/ASTGen/Sources/ASTGen/Decls.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ extension ASTGenVisitor {
137137
returnType = nil
138138
}
139139

140-
let params = node.signature.input.parameterList.map { visit($0) }
140+
let params = node.signature.input.parameterList.map { visit($0).rawValue }
141141
return .decl(
142142
params.withBridgedArrayRef { ref in
143143
FuncDecl_create(

0 commit comments

Comments
 (0)