dimpact 0.5.3

impact analysis from diff
Documentation
language: python
queries:
  declarations: |
    ; def foo(...)
    (function_definition name: (identifier) @name) @decl
    ; class A:
    (class_definition name: (identifier) @name) @decl
  calls: |
    ; bare call: foo()
    (call function: (identifier) @name) @call
    ; receiver call: obj.m(), self.m()
    (call function: (attribute object: (_) @qual attribute: (identifier) @name)) @call
  imports: |
    ; import x
    (import_statement) @use
    ; from x import y
    (import_from_statement) @use
  control: |
    (if_statement) @ctrl
    (for_statement) @ctrl
    (while_statement) @ctrl