original_docstring: Returns the ClassStatementParserInfo for the class that contains the given node (if any)
docstring: Returns the ClassStatementParserInfo for the class that contains the given node (if any)
docstring_tokens: Returns the ClassStatementParserInfo for the class that contains the given node ( if any )
code: def GetContainingClassParserInfo(
          cls,
          child_node: AST.Node,
          # Taking this as a parameter to avoid circular dependencies, as
          # FuncDefinitionStatement.py imports this file.
          func_definition_statement_phrase_name: str,
      ) -> Optional[ClassStatementParserInfo]:
          """Returns the ClassStatementParserInfo for the class that contains the given node (if any)"""
  
          node = child_node.Parent
  
          while node is not None:
              if node.Type is not None:
                  if node.Type.Name == cls.PHRASE_NAME:
                      return cast(ClassStatementParserInfo, GetParserInfo(node))
  
                  if node.Type.Name == func_definition_statement_phrase_name:
                      break
  
              node = node.Parent
  
          return None
code_tokens: def GetContainingClassParserInfo ( cls , child_node : AST . Node , func_definition_statement_phrase_name : str , ) -> Optional [ ClassStatementParserInfo ] : node = child_node . Parent while node is not None : if node . Type is not None : if node . Type . Name == cls . PHRASE_NAME : return cast ( ClassStatementParserInfo , GetParserInfo ( node ) ) if node . Type . Name == func_definition_statement_phrase_name : break node = node . Parent return None
short_docstring: Returns the ClassStatementParserInfo for the class that contains the given node (if any)
short_docstring_tokens: Returns the ClassStatementParserInfo for the class that contains the given node ( if any )
comment: # Taking this as a parameter to avoid circular dependencies, as
  $SEP$# FuncDefinitionStatement.py imports this file.
  $SEP$"""Returns the ClassStatementParserInfo for the class that contains the given node (if any)"""