Lines Matching refs:sc
3277 def _set_type(self, sc, new_type): argument
3281 if sc.orig_type and sc.orig_type is not new_type:
3283 .format(sc.name_and_loc, TYPE_TO_STR[new_type]))
3285 sc.orig_type = new_type
5815 sc = self.item
5817 if sc.__class__ is Symbol:
5819 + sc.name]
5821 lines = ["choice " + sc.name if sc.name else "choice"]
5823 if sc.orig_type and not self.prompt: # sc.orig_type != UNKNOWN
5826 indent_add(TYPE_TO_STR[sc.orig_type])
5829 if sc.orig_type:
5830 prefix = TYPE_TO_STR[sc.orig_type]
5838 if sc.__class__ is Symbol:
5839 if sc.is_allnoconfig_y:
5842 if sc is sc.kconfig.defconfig_list:
5845 if sc.env_var is not None:
5846 indent_add('option env="{}"'.format(sc.env_var))
5848 if sc is sc.kconfig.modules:
5861 if sc.__class__ is Choice and sc.is_optional:
5864 if sc.__class__ is Symbol:
5871 if self.dep is not sc.kconfig.y:
6045 def standard_sc_expr_str(sc): argument
6052 if sc.__class__ is Symbol:
6053 if sc.is_constant and sc.name not in STR_TO_TRI:
6054 return '"{}"'.format(escape(sc.name))
6055 return sc.name
6057 return "<choice {}>".format(sc.name) if sc.name else "<choice>"
6286 def _visibility(sc): argument
6294 for node in sc.nodes:
6298 if sc.__class__ is Symbol and sc.choice:
6299 if sc.choice.orig_type is TRISTATE and \
6300 sc.orig_type is not TRISTATE and sc.choice.tri_value != 2:
6304 if sc.orig_type is TRISTATE and vis == 1 and sc.choice.tri_value == 2:
6310 if vis == 1 and sc.type is not TRISTATE:
6316 def _depend_on(sc, expr): argument
6324 _depend_on(sc, expr[1])
6328 _depend_on(sc, expr[2])
6332 expr._dependents.add(sc)
6424 def _locs(sc): argument
6428 if sc.nodes:
6431 for node in sc.nodes))