Lines Matching refs:stack

241     'pair.h', 'pthread_alloc', 'queue', 'set', 'set.h', 'sstream', 'stack',
259 'ropeimpl.h', 'SFile.h', 'slist', 'slist.h', 'stack.h', 'stdexcept',
1492 # The entire nesting stack before #if
1495 # The entire nesting stack up to #else
1512 self.stack = []
1524 return (not self.stack) or self.stack[-1].seen_open_brace
1530 True if top of the stack is a namespace block, False otherwise.
1532 return self.stack and isinstance(self.stack[-1], _NamespaceInfo)
1535 """Update preprocessor stack.
1551 these do not affect nesting stack.
1557 # Beginning of #if block, save the nesting stack here. The saved
1558 # stack will allow us to restore the parsing state in the #else case.
1559 self.pp_stack.append(_PreprocessorInfo(copy.deepcopy(self.stack)))
1565 # whole nesting stack up to this point. This is what we
1568 self.pp_stack[-1].stack_before_else = copy.deepcopy(self.stack)
1570 # Restore the stack to how it was before the #if
1571 self.stack = copy.deepcopy(self.pp_stack[-1].stack_before_if)
1579 # stack to its former state before the #else, otherwise we
1584 self.stack = self.pp_stack[-1].stack_before_else
1606 # the nesting stack.
1607 if self.stack:
1608 inner_block = self.stack[-1]
1641 self.stack.append(new_namespace)
1674 (not self.stack or self.stack[-1].open_parentheses == 0)):
1675 self.stack.append(_ClassInfo(
1683 self.stack[-1].CheckBegin(filename, clean_lines, linenum, error)
1686 if self.stack and isinstance(self.stack[-1], _ClassInfo):
1689 self.stack[-1].access = access_match.group(1)
1702 # stack otherwise.
1704 self.stack[-1].seen_open_brace = True
1706 self.stack.append(_BlockInfo(True))
1708 self.stack[-1].inline_asm = _BLOCK_ASM
1712 # the stack for these.
1717 # Also pop these stack for these.
1719 self.stack.pop()
1721 # Perform end of block checks and pop the stack.
1722 if self.stack:
1723 self.stack[-1].CheckEnd(filename, clean_lines, linenum, error)
1724 self.stack.pop()
1728 """Get class info on the top of the stack.
1733 for i in range(len(self.stack), 0, -1):
1734 classinfo = self.stack[i - 1]
1750 for obj in self.stack:
1781 the current stack of nested blocks being parsed.
1841 # Return early if the top of the nesting stack is not a class, or if
2059 the current stack of nested blocks being parsed.
2069 if nesting_state.stack and isinstance(nesting_state.stack[-1], _ClassInfo):
2070 if nesting_state.stack[-1].access != 'private':
2107 # Found an operator, update nesting stack
2169 # Found an operator, update nesting stack
2223 the current stack of nested blocks being parsed.
2593 # stack-allocated variables. We don't detect this perfectly: we
2816 the current stack of nested blocks being parsed.
3557 ('<stack>', ('stack',)),
3806 the current stack of nested blocks being parsed.
3816 if nesting_state.stack and nesting_state.stack[-1].inline_asm != _NO_ASM: