Lines Matching refs:sc

1607     def _get_sym_or_choice_str(self, sc):  argument
1619 user_val_str = "(no user value)" if sc.user_val is None else \
1620 s(sc.user_val)
1623 if not sc.prompts:
1627 for prompt, cond_expr in sc.orig_prompts:
1637 if not sc.def_locations:
1641 (filename, linenr) in sc.def_locations])
1645 self._expr_val_str(sc.deps_from_containing,
1652 if isinstance(sc, Symbol):
1654 if isinstance(sc, Symbol):
1655 if not sc.ranges:
1659 for l, u, cond_expr in sc.ranges:
1670 if not sc.def_exprs:
1674 for val_expr, cond_expr in sc.orig_def_exprs:
1676 sc.type == STRING)
1683 if not sc.orig_selects:
1687 for target, cond_expr in sc.orig_selects:
1697 ("(no name)" if sc.name is None else sc.name),
1698 "Type : " + TYPENAME[sc.type],
1699 "Value : " + s(sc.get_value()),
1701 "Visibility : " + s(_get_visibility(sc)),
1702 "Is choice item : " + BOOL_STR[sc.is_choice_sym],
1703 "Is defined : " + BOOL_STR[sc.is_defined_],
1704 "Is from env. : " + BOOL_STR[sc.is_from_env],
1705 "Is special : " + BOOL_STR[sc.is_special_] + "\n")
1706 if sc.ranges:
1715 " (no reverse dependencies)" if sc.rev_dep == "n"
1716 else " " + self._expr_val_str(sc.rev_dep),
1729 sel = sc.get_selection()
1733 if not sc.def_exprs:
1737 for sym, cond_expr in sc.orig_def_exprs:
1746 names = [sym.name for sym in sc.actual_symbols]
1751 ("(no name)" if sc.name is None else sc.name),
1752 "Type : " + TYPENAME[sc.type],
1755 "Mode : " + s(sc.get_mode()),
1756 "Visibility : " + s(_get_visibility(sc)),
1757 "Optional : " + BOOL_STR[sc.optional],
3169 def _get_visibility(sc): argument
3174 if sc.cached_visibility is None:
3176 for _, cond_expr in sc.prompts:
3177 vis = sc.config._eval_max(vis, cond_expr)
3179 if isinstance(sc, Symbol) and sc.is_choice_sym:
3180 vis = sc.config._eval_min(vis, _get_visibility(sc.parent))
3183 if vis == "m" and sc.type != TRISTATE:
3186 sc.cached_visibility = vis
3188 return sc.cached_visibility