Lines Matching refs:sc
1002 sc = node.item
1004 if not isinstance(sc, (Symbol, Choice)):
1013 return sc.orig_type in (STRING, INT, HEX) or len(sc.assignable) > 1 \
1014 or _is_y_mode_choice_sym(sc)
1039 sc = _id_to_node[sel].item
1040 if isinstance(sc, (Symbol, Choice)) and tri_val in sc.assignable:
1041 _set_val(sc, tri_val)
1122 sc = node.item
1124 if sc.type in (INT, HEX, STRING):
1133 _set_val(sc, s)
1135 elif len(sc.assignable) == 1:
1138 _set_val(sc, sc.assignable[0])
1143 val_index = sc.assignable.index(sc.tri_value)
1144 _set_val(sc, sc.assignable[(val_index + 1) % len(sc.assignable)])
1147 def _set_val(sc, val): argument
1156 if val != sc.str_value:
1157 sc.set_value(val)
1883 sc = node.item
1891 if not (sc.name and search(sc.name.lower()) or
2073 def _name_info(sc): argument
2077 return (sc.name if sc.name else standard_sc_expr_str(sc)) + "\n\n"
2105 def _help_info(sc): argument
2112 for node in sc.nodes:
2119 def _direct_dep_info(sc): argument
2125 return "" if sc.direct_dep is _kconf.y else \
2127 .format(TRI_TO_STR[expr_value(sc.direct_dep)],
2128 _split_expr_info(sc.direct_dep, 2))
2131 def _defaults_info(sc): argument
2134 if not sc.defaults:
2138 if len(sc.defaults) > 1:
2142 for val, cond in sc.orig_defaults:
2144 if isinstance(sc, Symbol):
2288 def _name_and_val_str(sc): argument
2295 if isinstance(sc, Symbol) and not sc.is_constant and not _is_num(sc.name):
2296 if not sc.nodes:
2298 return "{}(undefined/n)".format(sc.name)
2300 return '{}(={})'.format(sc.name, sc.str_value)
2303 return standard_sc_expr_str(sc)