module I18n::Tasks::Scanners::PrismScanners
This class is used to parse the arguments to e.g. a Prism::CallNode and return the values we need for turning them into translations and occurrences. Used in the PrismScanners::Visitor
class.
These classes are used in the PrismScanners::Visitor
class to store the translations found in the parsed code Used in the PrismScanners::Visitor
class.
Implementation of Prism::Visitor (ruby.github.io/prism/rb/Prism/Visitor.html) It processes the parsed AST from Prism and creates a new AST with the nodes defined in prism_scanners/nodes.rb The only argument it receives is comments, which can be used for magic comments. It defines processing of arguments in a way that is needed for the translation calls. Any Rails-specific processing is added in the RailsVisitor class.