Commit 7cec9bf8 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

Correct source file dependencies for catch clauses, fixes bug 561437

2008-11-20  Jürg Billeter  <j@bitron.ch>

	* vala/valacatchclause.vala:
	* vala/valaerrortype.vala:

	Correct source file dependencies for catch clauses,
	fixes bug 561437

svn path=/trunk/; revision=2035
parent 44fada9b
2008-11-20 Jürg Billeter <j@bitron.ch>
* vala/valacatchclause.vala:
* vala/valaerrortype.vala:
Correct source file dependencies for catch clauses,
fixes bug 561437
2008-11-19 Jürg Billeter <j@bitron.ch>
* vala/valatypeofexpression.vala:
Include C header files for types used in typeof expressions,
fixes bug 559454
fixes bug 559494
2008-11-19 Jürg Billeter <j@bitron.ch>
......
......@@ -64,6 +64,7 @@ Roland Hostettler
Ross Burton
Sam Liddicott
Samuel Cormier-Iijima
Sebastian Dröge
Stéphan Kochen
Tai Chi Minh Ralph Eastwood
Thijs Vermeir
......
......@@ -103,8 +103,6 @@ public class Vala.CatchClause : CodeNode {
checked = true;
if (error_type != null) {
analyzer.current_source_file.add_type_dependency (error_type, SourceFileDependencyType.SOURCE);
error_variable = new LocalVariable (error_type.copy (), variable_name);
body.scope.add (variable_name, error_variable);
......@@ -117,6 +115,8 @@ public class Vala.CatchClause : CodeNode {
error_type.check (analyzer);
analyzer.current_source_file.add_type_dependency (error_type, SourceFileDependencyType.SOURCE);
body.check (analyzer);
return !error;
......
......@@ -129,4 +129,11 @@ public class Vala.ErrorType : ReferenceType {
public override bool is_reference_type_or_type_parameter () {
return true;
}
public override bool check (SemanticAnalyzer analyzer) {
if (error_domain != null) {
return error_domain.check (analyzer);
}
return true;
}
}
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