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

io.shiftleft.semanticcpg.language.nodemethods.LiteralMethods.scala Maven / Gradle / Ivy

package io.shiftleft.semanticcpg.language.nodemethods

import io.shiftleft.codepropertygraph.generated.accessors.Lang.*
import io.shiftleft.codepropertygraph.generated.nodes.{Literal, NewLocation}
import io.shiftleft.semanticcpg.NodeExtension
import io.shiftleft.semanticcpg.language.{HasLocation, LocationCreator, _}

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)

  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy