vala r1551 - in trunk: . doc/vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1551 - in trunk: . doc/vala
- Date: Tue, 3 Jun 2008 18:37:33 +0000 (UTC)
Author: juergbi
Date: Tue Jun 3 18:37:33 2008
New Revision: 1551
URL: http://svn.gnome.org/viewvc/vala?rev=1551&view=rev
Log:
2008-06-03 JÃrg Billeter <j bitron ch>
* doc/vala/methods.xml:
Document method syntax, based on patch by Phil Housley
Modified:
trunk/ChangeLog
trunk/doc/vala/methods.xml
Modified: trunk/doc/vala/methods.xml
==============================================================================
--- trunk/doc/vala/methods.xml (original)
+++ trunk/doc/vala/methods.xml Tue Jun 3 18:37:33 2008
@@ -1,6 +1,43 @@
<?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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]