Sha256: 708f43b3da11e289cd154911f93ad5705d7585bdc47ddcef7e096961fce9054c

Contents?: true

Size: 563 Bytes

Versions: 7

Compression:

Stored size: 563 Bytes

Contents

require 'fig/statement'

module Fig; end

# Some raw text that we want emitted as part of unparsing.
class Fig::Statement::SyntheticRawText < Fig::Statement
  attr_reader :text

  def initialize(line_column, source_description, text)
    super(line_column, source_description)

    @text = text
  end

  def statement_type()
    return nil
  end

  def unparse_as_version(unparser)
    return unparser.synthetic_raw_text(self)
  end

  def minimum_grammar_for_emitting_input()
    return [0]
  end

  def minimum_grammar_for_publishing()
    return [0]
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fig-1.4.0 lib/fig/statement/synthetic_raw_text.rb
fig-1.3.0 lib/fig/statement/synthetic_raw_text.rb
fig-1.2.0 lib/fig/statement/synthetic_raw_text.rb
fig-1.1.0 lib/fig/statement/synthetic_raw_text.rb
fig-1.0.0 lib/fig/statement/synthetic_raw_text.rb
fig-0.2.5 lib/fig/statement/synthetic_raw_text.rb
fig-0.2.3 lib/fig/statement/synthetic_raw_text.rb