Skip to content

Commit

Permalink
Extracting handling of python "declarations" into DeclarationHandler (
Browse files Browse the repository at this point in the history
#2043)

* Extracting handling of python "declarations" into `DeclarationHandler`

We consider some python nodes to be "declarations" and this PR splits off processing these into a dedicated `DeclarationHandler`, rather than having them in the `StatementHandler`.

* Some cleanup

* Some more cleanup and trying to harmonize AST interfaces

* Update cpg-language-python/src/main/kotlin/de/fraunhofer/aisec/cpg/frontends/python/DeclarationHandler.kt

Co-authored-by: Maximilian Kaul <[email protected]>

* formatting

---------

Co-authored-by: Maximilian Kaul <[email protected]>
  • Loading branch information
oxisto and maximiliankaul authored Feb 13, 2025
1 parent 321177e commit 5906eb1
Show file tree
Hide file tree
Showing 5 changed files with 491 additions and 425 deletions.
Loading

0 comments on commit 5906eb1

Please sign in to comment.