summaryrefslogtreecommitdiff
path: root/vala/valasymbol.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 /vala/valasymbol.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 'vala/valasymbol.vala')
-rw-r--r--vala/valasymbol.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valasymbol.vala b/vala/valasymbol.vala
index 9bea678e0..0df385de8 100644
--- a/vala/valasymbol.vala
+++ b/vala/valasymbol.vala
@@ -156,7 +156,7 @@ public abstract class Vala.Symbol : CodeNode {
*/
public bool external_package {
get {
- return (source_reference != null && source_reference.file.external_package);
+ return (source_reference != null && source_reference.file.file_type == SourceFileType.PACKAGE);
}
}