Lines Matching full:a
4 # You may obtain a copy of the License at
95 … attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool }
99 attributes.each do |a|
100 body << "#{indent}if (attribute == \"#{attribute_name(a)}\") {"
102 unless a.multiple?
104 body << "#{indent * 3}return Error(\"Attribute '#{attribute_name(a)}' already defined\","
109 if a.enum?
110 a.values.each do |v|
117 …body << "#{indent * 2}return Error(std::string(\"Attribute '#{attribute_name(a)}' have incorrect v…
118 …body << "#{indent * 2} R\"('. Should be one of #{a.values.map(&:value)})\", Error::Typ…
119 elsif a.size?
129 … Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? != is_bool }.each do |a|
130 body << "#{indent}if (attribute == \"#{attribute_name(a)}\") {"
131 …indent * 2}return Error(\"Attribute '#{attribute_name(a)}' #{is_bool ? "must" : "must not"} have a…
150 …attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool &…
154 attributes.each do |a|
155 body << "#{indent}if (attribute == \"#{attribute_name(a)}\") {"
157 if defined? a.flags
158 body << "#{indent * 2}SetAccessFlags(GetAccessFlags() | #{a.flags.join(' | ')});"
161 if a.enum?
162 a.values.select { |v| v.flags && v.flags.any? }.each do |v|
183 …attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool &…
187 attributes.each do |a|
188 body << "#{indent}if (attribute == \"#{attribute_name(a)}\") {"
190 if defined? a.flags
191 body << "#{indent * 2}if ((GetAccessFlags() & #{a.flags.join(' | ')}) != 0) {"
192 body << "#{indent * 3}SetAccessFlags(GetAccessFlags() ^ (#{a.flags.join(' | ')}));"
196 if a.enum?
197 a.values.select { |v| v.flags && v.flags.any? }.each do |v|
232 … attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool }
234 args[1] = add_unused_attribute(args[1]) if args[1] && attributes.none? { |a| a.enum? }
242 …attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool &…
243 use_value = attributes.any? { |a| a.enum? && a.values.any? { |v| v.flags && v.flags.any? } }