[gnome-builder/gnome-builder-3-18] Vala plugin - simplify code to get parameter types
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-18] Vala plugin - simplify code to get parameter types
- Date: Tue, 13 Oct 2015 07:26:01 +0000 (UTC)
commit ce3100257fbbfa480e08b2096a39ec1048723acd
Author: Ben Iofel <iofelben gmail com>
Date: Sun Sep 27 02:53:36 2015 -0400
Vala plugin - simplify code to get parameter types
plugins/vala-pack/ide-vala-completion-item.vala | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/plugins/vala-pack/ide-vala-completion-item.vala b/plugins/vala-pack/ide-vala-completion-item.vala
index 366aaf4..f29e0b7 100644
--- a/plugins/vala-pack/ide-vala-completion-item.vala
+++ b/plugins/vala-pack/ide-vala-completion-item.vala
@@ -123,12 +123,7 @@ namespace Ide
else if (param.direction == ParameterDirection.REF)
str.append ("ref ");
- if (param.variable_type is Vala.DelegateType)
- str.append_printf ("%s, ", (param.variable_type as
Vala.DelegateType).delegate_symbol.name);
- else if (param.variable_type is Vala.DataType)
- str.append_printf ("%s, ", (param.variable_type as
Vala.DataType).to_qualified_string (method.owner));
- else
- str.append_printf ("%s, ", param.variable_type.type_name);
+ str.append_printf ("%s, ", param.variable_type.to_qualified_string
(method.owner));
}
if (parameters.size > 0) {
str.truncate (str.len - 2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]