[gnome-builder] vala: mark property as a field
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vala: mark property as a field
- Date: Sat, 26 Sep 2015 22:41:00 +0000 (UTC)
commit f5ce99979af062832635fd79483592678d4c1653
Author: Christian Hergert <christian hergert me>
Date: Sat Sep 26 05:39:23 2015 -0700
vala: mark property as a field
we should really add a new symbol type/icon for properties.
plugins/vala-pack/ide-vala-completion-item.vala | 2 ++
plugins/vala-pack/ide-vala-symbol-tree.vala | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/vala-pack/ide-vala-completion-item.vala b/plugins/vala-pack/ide-vala-completion-item.vala
index 8e268d6..7f3fbbb 100644
--- a/plugins/vala-pack/ide-vala-completion-item.vala
+++ b/plugins/vala-pack/ide-vala-completion-item.vala
@@ -57,6 +57,8 @@ namespace Ide
return "lang-include-symbolic";
else if (symbol is Vala.MemberAccess)
return "struct-field-symbolic";
+ else if (symbol is Vala.Property)
+ return "struct-field-symbolic";
else if (symbol is Vala.Struct)
return "lang-struct-symbolic";
else if (symbol is Vala.Class)
diff --git a/plugins/vala-pack/ide-vala-symbol-tree.vala b/plugins/vala-pack/ide-vala-symbol-tree.vala
index 0f68ced..272f12f 100644
--- a/plugins/vala-pack/ide-vala-symbol-tree.vala
+++ b/plugins/vala-pack/ide-vala-symbol-tree.vala
@@ -138,6 +138,8 @@ namespace Ide
this.kind = Ide.SymbolKind.CLASS;
else if (node is Vala.Struct)
this.kind = Ide.SymbolKind.STRUCT;
+ else if (node is Vala.Property)
+ this.kind = Ide.SymbolKind.FIELD;
}
public override Ide.SourceLocation? get_location ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]