You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 3, 2018. It is now read-only.
There's only one method for which the ProjectAnalyzer actually gets used - SourceManager.GetManifestAndLock(). There's really no reason that it has to be injected into the source manager as an argument to NewSourceManager(); it could just be passed as a parameter to that one method.
In addition to cleaning up some internal interfaces, the big advantage here is that a *sourceMgr instance is no longer bound to operate with a single ProjectAnalyzer. There's no current use case where this really matters right now, but this was a nasty coupling between solvers (whose correct operation is predicated on only ever having the one analyzer) and the source managers.
We can also eliminate SourceManager.AnalyzerInfo() as part of this.
The text was updated successfully, but these errors were encountered:
This was really always the intended model - there's no reason a
SourceManager needs to be permanently coupled with just one analyzer.
It's perfectly sufficient to provide one as an argument to the relevant
methods.
Fixes#195.
This was really always the intended model - there's no reason a
SourceManager needs to be permanently coupled with just one analyzer.
It's perfectly sufficient to provide one as an argument to the relevant
methods.
Fixessdboyer/gps#195.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There's only one method for which the
ProjectAnalyzer
actually gets used -SourceManager.GetManifestAndLock()
. There's really no reason that it has to be injected into the source manager as an argument toNewSourceManager()
; it could just be passed as a parameter to that one method.In addition to cleaning up some internal interfaces, the big advantage here is that a
*sourceMgr
instance is no longer bound to operate with a singleProjectAnalyzer
. There's no current use case where this really matters right now, but this was a nasty coupling between solvers (whose correct operation is predicated on only ever having the one analyzer) and the source managers.We can also eliminate
SourceManager.AnalyzerInfo()
as part of this.The text was updated successfully, but these errors were encountered: