• Home
  • Raw
  • Download

Lines Matching refs:a

94 … attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool }
98 attributes.each do |a|
99 body << "#{indent}if (attribute == \"#{attribute_name(a)}\") {"
101 unless a.multiple?
103 body << "#{indent * 3}return Error(\"Attribute '#{attribute_name(a)}' already defined\","
108 if a.enum?
109 a.values.each do |v|
116 …body << "#{indent * 2}return Error(std::string(\"Attribute '#{attribute_name(a)}' has incorrect va…
117 …body << "#{indent * 2} R\"('. Should be one of #{a.values.map(&:value)})\", Error::Typ…
118 elsif a.size?
128 … Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? != is_bool }.each do |a|
129 body << "#{indent}if (attribute == \"#{attribute_name(a)}\") {"
130 …body << "#{indent * 2}return Error(\"Attribute '#{attribute_name(a)}' #{is_bool ? "must" : "must n…
149 …attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool &…
153 attributes.each do |a|
154 body << "#{indent}if (attribute == \"#{attribute_name(a)}\") {"
156 if defined? a.flags
157 body << "#{indent * 2}SetAccessFlags(GetAccessFlags() | #{a.flags.join(' | ')});"
160 if a.enum?
161 a.values.select { |v| v.flags && v.flags.any? }.each do |v|
182 …attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool &…
186 attributes.each do |a|
187 body << "#{indent}if (attribute == \"#{attribute_name(a)}\") {"
189 if defined? a.flags
190 body << "#{indent * 2}if ((GetAccessFlags() & #{a.flags.join(' | ')}) != 0) {"
191 body << "#{indent * 3}SetAccessFlags(GetAccessFlags() ^ (#{a.flags.join(' | ')}));"
195 if a.enum?
196 a.values.select { |v| v.flags && v.flags.any? }.each do |v|
231 … attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool }
233 args[1] = add_unused_attribute(args[1]) if args[1] && attributes.none? { |a| a.enum? }
241 …attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool &…
242 use_value = attributes.any? { |a| a.enum? && a.values.any? { |v| v.flags && v.flags.any? } }