summaryrefslogtreecommitdiff
path: root/vapigen/valavapicheck.vala
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2010-08-24 19:01:39 +0200
committerJürg Billeter <j@bitron.ch>2010-09-09 15:54:17 +0200
commitb0a16279ff67cb54054d6c12c681abc4f4541f6f (patch)
tree8a97a5a15559b0bc6a1578622cd96ccb3aaa1cb9 /vapigen/valavapicheck.vala
parent3b5d28eafcff393571e45c3e73779d072e8382e1 (diff)
downloadvala-b0a16279ff67cb54054d6c12c681abc4f4541f6f.tar.gz
SourceFile: Introduce SourceFileType enumeration
SourceFileType has 2 possible values: SOURCE PACKAGE and replaces the CodeWriter.external_package boolean with a new field called 'file_type'.
Diffstat (limited to 'vapigen/valavapicheck.vala')
-rw-r--r--vapigen/valavapicheck.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/vapigen/valavapicheck.vala b/vapigen/valavapicheck.vala
index b6fa64468..daa8776b9 100644
--- a/vapigen/valavapicheck.vala
+++ b/vapigen/valavapicheck.vala
@@ -24,8 +24,8 @@ using GLib;
class Vala.VAPICheck : Object {
public VAPICheck (string gidlname, CodeContext context = new CodeContext ()) {
- gidl = new SourceFile (context, gidlname);
- metadata = new SourceFile (context, gidlname.substring (0, gidlname.length - 5) + ".metadata");
+ gidl = new SourceFile (context, SourceFileType.SOURCE, gidlname);
+ metadata = new SourceFile (context, SourceFileType.SOURCE, gidlname.substring (0, gidlname.length - 5) + ".metadata");
this.context = context;
}