io.shiftleft.semanticcpg.language.nodemethods.LiteralMethods.scala Maven / Gradle / Ivy
package io.shiftleft.semanticcpg.language.nodemethods
import io.shiftleft.codepropertygraph.generated.nodes.{Literal, NewLocation}
import io.shiftleft.semanticcpg.NodeExtension
import io.shiftleft.semanticcpg.language.*
class LiteralMethods(val literal: Literal) extends AnyVal with NodeExtension with HasLocation {
override def location: NewLocation = {
LocationCreator(literal, literal.code, literal.label, literal.lineNumber, literal.method)
}
}