Closed millermedeiros closed 10 years ago
the main problem is that some utilities only makes sense on esformatter context since they keep an internal config state (things like aroundIfNeeded
, beforeIfNeeded
, ...) not sure how useful would be to extract just the other methods. our internal structure probably wouldn't change that much.... setting it as a low priority for now.
I wouldn't bother until there's a clear use case, that is, someone requesting a split.
started to split the helpers into separate packages, see: https://github.com/millermedeiros/rocambole-token - since some methods are also required by esindent
also created https://github.com/millermedeiros/rocambole-node
since they might be useful for plugins and other tools that manipulate the AST.