4 ms·
We don't have semantic information yet (it's on the roadmap), but in many cases it's sufficient to get that information from the AST by looking where the variab
by morgante 3y ago
We don't have semantic information yet (it's on the roadmap), but in many cases it's sufficient to get that information from the AST by looking where the variable was originally defined.
For example: https://app.grit.io/studio?key=TteyWLNGZGWFIC9EOiCRi https://app.grit.io/studio?key=TteyWLNGZGWFIC9EOiCRi
`$x.old($arg)` => `$x.new("method", _, $arg)` where {
$program <: contains `$x = new Thing($_)`
}
---
Long term we want to incorporate more semantic analysis, but for quick rewrites this has been pretty effective for us.