Commit d9d9acc6 authored by Luca Bruno's avatar Luca Bruno Committed by Jürg Billeter

Fix symbol resolution and enable control flow analysis for signals

Fixes bug 635820.
parent e2b4fe06
......@@ -176,6 +176,12 @@ public class Vala.FlowAnalyzer : CodeVisitor {
visit_subroutine (m);
}
public override void visit_signal (Signal sig) {
if (sig.default_handler != null) {
visit_subroutine (sig.default_handler);
}
}
void visit_subroutine (Subroutine m) {
if (m.body == null) {
return;
......
......@@ -205,7 +205,9 @@ public class Vala.Signal : Symbol, Lockable {
foreach (Parameter param in parameters) {
param.accept (visitor);
}
if (default_handler != null) {
if (default_handler == null && body != null) {
body.accept (visitor);
} else if (default_handler != null) {
default_handler.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