lib/activefacts/cql/compiler/shared.rb in activefacts-cql-1.8.1 vs lib/activefacts/cql/compiler/shared.rb in activefacts-cql-1.8.2

- old
+ new

@@ -34,22 +34,22 @@ def <=>(other) key <=> other.key end - def variable= v - @variable = v # A place for a breakpoint :) - end + def variable= v + @variable = v # A place for a breakpoint :) + end - def add_ref ref - @refs << ref - ref - end + def add_ref ref + @refs << ref + ref + end - def delete_ref ref - @refs.delete ref - end + def delete_ref ref + @refs.delete ref + end end class CompilationContext attr_accessor :vocabulary attr_accessor :allowed_forward_terms @@ -75,11 +75,11 @@ # Bind to an existing role which has a role name (that's why we bind those first) player ||= @player_by_role_name[name] if !player && @allowed_forward_terms.include?(name) - @vocabulary.valid_entity_type_name(name) # No need for the result here, just no exceptional condition + @vocabulary.valid_entity_type_name(name) # No need for the result here, just no exceptional condition player = constellation.EntityType(@vocabulary, name, :concept => :new) end player end @@ -115,13 +115,13 @@ @name = name end def compile if @constellation.Vocabulary.size > 0 - @constellation.Topic @name - else - @constellation.Vocabulary @name - end + @constellation.Topic @name + else + @constellation.Vocabulary @name + end end def to_s @name end