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

[Bug] [ruby] (<<= , |= , &=) Unrecognized Operator #5067

Open
DavidBakerEffendi opened this issue Nov 6, 2024 · 0 comments
Open

[Bug] [ruby] (<<= , |= , &=) Unrecognized Operator #5067

DavidBakerEffendi opened this issue Nov 6, 2024 · 0 comments
Labels
bug Something isn't working ruby Relates to rubysrc2cpg

Comments

@DavidBakerEffendi
Copy link
Collaborator

DavidBakerEffendi commented Nov 6, 2024

Describe the bug
It appears <<= is being determined as an operator. While this may be a call in practice, this is worth investigating before determining if this should be a call or not. This is reproducible on mastodon.

 Unrecognized assignment operator: id <<= 16 (lib/mastodon/snowflake.rb)

The same goes for &= and |=.

To Reproduce
Steps to reproduce the behavior:

  1. git clone [email protected]:mastodon/mastodon.git --depth 1
  2. joern-parse mastodon
  3. See error
@DavidBakerEffendi DavidBakerEffendi added bug Something isn't working ruby Relates to rubysrc2cpg labels Nov 6, 2024
@DavidBakerEffendi DavidBakerEffendi changed the title [Bug] [ruby] <<= Unrecognized Operator [Bug] [ruby] (<<= , |= , &=) Unrecognized Operator Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ruby Relates to rubysrc2cpg
Projects
None yet
Development

No branches or pull requests

1 participant