@@ -37,11 +37,11 @@ void swift_ASTGen_renderQueuedDiagnostics(
37
37
38
38
// FIXME: Hack because we cannot easily get to the already-parsed source
39
39
// file from here. Fix this egregious oversight!
40
- void *_Nullable swift_ASTGen_parseSourceFile (const char *_Nonnull buffer,
41
- size_t bufferLength ,
42
- const char *_Nonnull moduleName ,
43
- const char *_Nonnull filename ,
44
- void *_Nullable ctx );
40
+ void *_Nullable swift_ASTGen_parseSourceFile (BridgedStringRef buffer,
41
+ BridgedStringRef moduleName ,
42
+ BridgedStringRef filename ,
43
+ void *_Nullable declContextPtr ,
44
+ BridgedGeneratedSourceFileKind );
45
45
void swift_ASTGen_destroySourceFile (void *_Nonnull sourceFile);
46
46
47
47
// / Check whether the given source file round-trips correctly. Returns 0 if
@@ -60,7 +60,7 @@ void swift_ASTGen_buildTopLevelASTNodes(
60
60
BridgedDiagnosticEngine diagEngine, void *_Nonnull sourceFile,
61
61
BridgedDeclContext declContext, BridgedASTContext astContext,
62
62
BridgedLegacyParser legacyParser, void *_Nonnull outputContext,
63
- void (*_Nonnull)(void *_Nonnull , void *_Nonnull));
63
+ void (*_Nonnull)(BridgedASTNode , void *_Nonnull));
64
64
65
65
void swift_ASTGen_freeBridgedString (BridgedStringRef);
66
66
0 commit comments