Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

barebone sample cpg creation#47

Merged
prabhu merged 1 commit intomainfrom
michael/barebone-sample-cpg
Jul 1, 2023
Merged

barebone sample cpg creation#47
prabhu merged 1 commit intomainfrom
michael/barebone-sample-cpg

Conversation

@mpollmeier
Copy link
Collaborator

to test:

poetry run cpgfe

joern> importCpg("/path/to/cpggen/contrib/python-cpgfrontend/cpgfrontend/cpg.bin.zip")
joern> cpg.method.l
val res1: List[io.shiftleft.codepropertygraph.generated.nodes.Method] = List(
  Method(
    id = 1L,
    astParentFullName = "<empty>",
    astParentType = "<empty>",
    code = "<empty>",
    columnNumber = None,
    columnNumberEnd = None,
    filename = "<empty>",
    fullName = "main",
    hash = None,
    isExternal = false,
    lineNumber = None,
    lineNumberEnd = None,
    name = "<empty>",
    order = -1,
    signature = ""
  )
)

to test:
```
poetry run cpgfe

joern> importCpg("/path/to/cpggen/contrib/python-cpgfrontend/cpgfrontend/cpg.bin.zip")
joern> cpg.method.l
val res1: List[io.shiftleft.codepropertygraph.generated.nodes.Method] = List(
  Method(
    id = 1L,
    astParentFullName = "<empty>",
    astParentType = "<empty>",
    code = "<empty>",
    columnNumber = None,
    columnNumberEnd = None,
    filename = "<empty>",
    fullName = "main",
    hash = None,
    isExternal = false,
    lineNumber = None,
    lineNumberEnd = None,
    name = "<empty>",
    order = -1,
    signature = ""
  )
)
```
@mpollmeier mpollmeier requested a review from prabhu July 1, 2023 13:46
Copy link
Contributor

@prabhu prabhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow!

@prabhu prabhu merged commit 94ad5fd into main Jul 1, 2023
@prabhu prabhu deleted the michael/barebone-sample-cpg branch July 1, 2023 17:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants