pocke / rbs_rails

Apache License 2.0
285 stars 33 forks source link

Support Mixin with TracePoint #219

Closed ksss closed 2 years ago

ksss commented 2 years ago

Retry for #197

Fixed to support Mixin with TracePoint.

Even ActiveRecord methods called by mixins such as concerns can generate more accurate method signature for the following method calls.

Using TracePoint, method calls are accurately traced without patching existing methods like prepend.

It also improves maintainability by eliminating parsing the model to handle AST.

pocke commented 2 years ago

I and @ksss discussed RBS generator, which is related to this PR. So I leave this PR until @ksss opens another PR for a prototype of the RBS generator.