Python/JS: Make most of the new library private#6200
Conversation
|
Much more can be made private. |
Do you mean in other files or in the new file? I felt I could not hide previously exposed stuff in the javascript codebase, and I want the python files to be identical. |
|
Ah, I guess I could make most classes private also.. |
|
Oh, and I missed all the typed predicates 🤦 |
This mirrors `SuperlinearBacktracking.qll` An alternative is to keep it private and import it again in the query files.
The library is less new for JavaScript (~4-6 months?). Is this privatization a breaking change for JavaScript? Or did we already cross that bridge when the shared RegExp libraries for Python/JavaScript were introduced? |
I believe this code was recently hidden in a |
That is correct, it was inside |
A new library was recently introduced. As much as possible of that should be made private.