class YARD::Parser::Ruby::Legacy::StatementList

def process_block_token(tk)

Parameters:
  • tk (RubyToken::Token) -- the token to process
def process_block_token(tk)
  if balances?(tk)
    @statement << tk
    @state = :first_statement
    process_statement_end(tk)
  elsif @block_num > 1 || (@block.empty? && [TkSPACE, TkNL].include?(tk.class))
    @statement << tk
  else
    if @block.empty?
      @statement << TkBlockContents.new(tk.line_no, tk.char_no)
    end
    @block << tk
  end
end