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

io.shiftleft.js2cpg.utils.SourceWrapper.scala Maven / Gradle / Ivy

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