Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTak <levi@unity3d.com>2010-12-28 15:37:51 +0300
committerMichael Hutchinson <mhutchinson@novell.com>2011-01-04 06:00:00 +0300
commit685d8d1679a42312dc5be8bde46478cbe48fb0d5 (patch)
tree522a3961854212325f045487be0259a46d5e2356 /extras/ValaBinding
parenta8ad21ea4229313a06758384e61f33e81e7a29fc (diff)
[Vala] Add function parameters to dom methods.
* Parser/ValaDocumentParser.cs: Add function parameters to dom methods. License: MIT/X11
Diffstat (limited to 'extras/ValaBinding')
-rw-r--r--extras/ValaBinding/Parser/ValaDocumentParser.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/extras/ValaBinding/Parser/ValaDocumentParser.cs b/extras/ValaBinding/Parser/ValaDocumentParser.cs
index 8c61e82082..f5a15b8945 100644
--- a/extras/ValaBinding/Parser/ValaDocumentParser.cs
+++ b/extras/ValaBinding/Parser/ValaDocumentParser.cs
@@ -85,7 +85,11 @@ namespace MonoDevelop.ValaBinding.Parser
case "method":
case "creationmethod":
case "constructor":
- members.Add (new DomMethod (child.Name, Modifiers.None, MethodModifier.None, new DomLocation (child.SourceReferences[0].FirstLine, 1), new DomRegion (child.SourceReferences[0].FirstLine, int.MaxValue, child.SourceReferences[0].LastLine, int.MaxValue), new DomReturnType (child.ReturnType.TypeName)));
+ DomMethod method = new DomMethod (child.Name, Modifiers.None, MethodModifier.None, new DomLocation (child.SourceReferences[0].FirstLine, 1), new DomRegion (child.SourceReferences[0].FirstLine, int.MaxValue, child.SourceReferences[0].LastLine, int.MaxValue), new DomReturnType (child.ReturnType.TypeName));
+ foreach (DataType param in child.Parameters) {
+ method.Add (new DomParameter (method, param.Name, new DomReturnType (param.TypeName)));
+ }
+ members.Add (method);
break;
case "property":
members.Add (new DomProperty (child.Name, Modifiers.None, new DomLocation (child.SourceReferences[0].FirstLine, 1), new DomRegion (child.SourceReferences[0].FirstLine, int.MaxValue, child.SourceReferences[0].LastLine, int.MaxValue), new DomReturnType ()));