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

Method PushIndent

validator/validator_gen_js.py:64–66  ·  view source on GitHub ↗

Pushes a particular indent onto the stack.

(self, indent)

Source from the content-addressed store, hash-verified

62 self.indent_by_ = [0]
63
64 def PushIndent(self, indent):
65 """Pushes a particular indent onto the stack."""
66 self.indent_by_.append(self.indent_by_[-1] + indent)
67
68 def PopIndent(self):
69 """Pops a particular indent from the stack, reverting to the previous."""

Callers 3

PrintClassForFunction · 0.80
PrintEnumForFunction · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected