instance method
SyntaxSuggest::CodeFrontier#<<
<<(block)
lib/syntax_suggest/code_frontier.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/syntax_suggest/code_frontier.rb, line 148
def <<(block)
@unvisited.visit_block(block)
@queue.push(block)
@check_next = true if block.invalid?
self
end
Add a block to the frontier
This method ensures the frontier always remains sorted (in indentation order) and that each code block’s lines are removed from the indentation hash so we don’t re-evaluate the same line multiple times.