Searched refs:NamedItem (Results 1 – 10 of 10) sorted by relevance
/third_party/python/Tools/peg_generator/pegen/ |
D | metagrammar.gram | 16 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 …]
|
D | parser_generator.py | 12 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))],)
|
D | grammar_parser.py | 22 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 …]
|
D | python_generator.py | 11 NamedItem, 71 def visit_NamedItem(self, node: NamedItem) -> Tuple[Optional[str], str]: argument 187 def visit_NamedItem(self, node: NamedItem) -> None: argument
|
D | first_sets.py | 18 NamedItem, 89 def visit_NamedItem(self, item: NamedItem) -> Set[str]: argument
|
D | grammar.py | 219 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]
|
D | validator.py | 9 NamedItem,
|
D | c_generator.py | 17 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/ |
D | grammar_grapher.py | 38 NamedItem, 64 elif isinstance(item, NamedItem):
|
/third_party/typescript/doc/ |
D | spec-ARCHIVED.md | 683 …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 …
|