io.shiftleft.js2cpg.utils.SourceWrapper.scala Maven / Gradle / Ivy
package io.shiftleft.js2cpg.utils
import better.files.File
import java.nio.file.{Path, Paths}
import io.shiftleft.js2cpg.parser.JsSource
object SourceWrapper {
implicit class SourceWrapper(val source: com.oracle.js.parser.Source) extends AnyVal {
def toJsSource(srcDir: File = File(""), projectDir: Path = Paths.get("")) =
new JsSource(srcDir, projectDir, source)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy