io.shiftleft.js2cpg.passes.UsedIdentNodesPass.scala Maven / Gradle / Ivy
package io.shiftleft.js2cpg.passes
import com.oracle.js.parser.ir.IdentNode
import io.shiftleft.js2cpg.parser.DefaultAstVisitor
import scala.collection.mutable
class UsedIdentNodesPass(val usedIdentNodes: mutable.Set[String] = mutable.HashSet.empty) extends DefaultAstVisitor {
override def enterIdentNode(identNode: IdentNode): Boolean = {
usedIdentNodes.add(identNode.getName)
false
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy