return node
else:
if ctx.api:
- error(s.pos, "'api' not allowed with this statement")
+ s.error("'api' not allowed with this statement")
elif s.sy == 'def':
if ctx.level not in ('module', 'class', 'c_class', 'c_class_pxd', 'property'):
s.error('def statement not allowed here')
s.expect_dedent()
else:
if ctx.api:
- error(s.pos, "'api' not allowed with this statement")
+ s.error("'api' not allowed with this statement")
if ctx.level in ('module', 'class', 'function', 'other'):
body = p_simple_statement_list(s, ctx)
else:
overridable = ctx.overridable)
else:
#if api:
- # error(s.pos, "'api' not allowed with variable declaration")
+ # s.error("'api' not allowed with variable declaration")
declarators = [declarator]
while s.sy == ',':
s.next()