io.shiftleft.queryprimitives.utils.MemberAccess.scala Maven / Gradle / Ivy
package io.shiftleft.queryprimitives.utils
import io.shiftleft.codepropertygraph.generated.Operators
object MemberAccess {
/**
* For a given name, determine whether it is the
* name of a "member access" operation, e.g.,
* ".memberAccess".
* */
def isGenericMemberAccessName(name: String): Boolean = {
(name == Operators.memberAccess) ||
(name == Operators.indirectComputedMemberAccess) ||
(name == Operators.indirectMemberAccess) ||
(name == Operators.computedMemberAccess) ||
(name == Operators.indirection)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy