Commit af4a9e9a authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

set attributes also for non-readable properties support interface signals

2006-09-28  Jürg Billeter  <j@bitron.ch>

	* vala/parser.y: set attributes also for non-readable properties
	* vala/valacodegenerator.vala: support interface signals
	* vala/valainvocationexpression.vala,
	  vala/valaobjectcreationexpression.vala: fix problem when children
	  change while iterating over them

svn path=/trunk/; revision=135
parent 012e2ba4
2006-09-28 Jürg Billeter <j@bitron.ch>
* vala/parser.y: set attributes also for non-readable properties
* vala/valacodegenerator.vala: support interface signals
* vala/valainvocationexpression.vala,
vala/valaobjectcreationexpression.vala: fix problem when children
change while iterating over them
2006-09-27 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala, vala/valainterfacewriter.vala,
......
......@@ -2416,6 +2416,8 @@ property_declaration
$$ = vala_property_new ($6, $5, NULL, $8, src);
g_object_unref (src);
VALA_CODE_NODE($$)->attributes = $2;
g_object_unref ($5);
g_free ($6);
g_object_unref ($8);
......
......@@ -2139,7 +2139,7 @@ public class Vala.CodeGenerator : CodeVisitor {
}
} else if (expr.symbol_reference.node is Signal) {
var sig = (Signal) expr.symbol_reference.node;
var cl = (Class) sig.symbol.parent_symbol.node;
var cl = (DataType) sig.symbol.parent_symbol.node;
if (sig.has_emitter) {
var ccall = new CCodeFunctionCall (new CCodeIdentifier ("%s_%s".printf (cl.get_lower_case_cname (null), sig.name)));
......
......@@ -79,7 +79,8 @@ public class Vala.InvocationExpression : Expression {
visitor.visit_begin_invocation_expression (this);
foreach (Expression expr in argument_list) {
// iterate over list copy as list may change in loop body
foreach (Expression expr in argument_list.copy ()) {
expr.accept (visitor);
}
......
......@@ -87,7 +87,8 @@ public class Vala.ObjectCreationExpression : Expression {
visitor.visit_begin_object_creation_expression (this);
foreach (Expression arg in argument_list) {
// iterate over list copy as list may change in loop body
foreach (Expression arg in argument_list.copy ()) {
arg.accept (visitor);
}
......
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