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

Method IsPrinted

validator/validator_gen_js.py:192–200  ·  view source on GitHub ↗

Whether a message was printed. Args: message_key: an instance of MessageKey to identify the message. Returns: a boolean indicating whether the message was printed.

(self, message_key)

Source from the content-addressed store, hash-verified

190 self.is_printed_by_message_key_[message_key] = True
191
192 def IsPrinted(self, message_key):
193 """Whether a message was printed.
194
195 Args:
196 message_key: an instance of MessageKey to identify the message.
197 Returns:
198 a boolean indicating whether the message was printed.
199 """
200 return message_key in self.is_printed_by_message_key_
201
202 def RegisterTagSpec(self, tag_spec):
203 """Registers a tag spec, including for lookups by TagSpecName.

Callers 1

MaybePrintMessageValueFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected