File tree Expand file tree Collapse file tree 2 files changed +15
-22
lines changed Expand file tree Collapse file tree 2 files changed +15
-22
lines changed Original file line number Diff line number Diff line change @@ -159,26 +159,4 @@ class BridgedResolvedLocVector {
159
159
void *getOpaqueValue () const ;
160
160
};
161
161
162
- #ifdef __cplusplus
163
- extern " C" {
164
- #endif
165
-
166
- // / Low-level entry point to run the NameMatcher written in swift-syntax.
167
- // /
168
- // / - Warning: The only caller of this should be `swift::ide::runNameMatcher`.
169
- // /
170
- // / - Parameters:
171
- // / - sourceFilePtr: A pointer to an `ExportedSourceFile`, used to access the
172
- // / syntax tree
173
- // / - locations: Pointer to a buffer of `BridgedSourceLoc` that should be
174
- // / resolved by the name matcher.
175
- // / - locationsCount: Number of elements in `locations`.
176
- // / - Returns: The opaque value of a `BridgedResolvedLocVector`.
177
- void *swift_SwiftIDEUtilsBridging_runNameMatcher (const void *sourceFilePtr,
178
- BridgedSourceLoc *locations,
179
- size_t locationsCount);
180
- #ifdef __cplusplus
181
- }
182
- #endif
183
-
184
162
#endif
Original file line number Diff line number Diff line change @@ -1096,6 +1096,21 @@ void swift::ide::getReceiverType(Expr *Base,
1096
1096
}
1097
1097
1098
1098
#if SWIFT_BUILD_SWIFT_SYNTAX
1099
+ extern " C" {
1100
+ // / Low-level entry point to run the NameMatcher written in swift-syntax.
1101
+ // /
1102
+ // / - Parameters:
1103
+ // / - sourceFilePtr: A pointer to an `ExportedSourceFile`, used to access the
1104
+ // / syntax tree
1105
+ // / - locations: Pointer to a buffer of `BridgedSourceLoc` that should be
1106
+ // / resolved by the name matcher.
1107
+ // / - locationsCount: Number of elements in `locations`.
1108
+ // / - Returns: The opaque value of a `BridgedResolvedLocVector`.
1109
+ void *swift_SwiftIDEUtilsBridging_runNameMatcher (const void *sourceFilePtr,
1110
+ BridgedSourceLoc *locations,
1111
+ size_t locationsCount);
1112
+ }
1113
+
1099
1114
std::vector<ResolvedLoc>
1100
1115
swift::ide::runNameMatcher (const SourceFile &sourceFile,
1101
1116
ArrayRef<SourceLoc> locations) {
You can’t perform that action at this time.
0 commit comments