diff options
author | Tak <levi@unity3d.com> | 2010-12-28 15:37:51 +0300 |
---|---|---|
committer | Michael Hutchinson <mhutchinson@novell.com> | 2011-01-04 06:00:00 +0300 |
commit | 685d8d1679a42312dc5be8bde46478cbe48fb0d5 (patch) | |
tree | 522a3961854212325f045487be0259a46d5e2356 /extras/ValaBinding | |
parent | a8ad21ea4229313a06758384e61f33e81e7a29fc (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.cs | 6 |
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 ())); |