Lines Matching refs:str
58 source: str) -> None: argument
64 if not isinstance(name, str):
68 def check_name_str(name: str, info: QAPISourceInfo, source: str) -> str: argument
94 def check_name_upper(name: str, info: QAPISourceInfo, source: str) -> None: argument
114 def check_name_lower(name: str, info: QAPISourceInfo, source: str, argument
139 def check_name_camel(name: str, info: QAPISourceInfo, source: str) -> None: argument
157 def check_defn_name_str(name: str, info: QAPISourceInfo, meta: str) -> None: argument
186 def check_keys(value: Dict[str, object], argument
188 source: str, argument
189 required: List[str], argument
190 optional: List[str]) -> None: argument
203 def pprint(elems: Iterable[str]) -> str: argument
250 def check_if(expr: Dict[str, object], argument
251 info: QAPISourceInfo, source: str) -> None: argument
267 def _check_if(cond: Union[str, object]) -> None: argument
268 if isinstance(cond, str):
294 def _check_infix(operator: str, operands: object) -> None: argument
337 info: QAPISourceInfo, source: str) -> None: argument
338 if value is not None and not isinstance(value, str):
343 info: QAPISourceInfo, source: str) -> None: argument
344 if value is None or isinstance(value, str):
351 if len(value) != 1 or not isinstance(value[0], str):
358 info: QAPISourceInfo, source: str, argument
359 parent_name: Optional[str]) -> None: argument
402 info: QAPISourceInfo, source: str, argument
403 parent_name: Optional[str]) -> None: argument
404 if value is None or isinstance(value, str):
460 if prefix is not None and not isinstance(prefix, str):
492 name = cast(str, expr['struct']) # Checked in check_exprs
508 name = cast(str, expr['union']) # Checked in check_exprs
625 name = cast(str, expr[meta])