MCPcopy Create free account
hub / github.com/apache/trafficserver / seq_start

Function seq_start

lib/yamlcpp/test/create-emitter-tests.py:58–72  ·  view source on GitHub ↗
(tag='', anchor='', anchor_id=0, style='_')

Source from the content-addressed store, hash-verified

56 return {'emit': 'Comment("%s")' % value, 'handle': ''}
57
58def seq_start(tag='', anchor='', anchor_id=0, style='_'):
59 emit = []
60 handle = []
61 if tag:
62 emit += ['VerbatimTag("%s")' % encode(tag)]
63 if anchor:
64 emit += ['Anchor("%s")' % encode(anchor)]
65 handle += ['OnAnchor(_, "%s")' % encode(anchor)]
66 if tag:
67 out_tag = encode(tag)
68 else:
69 out_tag = '?'
70 emit += ['BeginSeq']
71 handle += ['OnSequenceStart(_, "%s", %s, %s)' % (out_tag, anchor_id, style)]
72 return {'emit': emit, 'handle': handle}
73
74def seq_end():
75 return {'emit': 'EndSeq', 'handle': 'OnSequenceEnd()'}

Callers 1

gen_templatesFunction · 0.85

Calls 1

encodeFunction · 0.85

Tested by

no test coverage detected