Exemple #1
0
 def construct_yaml_map(self, node):
     data = gen_marked_value({}, node.start_mark)
     yield data
     value = self.construct_mapping(node)
     data.update(value)
Exemple #2
0
 def construct_yaml_seq(self, node):
     data = gen_marked_value([], node.start_mark)
     yield data
     data.extend(self.construct_sequence(node))
Exemple #3
0
 def f(self, node, *args, **kwargs):
     return gen_marked_value(func(self, node, *args, **kwargs), node.start_mark)
Exemple #4
0
	def construct_yaml_map(self, node):
		data = gen_marked_value({}, node.start_mark)
		yield data
		value = self.construct_mapping(node)
		data.update(value)
Exemple #5
0
	def construct_yaml_seq(self, node):
		data = gen_marked_value([], node.start_mark)
		yield data
		data.extend(self.construct_sequence(node))
Exemple #6
0
	def f(self, node, *args, **kwargs):
		return gen_marked_value(func(self, node, *args, **kwargs), node.start_mark)