summaryrefslogtreecommitdiff
path: root/vala/valadelegate.vala
diff options
context:
space:
mode:
Diffstat (limited to 'vala/valadelegate.vala')
-rw-r--r--vala/valadelegate.vala8
1 files changed, 8 insertions, 0 deletions
diff --git a/vala/valadelegate.vala b/vala/valadelegate.vala
index 57596c9b1..25973d6f8 100644
--- a/vala/valadelegate.vala
+++ b/vala/valadelegate.vala
@@ -337,8 +337,16 @@ public class Vala.Delegate : TypeSymbol {
process_attributes ();
+ var old_source_file = analyzer.current_source_file;
+
+ if (source_reference != null) {
+ analyzer.current_source_file = source_reference.file;
+ }
+
accept_children (analyzer);
+ analyzer.current_source_file = old_source_file;
+
return !error;
}
}