Class: Audition::Static::Checks::RactorIsolation
- Defined in:
- lib/audition/static/checks/ractor_isolation.rb
Overview
Ractor.new verifies block isolation at creation time: a block that touches locals from the enclosing scope raises ArgumentError before the Ractor ever runs. Prism records the resolution depth of every local reference, so captures are detectable exactly: a reference whose depth reaches past the Ractor block's own scope is an outer capture.
Defined Under Namespace
Classes: CaptureScanner
Constant Summary
Constants inherited from Base
Base::EMPTY_CATALOG, Base::WRAPPER
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
call, check_name, explain, explanations, handlers, #initialize, on
Constructor Details
This class inherits a constructor from Audition::Static::Checks::Base
Instance Method Details
#visit_call_node(node) ⇒ Object
25 26 27 28 |
# File 'lib/audition/static/checks/ractor_isolation.rb', line 25 def visit_call_node(node) examine(node) super end |