Skip to content
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 3.4 · 3.3 · 3.2