Home
last modified time | relevance | path

Searched refs:start_mark (Results 1 – 11 of 11) sorted by relevance

/third_party/PyYAML/lib/yaml/
Devents.py5 def __init__(self, start_mark=None, end_mark=None): argument
6 self.start_mark = start_mark
16 def __init__(self, anchor, start_mark=None, end_mark=None): argument
18 self.start_mark = start_mark
22 def __init__(self, anchor, tag, implicit, start_mark=None, end_mark=None, argument
27 self.start_mark = start_mark
37 def __init__(self, start_mark=None, end_mark=None, encoding=None): argument
38 self.start_mark = start_mark
46 def __init__(self, start_mark=None, end_mark=None, argument
48 self.start_mark = start_mark
[all …]
Dtokens.py3 def __init__(self, start_mark, end_mark): argument
4 self.start_mark = start_mark
19 def __init__(self, name, value, start_mark, end_mark): argument
22 self.start_mark = start_mark
33 def __init__(self, start_mark=None, end_mark=None, argument
35 self.start_mark = start_mark
77 def __init__(self, value, start_mark, end_mark): argument
79 self.start_mark = start_mark
84 def __init__(self, value, start_mark, end_mark): argument
86 self.start_mark = start_mark
[all …]
Dparser.py131 event = StreamStartEvent(token.start_mark, token.end_mark,
146 start_mark = end_mark = token.start_mark
147 event = DocumentStartEvent(start_mark, end_mark,
168 start_mark = token.start_mark
174 self.peek_token().start_mark)
177 event = DocumentStartEvent(start_mark, end_mark,
184 event = StreamEndEvent(token.start_mark, token.end_mark)
194 start_mark = end_mark = token.start_mark
200 event = DocumentEndEvent(start_mark, end_mark,
211 event = self.process_empty_scalar(self.peek_token().start_mark)
[all …]
Dscanner.py419 start_mark = self.get_mark()
422 self.tokens.append(TokenClass(start_mark, end_mark))
442 start_mark = self.get_mark()
445 self.tokens.append(TokenClass(start_mark, end_mark))
465 start_mark = self.get_mark()
468 self.tokens.append(TokenClass(start_mark, end_mark))
479 start_mark = self.get_mark()
482 self.tokens.append(FlowEntryToken(start_mark, end_mark))
512 start_mark = self.get_mark()
515 self.tokens.append(BlockEntryToken(start_mark, end_mark))
[all …]
Dnodes.py3 def __init__(self, tag, value, start_mark, end_mark): argument
6 self.start_mark = start_mark
28 start_mark=None, end_mark=None, style=None): argument
31 self.start_mark = start_mark
37 start_mark=None, end_mark=None, flow_style=None): argument
40 self.start_mark = start_mark
Dconstructor.py75 "found unconstructable recursive node", node.start_mark)
121 node.start_mark)
128 node.start_mark)
136 node.start_mark)
141 raise ConstructorError("while constructing a mapping", node.start_mark,
142 "found unhashable key", key_node.start_mark)
151 node.start_mark)
195 node.start_mark,
197 % subnode.id, subnode.start_mark)
204 raise ConstructorError("while constructing a mapping", node.start_mark,
[all …]
Dcomposer.py42 document.start_mark, "but found another document",
43 event.start_mark)
69 % anchor, event.start_mark)
76 % anchor, self.anchors[anchor].start_mark,
77 "second occurrence", event.start_mark)
94 event.start_mark, event.end_mark, style=event.style)
105 start_event.start_mark, None,
123 start_event.start_mark, None,
/third_party/PyYAML/yaml/
D_yaml.pyx148 # cdef readonly Mark start_mark
150 # def __init__(self, Mark start_mark, Mark end_mark):
151 # self.start_mark = start_mark
156 # def __init__(self, Mark start_mark, Mark end_mark, encoding):
157 # self.start_mark = start_mark
167 # def __init__(self, name, value, Mark start_mark, Mark end_mark):
170 # self.start_mark = start_mark
214 # def __init__(self, value, Mark start_mark, Mark end_mark):
216 # self.start_mark = start_mark
221 # def __init__(self, value, Mark start_mark, Mark end_mark):
[all …]
D_yaml.pxd142 yaml_mark_t start_mark
187 yaml_mark_t start_mark
/third_party/PyYAML/tests/lib/
Dtest_yaml_ext.py143 … py_start = (py_token.start_mark.index, py_token.start_mark.line, py_token.start_mark.column)
145 c_start = (c_token.start_mark.index, c_token.start_mark.line, c_token.start_mark.column)
/third_party/PyYAML/examples/yaml-highlight/
Dyaml_hl.py66 if token.start_mark.index != token.end_mark.index:
69 markers.append([token.start_mark.index, +2, number, substitutions[cls, -1]])
77 markers.append([event.start_mark.index, +1, number, substitutions[cls, -1]])