骏烈
2017-12-27 17:31:43 +08:00
parent 16d65a9820
commit 57888c9798
2 changed files with 5 additions and 7 deletions

View File

@@ -80,14 +80,12 @@ class SourceCodeProcessor(private val configuration: PMDConfiguration) {
}
private fun usesDFA(languageVersion: LanguageVersion, rootNode: Node, ruleSets: RuleSets) {
if (ruleSets.usesDFA(languageVersion.language)) {
val start = System.nanoTime()
val dataFlowFacade = languageVersion.languageVersionHandler.dataFlowFacade
dataFlowFacade.start(rootNode)
val end = System.nanoTime()
Benchmarker.mark(Benchmark.DFA, end - start, 0)
}
}
private fun usesTypeResolution(languageVersion: LanguageVersion, rootNode: Node, ruleSets: RuleSets) {
if (ruleSets.usesTypeResolution(languageVersion.language)) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 561 B

After

Width:  |  Height:  |  Size: 354 B