lib/bake/model/language.rb in bake-toolkit-2.42.3 vs lib/bake/model/language.rb in bake-toolkit-2.43.0
- old
+ new
@@ -1,45 +1,47 @@
-require 'bake/model/metamodel'
-
-require 'rtext/language'
-
-
-
-module Bake
-
- class Idp
- def call(e,notUsed1,notUsed2,notUsed3)
- e.respond_to?(:ident) ? e.ident() : nil
- end
- end
-
-
- Language =
- RText::Language.new(Metamodel.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|
- if c.name == "Compiler" or c.name == "CompilerAdaptions"
- ["ctype"]
- elsif c.name == "Define"
- ["str"]
- elsif c.name == "Flags" or c.name == "LibPostfixFlags" or c.name == "LibPrefixFlags"
- ["overwrite"]
- elsif c.name == "DefaultToolchain"
- ["basedOn"]
- elsif c.name == "Description"
- ["text"]
- else
- ["name"]
- end
- },
- :identifier_provider => Idp.new,
- :line_number_attribute => "line_number",
- :fragment_ref_attribute => "fragment_ref"
- )
-
-end
+require 'bake/model/metamodel'
+
+require 'rtext/language'
+
+
+
+module Bake
+
+ class Idp
+ def call(e,notUsed1,notUsed2,notUsed3)
+ e.respond_to?(:ident) ? e.ident() : nil
+ end
+ end
+
+
+ Language =
+ RText::Language.new(Metamodel.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|
+ if c.name == "Compiler" or c.name == "CompilerAdaptions"
+ ["ctype"]
+ elsif c.name == "Define"
+ ["str"]
+ elsif c.name == "Flags" or c.name == "LibPostfixFlags" or c.name == "LibPrefixFlags"
+ ["overwrite"]
+ elsif c.name == "DefaultToolchain"
+ ["basedOn"]
+ elsif c.name == "Description"
+ ["text"]
+ elsif c.name == "SrcFileEndings"
+ ["endings"]
+ else
+ ["name"]
+ end
+ },
+ :identifier_provider => Idp.new,
+ :line_number_attribute => "line_number",
+ :fragment_ref_attribute => "fragment_ref"
+ )
+
+end