diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-06-12 12:46:48 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-11-25 10:23:40 +0100 |
commit | 7b2b429734b61d5ef185204e0a11f0abdad2bdeb (patch) | |
tree | d06f58ab10bad00bd747a99bf5f16223876bf733 /valadoc | |
parent | e3e098f4f389ce857e5ac9099d170869d3ff9973 (diff) | |
download | vala-7b2b429734b61d5ef185204e0a11f0abdad2bdeb.tar.gz |
libvaladoc: Replace FormalParameterType with Vala.ParameterDirection
Diffstat (limited to 'valadoc')
-rw-r--r-- | valadoc/treebuilder.vala | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/valadoc/treebuilder.vala b/valadoc/treebuilder.vala index 7c35905dc..003a61027 100644 --- a/valadoc/treebuilder.vala +++ b/valadoc/treebuilder.vala @@ -720,18 +720,6 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor { return PropertyBindingType.UNMODIFIED; } - private FormalParameterType get_formal_parameter_type (Vala.Parameter element) { - if (element.direction == Vala.ParameterDirection.OUT) { - return FormalParameterType.OUT; - } else if (element.direction == Vala.ParameterDirection.REF) { - return FormalParameterType.REF; - } else if (element.direction == Vala.ParameterDirection.IN) { - return FormalParameterType.IN; - } - - error ("Unknown formal parameter type"); - } - // // Vala tree creation: @@ -1453,7 +1441,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor { file, element.name, get_access_modifier(element), - get_formal_parameter_type (element), + element.direction, element.ellipsis, element); node.parameter_type = create_type_reference (element.variable_type, node, node); |