[gnome-builder] langserv-symbol-node: add get_parent_name() helper
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] langserv-symbol-node: add get_parent_name() helper
- Date: Thu, 3 Nov 2016 22:57:49 +0000 (UTC)
commit a35c60d8e6c0d9d19c5cec3e058ae69608392926
Author: Christian Hergert <chergert redhat com>
Date: Thu Nov 3 15:56:12 2016 -0700
langserv-symbol-node: add get_parent_name() helper
This allows us to peek at the parent type name.
libide/langserv/ide-langserv-symbol-node.c | 10 ++++++++++
libide/langserv/ide-langserv-symbol-node.h | 2 ++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/libide/langserv/ide-langserv-symbol-node.c b/libide/langserv/ide-langserv-symbol-node.c
index b35885c..dd43a21 100644
--- a/libide/langserv/ide-langserv-symbol-node.c
+++ b/libide/langserv/ide-langserv-symbol-node.c
@@ -169,3 +169,13 @@ ide_langserv_symbol_node_new (GFile *file,
return self;
}
+
+const gchar *
+ide_langserv_symbol_node_get_parent_name (IdeLangservSymbolNode *self)
+{
+ IdeLangservSymbolNodePrivate *priv = ide_langserv_symbol_node_get_instance_private (self);
+
+ g_return_val_if_fail (IDE_IS_LANGSERV_SYMBOL_NODE (self), NULL);
+
+ return priv->parent_name;
+}
diff --git a/libide/langserv/ide-langserv-symbol-node.h b/libide/langserv/ide-langserv-symbol-node.h
index 5e12c8a..5501e9d 100644
--- a/libide/langserv/ide-langserv-symbol-node.h
+++ b/libide/langserv/ide-langserv-symbol-node.h
@@ -27,6 +27,8 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (IdeLangservSymbolNode, ide_langserv_symbol_node, IDE, LANGSERV_SYMBOL_NODE,
IdeSymbolNode)
+const gchar *ide_langserv_symbol_node_get_parent_name (IdeLangservSymbolNode *self);
+
G_END_DECLS
#endif /* IDE_LANGSERV_SYMBOL_NODE_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]