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

io.shiftleft.queryprimitives.steps.visitormixins.ExpressionGeneralization.scala Maven / Gradle / Ivy

There is a newer version: 0.9.322
Show newest version
package io.shiftleft.queryprimitives.steps.visitormixins

import io.shiftleft.codepropertygraph.generated.nodes
import io.shiftleft.codepropertygraph.generated.nodes.NodeVisitor

trait ExpressionGeneralization[T] extends NodeVisitor[T] {
  override def visit(node: nodes.Literal): T = {
    visit(node.asInstanceOf[nodes.Expression])
  }

  override def visit(node: nodes.Call): T = {
    visit(node.asInstanceOf[nodes.Expression])
  }

  override def visit(node: nodes.Identifier): T = {
    visit(node.asInstanceOf[nodes.Expression])
  }

  override def visit(node: nodes.Return): T = {
    visit(node.asInstanceOf[nodes.Expression])
  }

  override def visit(node: nodes.Block): T = {
    visit(node.asInstanceOf[nodes.Expression])
  }

  override def visit(node: nodes.MethodRef): T = {
    visit(node.asInstanceOf[nodes.Expression])
  }

  override def visit(node: nodes.Unknown): T = {
    visit(node.asInstanceOf[nodes.Expression])
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy