Sha256: 9147b79bbb5fdd0a1e49b446895151b54e5dc4dc01fc3b84a4276cbfdea5ec3f

Contents?: true

Size: 561 Bytes

Versions: 42

Compression:

Stored size: 561 Bytes

Contents

require '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

42 entries across 42 versions & 1 rubygems

Version Path
bake-toolkit-2.1.0 lib/bakery/model/language.rb
bake-toolkit-2.0.10 lib/bakery/model/language.rb