vala r1941 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1941 - in trunk: . vala
- Date: Fri, 31 Oct 2008 07:35:46 +0000 (UTC)
Author: juergbi
Date: Fri Oct 31 07:35:45 2008
New Revision: 1941
URL: http://svn.gnome.org/viewvc/vala?rev=1941&view=rev
Log:
2008-10-31 JÃrg Billeter <j bitron ch>
* vala/valacodenode.vala:
Add check method to CodeNode class to prepare support for more
modular semantic analyzer
Modified:
trunk/ChangeLog
trunk/vala/valacodenode.vala
Modified: trunk/vala/valacodenode.vala
==============================================================================
--- trunk/vala/valacodenode.vala (original)
+++ trunk/vala/valacodenode.vala Fri Oct 31 07:35:45 2008
@@ -76,6 +76,12 @@
get { return _error_types != null && _error_types.size > 0; }
}
+ bool checked;
+ private Gee.List<DataType> _error_types;
+ private static Gee.List<DataType> _empty_type_list;
+
+ private CCodeNode? _ccodenode;
+
/**
* Specifies the exceptions that can be thrown by this node or a child node
*/
@@ -89,9 +95,6 @@
return _empty_type_list;
}
- private Gee.List<DataType> _error_types;
- private static Gee.List<DataType> _empty_type_list;
-
/**
* Adds an error type to the exceptions that can be thrown by this node
* or a child node
@@ -130,6 +133,10 @@
public virtual void accept_children (CodeVisitor visitor) {
}
+ public virtual bool check (SemanticAnalyzer analyzer) {
+ return false;
+ }
+
public virtual void replace_type (DataType old_type, DataType new_type) {
}
@@ -153,8 +160,6 @@
return null;
}
- private CCodeNode? _ccodenode;
-
/**
* Returns a string that represents this code node.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]