Sha256: 4ff96593aa12de9e84d05701c95e3f15350c7db9c925267d5326b8a427df74f0

Contents?: true

Size: 580 Bytes

Versions: 15

Compression:

Stored size: 580 Bytes

Contents

# coding: utf-8

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 deparse_as_version(deparser)
    return deparser.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

15 entries across 15 versions & 1 rubygems

Version Path
fig-1.27.10 lib/fig/statement/synthetic_raw_text.rb
fig-1.27.8 lib/fig/statement/synthetic_raw_text.rb
fig-1.27.5 lib/fig/statement/synthetic_raw_text.rb
fig-1.27.4 lib/fig/statement/synthetic_raw_text.rb
fig-1.27.3 lib/fig/statement/synthetic_raw_text.rb
fig-1.27.0 lib/fig/statement/synthetic_raw_text.rb
fig-1.26.1.beta.1 lib/fig/statement/synthetic_raw_text.rb
fig-1.26.0 lib/fig/statement/synthetic_raw_text.rb
fig-1.25.1.beta.1 lib/fig/statement/synthetic_raw_text.rb
fig-1.25.0 lib/fig/statement/synthetic_raw_text.rb
fig-1.24.1.beta.3 lib/fig/statement/synthetic_raw_text.rb
fig-1.24.1.beta.2 lib/fig/statement/synthetic_raw_text.rb
fig-1.24.1.beta.1 lib/fig/statement/synthetic_raw_text.rb
fig-1.24.0 lib/fig/statement/synthetic_raw_text.rb
fig-1.23.1.beta.1 lib/fig/statement/synthetic_raw_text.rb