Home
last modified time | relevance | path

Searched refs:NamedItem (Results 1 – 10 of 10) sorted by relevance

/third_party/python/Tools/peg_generator/pegen/
Dmetagrammar.gram16 NamedItem,
77 | items '$' action { Alt(items + [NamedItem(None, NameLeaf('ENDMARKER'))], action=action) }
78 | items '$' { Alt(items + [NamedItem(None, NameLeaf('ENDMARKER'))], action=None) }
86 named_item[NamedItem]:
87 | NAME '[' type=NAME '*' ']' '=' ~ item {NamedItem(name.string, item, f"{type.string}*")}
88 | NAME '[' type=NAME ']' '=' ~ item {NamedItem(name.string, item, type.string)}
89 | NAME '=' ~ item {NamedItem(name.string, item)}
90 | item {NamedItem(None, item)}
91 | it=forced_atom {NamedItem(None, it)}
92 | it=lookahead {NamedItem(None, it)}
[all …]
Dparser_generator.py12 NamedItem,
30 def visit_NamedItem(self, node: NamedItem) -> None: argument
127 self.todo[name] = Rule(name, None, Rhs([Alt([NamedItem(None, node)])]))
136 [NamedItem(None, node.separator), NamedItem("elem", node.node)], action="elem",
141 alt = Alt([NamedItem("elem", node.node), NamedItem("seq", NameLeaf(extra_function_name))],)
Dgrammar_parser.py22 NamedItem,
349 … return Alt ( items + [ NamedItem ( None , NameLeaf ( 'ENDMARKER' ) ) ] , action = action )
358 return Alt ( items + [ NamedItem ( None , NameLeaf ( 'ENDMARKER' ) ) ] , action = None )
402 def named_item(self) -> Optional[NamedItem]:
423 return NamedItem ( name . string , item , f"{type.string}*" )
442 return NamedItem ( name . string , item , type . string )
455 return NamedItem ( name . string , item )
462 return NamedItem ( None , item )
469 return NamedItem ( None , it )
476 return NamedItem ( None , it )
[all …]
Dpython_generator.py11 NamedItem,
71 def visit_NamedItem(self, node: NamedItem) -> Tuple[Optional[str], str]: argument
187 def visit_NamedItem(self, node: NamedItem) -> None: argument
Dfirst_sets.py18 NamedItem,
89 def visit_NamedItem(self, item: NamedItem) -> Set[str]: argument
Dgrammar.py219 def __init__(self, items: List[NamedItem], *, icut: int = -1, action: Optional[str] = None): argument
239 def __iter__(self) -> Iterator[List[NamedItem]]:
261 class NamedItem: class
484 NamedItemList = List[NamedItem]
Dvalidator.py9 NamedItem,
Dc_generator.py17 NamedItem,
218 def visit_NamedItem(self, node: NamedItem) -> FunctionCall: argument
658 def visit_NamedItem(self, node: NamedItem) -> None: argument
833 def add_var(self, node: NamedItem) -> Tuple[Optional[str], Optional[str]]: argument
/third_party/python/Tools/peg_generator/scripts/
Dgrammar_grapher.py38 NamedItem,
64 elif isinstance(item, NamedItem):
/third_party/typescript/doc/
Dspec-ARCHIVED.md683 …pecific type. In this case, the items on the list must extend the type 'NamedItem'. This enables t…
686 interface NamedItem {
690 class List<T extends NamedItem> {
3494 class NamedItem {
3499 return obj instanceof NamedItem ? obj.name : "unknown";
3503 the type of `obj` is narrowed to `NamedItem` in the first conditional expression, and the inferred …