Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.joern.x2cpg.frontendspecific.rubysrc2cpg.Constants.scala Maven / Gradle / Ivy
package io.joern.x2cpg.frontendspecific.rubysrc2cpg
object Constants {
val builtinPrefix = "__core"
val kernelPrefix = s"$builtinPrefix.Kernel"
val Initialize = "initialize"
val Main = ""
/* Source: https://ruby-doc.org/3.2.2/Kernel.html
*
* We comment-out methods that require an explicit "receiver" (target of member access.)
*/
val kernelFunctions: Set[String] = Set(
"Array",
"Complex",
"Float",
"Hash",
"Integer",
"Rational",
"String",
"__callee__",
"__dir__",
"__method__",
"abort",
"at_exit",
"autoload",
"autoload?",
"binding",
"block_given?",
"callcc",
"caller",
"caller_locations",
"catch",
"chomp",
"chomp!",
"chop",
"chop!",
// "class",
// "clone",
"eval",
"exec",
"exit",
"exit!",
"fail",
"fork",
"format",
// "frozen?",
"gets",
"global_variables",
"gsub",
"gsub!",
"iterator?",
"lambda",
"load",
"local_variables",
"loop",
"open",
"p",
"print",
"printf",
"proc",
"putc",
"puts",
"raise",
"rand",
"readline",
"readlines",
"require",
"require_all",
"require_relative",
"select",
"set_trace_func",
"sleep",
"spawn",
"sprintf",
"srand",
"sub",
"sub!",
"syscall",
"system",
"tap",
"test",
// "then",
"throw",
"trace_var",
// "trap",
"untrace_var",
"warn"
// "yield_self",
)
}