Andrei Dreyer
Andrei Dreyer
When a default constructor / static constructor is not explicitly defined it does not get generated. Similar to Java, these constructors should be generated if not explicitly defined and the...
1) ``` WARN: Could not represent expression /x#{x}b/ (Unknown) ``` ```ruby x="abc" y=/x#{x}b/ puts y ``` 2) ``` WARN: Could not represent expression /x#{x}b#{x+'z'}b{x+'y'+'z'}w/ ``` ```ruby x="abc" y = /x#{x}b#{x+'z'}b{x+'y'+'z'}w/...
``` WARN Could not represent expression: x (StatementList) ``` ```ruby x = "foo" y = :"bar #{x}" puts y ```
``` Could not represent expression: -> (arg){ puts arg } ``` ```ruby x=10 -> (arg){ puts arg }.call(x) ```
Warning: ``` Could not represent expression: begin num i + 3 end until i < num ``` ```ruby i = 0 num = 5 begin num = i + 3...
Following samples fail to parse and throw syntax errors 1) ```ruby x = 12 def woo(x) return x == 10 end if !woo x puts x else puts "No" end...
Assuming the issue lies in the `array = [1, 2, *splat_args]` below ```ruby def foo(*splat_args) array = [1, 2, *splat_args] puts array end x = 3 foo(x) ```
Add handling for `PatternExpressions` in `switch` statements: https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/pattern-matching#compare-discrete-values
This PR handles: * Move parser tests from the `deprecated` frontend to the new `ruby` frontend.
**Describe the bug** After generating a cpg for the following repo [Pygoat](https://github.com/adeyosemanputra/pygoat) and generating a DDG for the method `a9_lab`, on GraphViz it shows a node that is not rooted...