Fixed: Handle '@required' before any method declarations

This commit is contained in:
Martin Carlberg
2013-08-12 22:43:03 +02:00
parent 672ed6ed0c
commit beec0c5293
+1
View File
@@ -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());