diff options
author | Jürg Billeter <j@bitron.ch> | 2008-11-10 18:56:28 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-11-10 18:56:28 +0000 |
commit | 67649405484570ae012df33b302e0b708a027b2e (patch) | |
tree | 09e3f1ec3fcd388a1ceeeef594115d3362709842 /vala/valastringliteral.vala | |
parent | ef2a5af23c8596f9b5e0805ed1cd7ee628fb3cf2 (diff) | |
download | vala-67649405484570ae012df33b302e0b708a027b2e.tar.gz |
Move expression checking to code nodes
2008-11-10 Jürg Billeter <j@bitron.ch>
* vala/valaaddressofexpression.vala:
* vala/valabaseaccess.vala:
* vala/valabooleanliteral.vala:
* vala/valacastexpression.vala:
* vala/valacharacterliteral.vala:
* vala/valaconditionalexpression.vala:
* vala/valaintegerliteral.vala:
* vala/valalambdaexpression.vala:
* vala/valanullliteral.vala:
* vala/valaobjectcreationexpression.vala:
* vala/valaparenthesizedexpression.vala:
* vala/valapointerindirection.vala:
* vala/valapostfixexpression.vala:
* vala/valarealliteral.vala:
* vala/valareferencetransferexpression.vala:
* vala/valasemanticanalyzer.vala:
* vala/valasizeofexpression.vala:
* vala/valastringliteral.vala:
* vala/valatypecheck.vala:
* vala/valatypeofexpression.vala:
* vala/valaunaryexpression.vala:
Move expression checking to code nodes
svn path=/trunk/; revision=2009
Diffstat (limited to 'vala/valastringliteral.vala')
-rw-r--r-- | vala/valastringliteral.vala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vala/valastringliteral.vala b/vala/valastringliteral.vala index 2206b744b..d6fc9ac4d 100644 --- a/vala/valastringliteral.vala +++ b/vala/valastringliteral.vala @@ -76,4 +76,16 @@ public class Vala.StringLiteral : Literal { public override string to_string () { return value; } + + public override bool check (SemanticAnalyzer analyzer) { + if (checked) { + return !error; + } + + checked = true; + + value_type = analyzer.string_type.copy (); + + return !error; + } } |