Lines Matching refs:sc
5252 sc = self.item
5254 if isinstance(sc, Symbol):
5257 + sc.name)
5259 lines.append("choice " + sc.name if sc.name else "choice")
5261 if sc.orig_type: # != UNKNOWN
5262 indent_add(TYPE_TO_STR[sc.orig_type])
5269 if isinstance(sc, Symbol):
5270 if sc.is_allnoconfig_y:
5273 if sc is sc.kconfig.defconfig_list:
5276 if sc.env_var is not None:
5277 indent_add('option env="{}"'.format(sc.env_var))
5279 if sc is sc.kconfig.modules:
5292 if isinstance(sc, Choice) and sc.is_optional:
5295 if isinstance(sc, Symbol):
5302 if self.dep is not sc.kconfig.y:
5451 def standard_sc_expr_str(sc): argument
5458 if isinstance(sc, Symbol):
5459 return '"{}"'.format(escape(sc.name)) if sc.is_constant else sc.name
5462 return "<choice {}>".format(sc.name) if sc.name else "<choice>"
5626 def _visibility(sc): argument
5634 for node in sc.nodes:
5638 if isinstance(sc, Symbol) and sc.choice:
5639 if sc.choice.orig_type is TRISTATE and \
5640 sc.orig_type is not TRISTATE and sc.choice.tri_value != 2:
5644 if sc.orig_type is TRISTATE and vis == 1 and sc.choice.tri_value == 2:
5650 if vis == 1 and sc.type is not TRISTATE:
5655 def _make_depend_on(sc, expr): argument
5663 _make_depend_on(sc, expr[1])
5667 _make_depend_on(sc, expr[2])
5671 expr._dependents.add(sc)
5749 def _name_and_loc(sc): argument
5754 name = standard_sc_expr_str(sc)
5756 if not sc.nodes:
5762 for node in sc.nodes))