Home | History | Annotate | Download | only in handlebar

Lines Matching refs:next_token

826     self.next_token = None
834 return self.next_token is not None
837 if self.next_token is _Token.CHARACTER:
845 elif self.next_token is not None:
846 self.next_column += len(self.next_token.text)
848 self.next_token = None
856 self.next_token = (
860 if self.next_token is None:
861 self.next_token = _Token.CHARACTER
863 self._cursor += len(self.next_token.text)
868 if not self.next_token:
870 elif self.next_token is not token:
872 token.name, self.next_token.name, self.next_line)
890 start = self._cursor - len(self.next_token.text)
891 while (self.next_token is _Token.CHARACTER and
895 end = self._cursor - (len(self.next_token.text) if self.next_token else 0)
902 while (self.next_token is _Token.CHARACTER and
908 return '%s(next_token=%s, remainder=%s)' % (type(self).__name__,
909 self.next_token,
933 if tokens.next_token in (_Token.OPEN_END_SECTION,
940 elif tokens.next_token in (_Token.CLOSE_MUSTACHE,
942 raise ParseException('Orphaned %s at line %s' % (tokens.next_token.name,
980 next_token = tokens.next_token
982 if next_token is _Token.CHARACTER:
987 elif next_token in (_Token.OPEN_VARIABLE,
993 if next_token is _Token.OPEN_UNESCAPED_VARIABLE else
997 return [next_token.clazz(id_)]
998 elif next_token is _Token.OPEN_ASSERTION:
1002 node = next_token.clazz(id_, tokens.AdvanceOverNextString())
1005 elif next_token in (_Token.OPEN_PARTIAL,
1019 if next_token is _Token.OPEN_PARTIAL:
1021 if tokens.next_token is not _Token.CLOSE_MUSTACHE:
1030 elif tokens.next_token is not _Token.CLOSE_MUSTACHE:
1050 return [next_token.clazz(bind_to, id_, inline_node)]
1054 else_node_class = next_token.ElseNodeClass() # may not have one
1057 tokens.next_token is _Token.OPEN_ELSE):
1063 node = next_token.clazz(bind_to, id_, section)
1070 elif next_token is _Token.OPEN_COMMENT:
1080 if tokens.next_token is _Token.OPEN_COMMENT:
1082 elif tokens.next_token is _Token.CLOSE_COMMENT:
1106 while (tokens.next_token is _Token.CHARACTER and