summaryrefslogtreecommitdiff
path: root/vala/valageniescanner.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2008-08-14 21:22:53 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-08-14 21:22:53 +0000
commit8621de12c043a7a7d959dbca9b70a5fa02c34781 (patch)
tree2f656d4d065c78104a0af9e4d93ece1b8ccb7463 /vala/valageniescanner.vala
parent2166f7c312de0cd0e0f474cfff44c3293fea3098 (diff)
downloadvala-8621de12c043a7a7d959dbca9b70a5fa02c34781.tar.gz
Don't derive from GObject in libvala where not necessary to improve
2008-08-14 Jürg Billeter <j@bitron.ch> Don't derive from GObject in libvala where not necessary to improve compilation performance svn path=/trunk/; revision=1757
Diffstat (limited to 'vala/valageniescanner.vala')
-rw-r--r--vala/valageniescanner.vala10
1 files changed, 3 insertions, 7 deletions
diff --git a/vala/valageniescanner.vala b/vala/valageniescanner.vala
index 2543e0811..c889489d6 100644
--- a/vala/valageniescanner.vala
+++ b/vala/valageniescanner.vala
@@ -27,10 +27,10 @@ using Gee;
/**
* Lexical scanner for Genie source files.
*/
-public class Vala.Genie.Scanner : Object {
- public SourceFile source_file { get; construct; }
+public class Vala.Genie.Scanner {
+ public SourceFile source_file { get; private set; }
- public int indent_spaces { get;set;}
+ public int indent_spaces { get; set;}
char* begin;
char* current;
@@ -48,13 +48,9 @@ public class Vala.Genie.Scanner : Object {
string _comment;
-
-
public Scanner (SourceFile source_file) {
this.source_file = source_file;
- }
- construct {
begin = source_file.get_mapped_contents ();
end = begin + source_file.get_mapped_length ();