diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-03 13:27:01 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-03 13:27:01 +0200 |
commit | 02ebdffc544f9ff20798cce31b26c4227c858123 (patch) | |
tree | 7cf40f76f928e6cc078e672db5a6ed59be09ab1e /MLKLexicalContext.m | |
parent | 7c9daef5037fef49b3bd522cd4a78cdeda0c2055 (diff) |
Add declaration manipulation support to MLKLexicalContext.
Diffstat (limited to 'MLKLexicalContext.m')
-rw-r--r-- | MLKLexicalContext.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/MLKLexicalContext.m b/MLKLexicalContext.m index a4c0ba2..cec9fd7 100644 --- a/MLKLexicalContext.m +++ b/MLKLexicalContext.m @@ -180,6 +180,18 @@ static MLKSymbol *LEXICAL; return [_goTags valueForSymbol:symbol]; } +-(id) declarations +{ + return _declarations; +} + +-(void) addDeclaration:(id)declaration +{ + ASSIGN (_declarations, + [MLKCons cons:declaration + with:_declarations]); +} + -(BOOL) symbolNamesFunction:(MLKSymbol *)symbol { symbol = symbol ? (id)symbol : (id)[NSNull null]; |