骏烈 7 years ago
parent 16d65a9820
commit 57888c9798

@ -80,13 +80,11 @@ 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)
}
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) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 561 B

After

Width:  |  Height:  |  Size: 354 B

Loading…
Cancel
Save