Handle @class statements

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11786 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2001-12-17 12:26:46 +00:00
parent 964e068f39
commit b26f86d146
2 changed files with 10 additions and 0 deletions

View file

@ -6,6 +6,7 @@
* Tools/AGSOutput.m: Support (name) syntax for specifying a protocol * Tools/AGSOutput.m: Support (name) syntax for specifying a protocol
cross reference using [(name)-method] cross reference using [(name)-method]
* Tools/autogsdoc.m: Improve documentation of method references. * Tools/autogsdoc.m: Improve documentation of method references.
* Tools/AGSparser.m: Handle @class statements.
2001-12-16 Richard Frith-Macdonald <rfm@gnu.org> 2001-12-16 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -878,6 +878,15 @@ fail:
{ {
return methods; return methods;
} }
else if ([token isEqual: @"class"] == YES)
{
/*
* Pre-declaration of one or more classes ... rather like a
* normal C statement, it ends with a semicolon.
*/
[self skipStatementLine];
return nil;
}
else else
{ {
[self log: @"@method list with unknown directive '%@'", token]; [self log: @"@method list with unknown directive '%@'", token];