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 @@ -160,26 +160,4 @@ class BridgedResolvedLocVector {
160
160
void *getOpaqueValue () const ;
161
161
};
162
162
163
- #ifdef __cplusplus
164
- extern " C" {
165
- #endif
166
-
167
- // / Low-level entry point to run the NameMatcher written in swift-syntax.
168
- // /
169
- // / - Warning: The only caller of this should be `swift::ide::runNameMatcher`.
170
- // /
171
- // / - Parameters:
172
- // / - sourceFilePtr: A pointer to an `ExportedSourceFile`, used to access the
173
- // / syntax tree
174
- // / - locations: Pointer to a buffer of `BridgedSourceLoc` that should be
175
- // / resolved by the name matcher.
176
- // / - locationsCount: Number of elements in `locations`.
177
- // / - Returns: The opaque value of a `BridgedResolvedLocVector`.
178
- void *swift_SwiftIDEUtilsBridging_runNameMatcher (const void *sourceFilePtr,
179
- BridgedSourceLoc *locations,
180
- size_t locationsCount);
181
- #ifdef __cplusplus
182
- }
183
- #endif
184
-
185
163
#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