mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-14 22:51:28 +00:00
Fixed: Handle '@required' before any method declarations
This commit is contained in:
@@ -2222,6 +2222,7 @@ var preIfLevel = 0;
|
||||
}
|
||||
while(!eat(_end)) {
|
||||
if (tokType === _eof) raise(tokPos, "Expected '@end' after '@protocol'");
|
||||
if (eat(_required)) continue;
|
||||
if (eat(_optional)) {
|
||||
while(!eat(_required && tokType !== _end)) {
|
||||
(node.optional || (node.optional = [])).push(parseProtocolClassElement());
|
||||
|
||||
Reference in New Issue
Block a user