Lines Matching refs:str
20 _binop_to_func: t.Dict[str, t.Callable[[t.Any, t.Any], t.Any]] = {
30 _uaop_to_func: t.Dict[str, t.Callable[[t.Any], t.Any]] = {
36 _cmpop_to_func: t.Dict[str, t.Callable[[t.Any, t.Any], t.Any]] = {
75 self, environment: "Environment", template_name: t.Optional[str] = None
84 def save(self) -> t.Mapping[str, t.Any]:
87 def revert(self, old: t.Mapping[str, t.Any]) -> None:
120 fields: t.Tuple[str, ...] = ()
121 attributes: t.Tuple[str, ...] = ("lineno", "environment")
147 exclude: t.Optional[t.Container[str]] = None,
148 only: t.Optional[t.Container[str]] = None,
149 ) -> t.Iterator[t.Tuple[str, t.Any]]:
169 exclude: t.Optional[t.Container[str]] = None,
170 only: t.Optional[t.Container[str]] = None,
204 def set_ctx(self, ctx: str) -> "Node":
246 def __repr__(self) -> str:
250 def dump(self) -> str:
275 buf: t.List[str] = []
352 name: str
399 name: str
419 target: str
437 names: t.List[t.Union[str, t.Tuple[str, str]]]
494 operator: str
518 operator: str
547 name: str
548 ctx: str
558 name: str
559 attr: str
610 data: str
612 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> str:
629 ctx: str
686 key: str
689 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Tuple[str, t.Any]:
740 name: str
837 ctx: str
860 attr: str
861 ctx: str
904 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> str:
906 return "".join(str(x.as_const(eval_ctx)) for x in self.nodes)
941 op: str
1036 name: str
1048 identifier: str
1049 name: str
1060 importname: str
1072 name: str