summaryrefslogtreecommitdiff
path: root/vala/valamemberaccess.vala
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2007-07-27 15:36:23 +0000
committerJürg Billeter <juergbi@src.gnome.org>2007-07-27 15:36:23 +0000
commit5a32f9e2108feff5cdc997fd79303e5f4e9b6175 (patch)
treebbb31850d9a7279f7e6cfb2561b3a80ef0536b1d /vala/valamemberaccess.vala
parentb49e7bae77c537a08cf5c5cb1850fc34d859252a (diff)
downloadvala-5a32f9e2108feff5cdc997fd79303e5f4e9b6175.tar.gz
add internal copy of libgee and use Gee.ArrayList, Gee.HashMap, and
2007-07-27 Juerg Billeter <j@bitron.ch> * Makefile.am, README, configure.ac, gee/Makefile.am, gee/arraylist.vala, gee/collection.vala, gee/hashmap.vala, gee/hashset.vala, gee/iterable.vala, gee/iterator.vala, gee/list.vala, gee/map.vala, gee/readonlycollection.vala, gee/readonlylist.vala, gee/readonlymap.vala, gee/readonlyset.vala, gee/set.vala, vala/Makefile.am, vala/parser.y, vala/valaarray.vala, vala/valaarraycreationexpression.vala, vala/valaattribute.vala, vala/valablock.vala, vala/valacallback.vala, vala/valaclass.vala, vala/valacodecontext.vala, vala/valacodenode.vala, vala/valadatatype.vala, vala/valaelementaccess.vala, vala/valaenum.vala, vala/valaexpression.vala, vala/valafield.vala, vala/valaformalparameter.vala, vala/valaforstatement.vala, vala/valainitializerlist.vala, vala/valainstancecast.vala, vala/valainterface.vala, vala/valainterfacewriter.vala, vala/valainvocationexpression.vala, vala/valainvokable.vala, vala/valalambdaexpression.vala, vala/valalocalvariabledeclaration.vala, vala/valamember.vala, vala/valamemberaccess.vala, vala/valamemorymanager.vala, vala/valamethod.vala, vala/valanamespace.vala, vala/valaobjectcreationexpression.vala, vala/valapointer.vala, vala/valascope.vala, vala/valasemanticanalyzer.vala, vala/valasignal.vala, vala/valasourcefile.vala, vala/valasourcefilecycle.vala, vala/valastruct.vala, vala/valaswitchsection.vala, vala/valaswitchstatement.vala, vala/valasymbol.vala, vala/valasymbolresolver.vala, vala/valatrystatement.vala, vala/valatypeparameter.vala, vala/valatypereference.vala, vala/valavariabledeclarator.vala, ccode/Makefile.am, ccode/valaccodeblock.vala, ccode/valaccodecasestatement.vala, ccode/valaccodecommaexpression.vala, ccode/valaccodedeclaration.vala, ccode/valaccodeenum.vala, ccode/valaccodeforstatement.vala, ccode/valaccodefragment.vala, ccode/valaccodefunction.vala, ccode/valaccodefunctioncall.vala, ccode/valaccodefunctiondeclarator.vala, ccode/valaccodeinitializerlist.vala, ccode/valaccodestruct.vala, ccode/valaccodeswitchstatement.vala, gobject/Makefile.am, gobject/valaclassregisterfunction.vala, gobject/valacodegenerator.vala, gobject/valacodegeneratorassignment.vala, gobject/valacodegeneratorclass.vala, gobject/valacodegeneratorinterface.vala, gobject/valacodegeneratorinvocationexpression.vala, gobject/valacodegeneratormemberaccess.vala, gobject/valacodegeneratormethod.vala, gobject/valacodegeneratorsignal.vala, gobject/valacodegeneratorsourcefile.vala, gobject/valainterfaceregisterfunction.vala, compiler/Makefile.am, vapi/gio-standalone.vala, vapi/gstreamer-0.10.vala, vapi/gtk+-2.0.vala, vapigen/Makefile.am, vapigen/valagidlparser.vala: add internal copy of libgee and use Gee.ArrayList, Gee.HashMap, and Gee.HashSet instead of GLib.List and GLib.HashTable svn path=/trunk/; revision=406
Diffstat (limited to 'vala/valamemberaccess.vala')
-rw-r--r--vala/valamemberaccess.vala28
1 files changed, 12 insertions, 16 deletions
diff --git a/vala/valamemberaccess.vala b/vala/valamemberaccess.vala
index 42598022c..5f32ed50a 100644
--- a/vala/valamemberaccess.vala
+++ b/vala/valamemberaccess.vala
@@ -21,6 +21,7 @@
*/
using GLib;
+using Gee;
/**
* Represents an access to a type member in the source code.
@@ -44,28 +45,23 @@ public class Vala.MemberAccess : Expression {
/**
* The name of the member.
*/
- public string! member_name { get; set construct; }
+ public string! member_name { get; set; }
private Expression _inner;
- private List<TypeReference> type_argument_list;
+ private Gee.List<TypeReference> type_argument_list = new ArrayList<TypeReference> ();
/**
* Creates a new member access expression.
*
- * @param inner parent of the member
- * @param member member name
- * @param source reference to source code
- * @return newly created member access expression
+ * @param inner parent of the member
+ * @param member_name member name
+ * @param source_reference reference to source code
+ * @return newly created member access expression
*/
- public MemberAccess (Expression _inner, string! member, SourceReference source = null) {
- inner = _inner;
- member_name = member;
- source_reference = source;
+ public MemberAccess (construct Expression inner, construct string! member_name, construct SourceReference source_reference = null) {
}
- public MemberAccess.simple (string! member, SourceReference source = null) {
- member_name = member;
- source_reference = source;
+ public MemberAccess.simple (construct string! member_name, construct SourceReference source_reference = null) {
}
/**
@@ -74,7 +70,7 @@ public class Vala.MemberAccess : Expression {
* @param arg a type reference
*/
public void add_type_argument (TypeReference! arg) {
- type_argument_list.append (arg);
+ type_argument_list.add (arg);
}
/**
@@ -82,8 +78,8 @@ public class Vala.MemberAccess : Expression {
*
* @return type argument list
*/
- public List<weak TypeReference> get_type_arguments () {
- return type_argument_list.copy ();
+ public Collection<TypeReference> get_type_arguments () {
+ return new ReadOnlyCollection<TypeReference> (type_argument_list);
}
public override void accept (CodeVisitor! visitor) {