mirror of
https://github.com/alibaba/p3c.git
synced 2025-10-14 15:10:54 +00:00
This commit is contained in:
@@ -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 |
Reference in New Issue
Block a user