Lines Matching refs:ctx
92 def get_eval_context(node: "Node", ctx: t.Optional[EvalContext]) -> EvalContext:
93 if ctx is None:
100 return ctx
204 def set_ctx(self, ctx: str) -> "Node":
213 if "ctx" in node.fields:
214 node.ctx = ctx # type: ignore
539 The `ctx` of the node can be one of the following values:
546 fields = ("name", "ctx")
548 ctx: str
623 for subscripts. Like for :class:`Name` `ctx` specifies if the tuple
627 fields = ("items", "ctx")
629 ctx: str
834 fields = ("node", "arg", "ctx")
837 ctx: str
840 if self.ctx != "load":
858 fields = ("node", "attr", "ctx")
861 ctx: str
864 if self.ctx != "load":
1116 :class:`Name` node, with a ``'load'`` ctx and will return the
1122 Assign(Name('foo', ctx='store'),