forked from joernio/joern
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pysrc: use consistent type names (joernio#4329)
- Loading branch information
Showing
5 changed files
with
26 additions
and
23 deletions.
There are no files selected for viewing
12 changes: 7 additions & 5 deletions
12
joern-cli/frontends/pysrc2cpg/src/main/scala/io/joern/pysrc2cpg/Constants.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
package io.joern.pysrc2cpg | ||
|
||
object Constants { | ||
val builtinPrefix = "__builtin." | ||
|
||
val ANY = "ANY" | ||
val GLOBAL_NAMESPACE = "<global>" | ||
val builtinStrType = "builtin.str" | ||
val builtinBytesType = "builtin.bytes" | ||
val builtinIntType = "builtin.int" | ||
val builtinFloatType = "builtin.float" | ||
val builtinComplexType = "builtin.complex" | ||
val builtinStrType = s"${builtinPrefix}str" | ||
val builtinBytesType = s"${builtinPrefix}bytes" | ||
val builtinIntType = s"${builtinPrefix}int" | ||
val builtinFloatType = s"${builtinPrefix}float" | ||
val builtinComplexType = s"${builtinPrefix}complex" | ||
} |
3 changes: 2 additions & 1 deletion
3
joern-cli/frontends/pysrc2cpg/src/main/scala/io/joern/pysrc2cpg/NodeBuilder.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters