MCPcopy Create free account
hub / github.com/ampproject/amphtml / MessageIdForAttrListName

Method MessageIdForAttrListName

validator/validator_gen_js.py:230–238  ·  view source on GitHub ↗

Looks up a message id for a tag spec by AttrListName. Args: attr_list_name: a string - the AttrList::name field. Returns: The message id - a number.

(self, attr_list_name)

Source from the content-addressed store, hash-verified

228 self.message_id_by_attr_list_name_[attr_list.name] = message_id
229
230 def MessageIdForAttrListName(self, attr_list_name):
231 """Looks up a message id for a tag spec by AttrListName.
232
233 Args:
234 attr_list_name: a string - the AttrList::name field.
235 Returns:
236 The message id - a number.
237 """
238 return self.message_id_by_attr_list_name_[attr_list_name]
239
240
241def ElementTypeFor(descriptor, field_desc):

Callers 1

AssignedValueForFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected