Lines Matching refs:prop
133 for prop_name, prop in obj['properties'].items():
134 if JSON_TYPE_ARRAY == prop["type"]:
135 array_items = prop['items']
140 if JSON_TYPE_OBJECT == prop["type"] and not prop["cppname"] in assembly:
141 accumulate_all_objects(prop)
165 def augment_property(prop: dict[str, any]) -> None:
166 prop_type = prop['type']
168 prop["cpptype"] = propmetadatatocpptypename(prop)
170 is_scalar_type = propmetadatatypeisscalar(prop)
173 prop["iscppscalartype"] = is_scalar_type
174 prop["isarray"] = is_array_type
175 prop["isstring"] = JSON_TYPE_STRING == prop_type
176 prop["isboolean"] = JSON_TYPE_BOOLEAN == prop_type
177 prop["isnumber"] = JSON_TYPE_NUMBER == prop_type
178 prop["isinteger"] = JSON_TYPE_INTEGER == prop_type
179 prop["isobject"] = JSON_TYPE_OBJECT == prop_type
180 prop["iscppnonscalarnoncollectiontype"] = not is_scalar_type and not is_array_type
181 prop["toplevelcppname"] = top_level_cpp_name
182 prop["cppdefaultvalue"] = propmetadatatocppdefaultvalue(prop)
188 array_items = prop['items']
197 augment_object(prop)
209 for _, prop in obj['properties'].items():
210 if prop['type'] == JSON_TYPE_ARRAY:
211 array_items = prop['items']
214 if prop['type'] == JSON_TYPE_OBJECT:
215 result.add(prop['cppname'])
222 for _, prop in obj['properties'].items():
223 if prop['type'] == JSON_TYPE_ARRAY:
238 for prop_name, prop in properties:
239 prop["cppname"] = propnametocppname(prop_name)
240 prop["cppmembername"] = propnametocppmembername(prop_name)
241 augment_property(prop)