lib/hocon/impl/tokenizer.rb
# called if the next token IS a simple value,
# so creates a whitespace token if the previous
# token also was.
called if the next token IS a simple value,
so creates a whitespace token if the previous
token also was.
called if the next token IS a simple value so creates a whitespace token if the previous token also was .
def next_is_a_simple_value(base_origin, line_number)
        if @last_token_was_simple_value
          if @whitespace.length > 0
            token = Tokens.new_unquoted_text(
                line_origin(base_origin, line_number),
                String.new(@whitespace.string)
            )
            @whitespace.string = ""
            return token
          else
            return nil
          end
        else
          @last_token_was_simple_value = true
          @whitespace.string = ""
          return nil
        end
      end
def next_is_a_simple_value ( base_origin , line_number ) if @last_token_was_simple_value if @whitespace . length > 0 token = Tokens . new_unquoted_text ( line_origin ( base_origin , line_number ) , String . new ( @whitespace . string ) ) @whitespace . string = "" return token else return nil end else @last_token_was_simple_value = true @whitespace . string = "" return nil end end
called if the next token IS a simple value,
so creates a whitespace token if the previous
token also was.
called if the next token IS a simple value so creates a whitespace token if the previous token also was .
# need to save whitespace between the two so # the parser has the option to concatenate it. # @last_token_was_simple_value = true still
base_origin
<not_specific>
line_number
<not_specific>