Lines Matching refs:sc
1578 sc = node.item
1580 if sc.orig_type in (INT, HEX, STRING):
1581 s = sc.str_value
1585 "{} ({})".format(node.prompt[0], TYPE_TO_STR[sc.orig_type]),
1586 s, _range_info(sc))
1591 if sc.orig_type in (INT, HEX):
1596 if sc.orig_type == HEX and not s.startswith(("0x", "0X")):
1599 if _check_valid(sc, s):
1600 _set_val(sc, s)
1603 elif len(sc.assignable) == 1:
1606 _set_val(sc, sc.assignable[0])
1611 val_index = sc.assignable.index(sc.tri_value)
1612 _set_val(sc, sc.assignable[(val_index + 1) % len(sc.assignable)])
1615 if _is_y_mode_choice_sym(sc) and not node.list:
1629 sc = node.item
1631 if not isinstance(sc, (Symbol, Choice)):
1640 return sc.orig_type in (STRING, INT, HEX) or len(sc.assignable) > 1 \
1641 or _is_y_mode_choice_sym(sc)
1648 sc = _shown[_sel_node_i].item
1649 if isinstance(sc, (Symbol, Choice)) and tri_val in sc.assignable:
1650 _set_val(sc, tri_val)
1653 def _set_val(sc, val): argument
1664 if val != sc.str_value:
1665 sc.set_value(val)
2102 sc = node.item
2110 if not (sc.name and search(sc.name.lower()) or
2586 def _name_info(sc): argument
2590 return "Name: {}\n".format(sc.name) if sc.name else ""
2593 def _prompt_info(sc): argument
2598 for node in sc.nodes:
2630 def _help_info(sc): argument
2637 for node in sc.nodes:
2644 def _direct_dep_info(sc): argument
2650 return "" if sc.direct_dep is _kconf.y else \
2652 .format(TRI_TO_STR[expr_value(sc.direct_dep)],
2653 _split_expr_info(sc.direct_dep, 2))
2656 def _defaults_info(sc): argument
2659 if not sc.defaults:
2663 if len(sc.defaults) > 1:
2667 for val, cond in sc.orig_defaults:
2669 if isinstance(sc, Symbol):
2820 def _name_and_val_str(sc): argument
2827 if isinstance(sc, Symbol) and not sc.is_constant and not _is_num(sc.name):
2828 if not sc.nodes:
2830 return "{}(undefined/n)".format(sc.name)
2832 return '{}(={})'.format(sc.name, sc.str_value)
2835 return standard_sc_expr_str(sc)