Lines Matching refs:sc

3289     def _set_type(self, sc, new_type):  argument
3293 if sc.orig_type and sc.orig_type is not new_type:
3295 .format(sc.name_and_loc, TYPE_TO_STR[new_type]))
3297 sc.orig_type = new_type
5854 sc = self.item
5856 if sc.__class__ is Symbol:
5863 lines = [t + sc.name]
5865 lines = ["choice " + sc.name if sc.name else "choice"]
5867 if sc.orig_type and not self.prompt: # sc.orig_type != UNKNOWN
5870 indent_add(TYPE_TO_STR[sc.orig_type])
5873 if sc.orig_type:
5874 prefix = TYPE_TO_STR[sc.orig_type]
5882 if sc.__class__ is Symbol:
5883 if sc.is_allnoconfig_y:
5886 if sc is sc.kconfig.defconfig_list:
5889 if sc.env_var is not None:
5890 indent_add('option env="{}"'.format(sc.env_var))
5892 if sc is sc.kconfig.modules:
5905 if sc.__class__ is Choice and sc.is_optional:
5908 if sc.__class__ is Symbol:
5915 if self.dep is not sc.kconfig.y:
6089 def standard_sc_expr_str(sc): argument
6096 if sc.__class__ is Symbol:
6097 if sc.is_constant and sc.name not in STR_TO_TRI:
6098 return '"{}"'.format(escape(sc.name))
6099 return sc.name
6101 return "<choice {}>".format(sc.name) if sc.name else "<choice>"
6330 def _visibility(sc): argument
6338 for node in sc.nodes:
6342 if sc.__class__ is Symbol and sc.choice:
6343 if sc.choice.orig_type is TRISTATE and \
6344 sc.orig_type is not TRISTATE and sc.choice.tri_value != 2:
6348 if sc.orig_type is TRISTATE and vis == 1 and sc.choice.tri_value == 2:
6354 if vis == 1 and sc.type is not TRISTATE:
6360 def _depend_on(sc, expr): argument
6368 _depend_on(sc, expr[1])
6372 _depend_on(sc, expr[2])
6376 expr._dependents.add(sc)
6473 def _locs(sc): argument
6477 if sc.nodes:
6480 for node in sc.nodes))