instance method
SyntaxSuggest::AroundBlockScan#force_add_hidden
force_add_hidden
lib/syntax_suggest/around_block_scan.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/syntax_suggest/around_block_scan.rb, line 49
def force_add_hidden
@force_add_hidden = true
self
end
When using this flag, scan_while will bypass the block it’s given and always add a line that responds truthy to ‘CodeLine#hidden?`
Lines are hidden when they’ve been evaluated by the parser as part of a block and found to contain valid code.