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

io.shiftleft.js2cpg.passes.UsedIdentNodesPass.scala Maven / Gradle / Ivy

There is a newer version: 0.3.3
Show newest version
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