Code analyzers, refactoring tools and automated refactorings, formatters and more, are difficult, if not impossible, to write in Ruby, because there is no way to parse Ruby source with Ruby code.
用Ruby写代码分析、重构工具和自动重构、格式程序等等甚至更多的工具并非不可能,但是很困难,因为还没有用Ruby代码分析Ruby源码的先例。
This means any syntax tree can be turned back into source code, an important feature for code generators and refactoring tools.
这意味着所有语法树都能够转换回源代码,这对于代码生成器和重构工具都是非常重要的功能。
If a particular piece of source code exceeds a given threshold, it is flagged as a candidate for refactoring to improve maintainability.
如果特定片段的源代码超出了给定的范围,它会标示为重构的候选部分,以提高维护性。
应用推荐