support defines

This commit is contained in:
Mihai Bazon
2012-10-02 13:20:07 +03:00
parent e1098b04a7
commit dde5b22b5e
3 changed files with 54 additions and 34 deletions

View File

@@ -331,6 +331,14 @@ AST_Symbol.DEFMETHOD("undeclared", function(){
return this.definition().undeclared;
});
AST_LabelRef.DEFMETHOD("undeclared", function(){
return false;
});
AST_Label.DEFMETHOD("undeclared", function(){
return false;
});
AST_Symbol.DEFMETHOD("definition", function(){
return this.thedef;
});