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

io.shiftleft.semanticcpg.language.modulevariable.nodemethods.ModuleVariableAsNodeMethods.scala Maven / Gradle / Ivy

There is a newer version: 4.0.131
Show newest version
package io.shiftleft.semanticcpg.language.modulevariable.nodemethods

import io.shiftleft.codepropertygraph.generated.nodes.{Identifier, Local, Member}
import io.shiftleft.semanticcpg.language.*
import io.shiftleft.codepropertygraph.generated.help.Doc

class ModuleVariableAsLocalMethods(node: Local) extends AnyVal {

  /** If this local is declared on the module-defining method level */
  def isModuleVariable: Boolean = node.method.isModule.nonEmpty

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy