]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Drop "explicit" from ValaSourceFile and use "from_commandline"
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 3 Nov 2018 13:38:21 +0000 (14:38 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 3 Nov 2018 13:41:16 +0000 (14:41 +0100)
vala/valagirparser.vala
vala/valasourcefile.vala
vapigen/valavapigen.vala

index 23958dbe9341ff350407f80acd8c1f183f481d34..b918395a9b49fd445bca8e6d3cbad6c92a8aacc0 100644 (file)
@@ -1917,7 +1917,7 @@ public class Vala.GirParser : CodeVisitor {
                                if (context.has_package (pkg)) {
                                        // package already provided elsewhere, stop parsing this GIR
                                        // if it was not passed explicitly
-                                       if (!this.current_source_file.explicit) {
+                                       if (!this.current_source_file.from_commandline) {
                                                return;
                                        }
                                } else {
index b056c012661bf211a9ae5d08c5c58dc92bde61eb..35eaf5f266d977c4042c27dffd0e5e3cc85a5208 100644 (file)
@@ -124,11 +124,6 @@ public class Vala.SourceFile {
         */
        public bool used { get; set; }
 
-       /**
-        * Whether this source-file was explicitly passed on the commandline.
-        */
-       public bool explicit { get; set; }
-
        private ArrayList<Comment> comments = new ArrayList<Comment> ();
 
        public List<UsingDirective> current_using_directives { get; set; default = new ArrayList<UsingDirective> (); }
index f4ae9a50e295786f60b88fea14b7b7d9b6a72c59..63205499dcfc1803cf12b078925580360ae41058 100644 (file)
@@ -132,7 +132,7 @@ class Vala.VAPIGen {
                foreach (string source in sources) {
                        if (FileUtils.test (source, FileTest.EXISTS)) {
                                var source_file = new SourceFile (context, SourceFileType.PACKAGE, source);
-                               source_file.explicit = true;
+                               source_file.from_commandline = true;
                                context.add_source_file (source_file);
                        } else {
                                Report.error (null, "%s not found".printf (source));
@@ -190,7 +190,7 @@ class Vala.VAPIGen {
                                                        }
                                                }
                                        }
-                                       if (file.explicit && file.package_name != null) {
+                                       if (file.from_commandline && file.package_name != null) {
                                                package_names += file.package_name;
                                        }
                                }