File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,12 @@ struct DependencyRecorder {
298
298
SourceFile *getActiveDependencySourceOrNull () const {
299
299
if (dependencySources.empty ())
300
300
return nullptr ;
301
- return dependencySources.back ().getPointer ();
301
+ switch (mode) {
302
+ case Mode::StatusQuo:
303
+ return dependencySources.back ().getPointer ();
304
+ case Mode::ExperimentalPrivateDependencies:
305
+ return dependencySources.front ().getPointer ();
306
+ }
302
307
}
303
308
304
309
public:
@@ -331,14 +336,6 @@ struct DependencyRecorder {
331
336
};
332
337
333
338
private:
334
- // / Returns the first dependency source registered with the tracker, or
335
- // / \c nullptr if no dependency sources have been registered.
336
- SourceFile *getFirstDependencySourceOrNull () const {
337
- if (dependencySources.empty ())
338
- return nullptr ;
339
- return dependencySources.front ().getPointer ();
340
- }
341
-
342
339
// / Returns \c true if the scope of the current active source cascades.
343
340
// /
344
341
// / If there is no active scope, the result always cascades.
You can’t perform that action at this time.
0 commit comments