instance method
SyntaxSuggest::AroundBlockScan#force_add_empty
force_add_empty
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 60
def force_add_empty
@force_add_empty = 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#empty?`
Empty lines contain no code, only whitespace such as leading spaces a newline.