Sha256: 723d3a27850b0f4000bcf463d264e88ffabff566530a089962185cef8849112b

Contents?: true

Size: 554 Bytes

Versions: 48

Compression:

Stored size: 554 Bytes

Contents

require_relative '../../bake/model/metamodel'
require 'rtext/language'

module Bake

  BakeryLanguage =
  RText::Language.new(BakeryModel.ecore,
    :feature_provider => proc {|c|
      RGen::Serializer::OppositeReferenceFilter.call(c.eAllStructuralFeatures).reject {|f|
        f.eAnnotations.any? {|a|
          a.details.any? {|d| d.key == 'internal' && d.value == 'true'}
        }
      }
    },
    :unlabled_arguments => proc {|c|
      ["name"]
    },
    :line_number_attribute => "line_number",
    :file_name_attribute => "file_name"
  )

end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
bake-toolkit-2.50.0 lib/bakery/model/language.rb
bake-toolkit-2.49.0 lib/bakery/model/language.rb
bake-toolkit-2.48.3 lib/bakery/model/language.rb
bake-toolkit-2.48.2 lib/bakery/model/language.rb
bake-toolkit-2.48.1 lib/bakery/model/language.rb
bake-toolkit-2.48.0 lib/bakery/model/language.rb
bake-toolkit-2.47.1 lib/bakery/model/language.rb
bake-toolkit-2.47.0 lib/bakery/model/language.rb