public class Vala.CCodeFile {
public bool is_header { get; set; }
+ public weak SourceFile? file { get; private set; }
+
Set<string> features = new HashSet<string> (str_hash, str_equal);
Set<string> declarations = new HashSet<string> (str_hash, str_equal);
Set<string> includes = new HashSet<string> (str_hash, str_equal);
CCodeFragment constant_declaration = new CCodeFragment ();
CCodeFragment type_member_definition = new CCodeFragment ();
+ public CCodeFile (SourceFile? source_file = null) {
+ file = source_file;
+ }
+
public bool add_declaration (string name) {
if (name in declarations) {
return true;
}
public override void visit_source_file (SourceFile source_file) {
- cfile = new CCodeFile ();
+ cfile = new CCodeFile (source_file);
user_marshal_set = new HashSet<string> (str_hash, str_equal);