|
10 | 10 | // |
11 | 11 | //===----------------------------------------------------------------------===// |
12 | 12 |
|
| 13 | +#ifndef SWIFT_BRIDGING_ASTGEN_H |
| 14 | +#define SWIFT_BRIDGING_ASTGEN_H |
| 15 | + |
13 | 16 | #include "swift/AST/ASTBridging.h" |
14 | 17 | #include "swift/Parse/ParseBridging.h" |
15 | 18 |
|
@@ -61,51 +64,6 @@ void swift_ASTGen_buildTopLevelASTNodes( |
61 | 64 |
|
62 | 65 | void swift_ASTGen_freeBridgedString(BridgedStringRef); |
63 | 66 |
|
64 | | -void *_Nonnull swift_ASTGen_resolveExternalMacro( |
65 | | - const char *_Nonnull moduleName, const char *_Nonnull typeName, |
66 | | - void *_Nonnull opaquePluginHandle); |
67 | | -void swift_ASTGen_destroyExternalMacro(void *_Nonnull macro); |
68 | | - |
69 | | -bool swift_ASTGen_checkDefaultArgumentMacroExpression( |
70 | | - void *_Nonnull diagEngine, void *_Nonnull sourceFile, |
71 | | - const void *_Nonnull macroSourceLocation); |
72 | | - |
73 | | -ptrdiff_t swift_ASTGen_checkMacroDefinition( |
74 | | - void *_Nonnull diagEngine, BridgedStringRef sourceFileBuffer, |
75 | | - BridgedStringRef macroDeclText, |
76 | | - BridgedStringRef *_Nonnull expansionSourceOutPtr, |
77 | | - ptrdiff_t *_Nullable *_Nonnull replacementsPtr, |
78 | | - ptrdiff_t *_Nonnull numReplacements, |
79 | | - ptrdiff_t *_Nullable *_Nonnull genericReplacementsPtr, |
80 | | - ptrdiff_t *_Nonnull numGenericReplacements); |
81 | | -void swift_ASTGen_freeExpansionReplacements( |
82 | | - ptrdiff_t *_Nullable replacementsPtr, ptrdiff_t numReplacements); |
83 | | - |
84 | | -ptrdiff_t swift_ASTGen_expandFreestandingMacro( |
85 | | - void *_Nonnull diagEngine, const void *_Nonnull macro, |
86 | | - const char *_Nonnull discriminator, uint8_t rawMacroRole, |
87 | | - void *_Nonnull sourceFile, const void *_Nullable sourceLocation, |
88 | | - BridgedStringRef *_Nonnull evaluatedSourceOut); |
89 | | - |
90 | | -ptrdiff_t swift_ASTGen_expandAttachedMacro( |
91 | | - void *_Nonnull diagEngine, const void *_Nonnull macro, |
92 | | - const char *_Nonnull discriminator, const char *_Nonnull qualifiedType, |
93 | | - const char *_Nonnull conformances, uint8_t rawMacroRole, |
94 | | - void *_Nonnull customAttrSourceFile, |
95 | | - const void *_Nullable customAttrSourceLocation, |
96 | | - void *_Nonnull declarationSourceFile, |
97 | | - const void *_Nullable declarationSourceLocation, |
98 | | - void *_Nullable parentDeclSourceFile, |
99 | | - const void *_Nullable parentDeclSourceLocation, |
100 | | - BridgedStringRef *_Nonnull evaluatedSourceOut); |
101 | | - |
102 | | -bool swift_ASTGen_initializePlugin(void *_Nonnull handle, |
103 | | - void *_Nullable diagEngine); |
104 | | -void swift_ASTGen_deinitializePlugin(void *_Nonnull handle); |
105 | | -bool swift_ASTGen_pluginServerLoadLibraryPlugin( |
106 | | - void *_Nonnull handle, const char *_Nonnull libraryPath, |
107 | | - const char *_Nonnull moduleName, BridgedStringRef *_Nullable errorOut); |
108 | | - |
109 | 67 | /// Build a TypeRepr for AST node for the type at the given source location in |
110 | 68 | /// the specified file. |
111 | 69 | swift::TypeRepr *_Nullable swift_ASTGen_buildTypeRepr( |
@@ -162,3 +120,5 @@ void swift_ASTGen_freeConfiguredRegions( |
162 | 120 | #ifdef __cplusplus |
163 | 121 | } |
164 | 122 | #endif |
| 123 | + |
| 124 | +#endif // SWIFT_BRIDGING_ASTGEN_H |
0 commit comments