(self, node, tok)
return spaces + tok.code
Gets the code for a TokName.

        A subclass can override this to transform names.

        Args:
          node: The Node containing the name.
          tok: The TokName token from the AST.

        Returns:
          The text for the name.
Gets the code for a TokName.
Gets the code for a TokName .
def _get_name(self, node, tok):
        """Gets the code for a TokName.

        A subclass can override this to transform names.

        Args:
          node: The Node containing the name.
          tok: The TokName token from the AST.

        Returns:
          The text for the name.
        """
        if self._args.get('ignore_tokens'):
            return b' ' + tok.code

        spaces = self._get_code_for_spaces(node)
        assert tok.matches(lexer.TokName)
        self._pos += 1
        return spaces + tok.code
def _get_name ( self , node , tok ) : if self . _args . get ( 'ignore_tokens' ) : return b' ' + tok . code spaces = self . _get_code_for_spaces ( node ) assert tok . matches ( lexer . TokName ) self . _pos += 1 return spaces + tok . code