Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pipedream] Add control flow / data dependency operators to ast-grep #334

Open
HerringtonDarkholme opened this issue Apr 17, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed wontfix This will not be worked on

Comments

@HerringtonDarkholme
Copy link
Member

inspired by https://docs.joern.io/code-property-graph/, or more specifically, https://docs.joern.io/cpgql/data-flow-steps/

pattern: $A.is_some()
controls:
  pattern: print!($$$)

which should matches

if option.is_some() {
  print!("123");
}
@HerringtonDarkholme HerringtonDarkholme added enhancement New feature or request help wanted Extra attention is needed wontfix This will not be worked on labels Apr 17, 2023
@HerringtonDarkholme
Copy link
Member Author

HerringtonDarkholme commented Jun 9, 2023

State of Art:


Not related but worth looking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant