Commit 8c301a27 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

Document method syntax, based on patch by Phil Housley

2008-06-03  Jürg Billeter  <j@bitron.ch>

	* doc/vala/methods.xml:

	Document method syntax, based on patch by Phil Housley

svn path=/trunk/; revision=1551
parent af658a9b
2008-06-03 Jürg Billeter <j@bitron.ch>
* doc/vala/methods.xml:
Document method syntax, based on patch by Phil Housley
2008-06-03 Jürg Billeter <j@bitron.ch>
* vapi/packages/gstreamer-base-0.10/:
......
<?xml version="1.0"?>
<section id="methods">
<h>Methods</h>
<p>Documentation</p>
<section id="declaration">
<h>Method declarations</h>
<p>Methods may be declared in namespaces, classes, interfaces, structs, enums, and error domains</p>
<blockquote>
method-declaration:
[ access-modifier ] [ member-modifers ] return-type qualified-identifier ( [ parameter-list ] ) method-contract [ <l>throws</l> error-list ] <l>{</l> statement-list <l>}</l>
member-modifiers:
member-modifier [ member-modifiers ]
member-modifier:
<l>abstract</l>
<l>class</l>
<l>extern</l>
<l>inline</l>
<l>override</l>
<l>static</l>
<l>virtual</l>
return-type:
type
<l>void</l>
parameter-list:
[ parameter-direction ] type identifier [ <l>,</l> parameter-list ]
parameter-direction:
<l>ref</l>
<l>out</l>
method-contract:
[ <l>requires</l> <l>(</l> expression <l>)</l> ] [ <l>ensures</l> <l>(</l> expression <l>)</l> ]
error-list:
error-type [ <l>,</l> error-list ]
</blockquote>
</section>
</section>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment