All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.joern.rubysrc2cpg.utils.FreshNameGenerator.scala Maven / Gradle / Ivy

package io.joern.rubysrc2cpg.utils

class FreshNameGenerator[T](template: Int => T) {
  private var counter: Int = 0
  def fresh: T = {
    val name = template(counter)
    counter += 1
    name
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy