[gnome-builder/wip/slaf/xml-pack: 220/254] xml-pack: add print_node_ranges to IdeXmlSymbolNode
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/slaf/xml-pack: 220/254] xml-pack: add print_node_ranges to IdeXmlSymbolNode
- Date: Thu, 13 Jul 2017 09:07:41 +0000 (UTC)
commit da986628776026b9115fac5d43cfe709c6c4371c
Author: Sebastien Lafargue <slafargue gnome org>
Date: Sun May 14 22:57:54 2017 +0200
xml-pack: add print_node_ranges to IdeXmlSymbolNode
plugins/xml-pack/ide-xml-symbol-node.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/plugins/xml-pack/ide-xml-symbol-node.c b/plugins/xml-pack/ide-xml-symbol-node.c
index f1fb888..c9dc77c 100644
--- a/plugins/xml-pack/ide-xml-symbol-node.c
+++ b/plugins/xml-pack/ide-xml-symbol-node.c
@@ -577,6 +577,21 @@ ide_xml_symbol_node_set_value (IdeXmlSymbolNode *self,
self->value = g_strdup (value);
}
+
+static void
+print_node_ranges (IdeXmlSymbolNode *node)
+{
+ printf ("%s (%i,%i)->(%i,%i) end: (%i,%i)->(%i,%i)\n",
+ node->element_name,
+ node->start_tag.start_line,
+ node->start_tag.start_line_offset,
+ node->start_tag.end_line,
+ node->start_tag.end_line_offset,
+ node->end_tag.start_line,
+ node->end_tag.start_line_offset,
+ node->end_tag.end_line,
+ node->end_tag.end_line_offset);
+}
void
ide_xml_symbol_node_take_attributes_names (IdeXmlSymbolNode *self,
gchar **attributes_names)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]