Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

SyntaxSuggest::CodeFrontier#can_skip_check?

can_skip_check?

Performance optimization

Parsing with ripper is expensive If we know we don’t have any blocks with invalid syntax, then we know we cannot have found the incorrect syntax yet.

When an invalid block is added onto the frontier check document state

See also #<< #count .new #detect_invalid_blocks also in 4.0 · 3.4 · 3.3