Lines Matching refs:choice
1263 for choice in self.unique_choices:
1264 choice._was_set = False
1299 if sym.choice and val != "n":
1304 prev_mode = sym.choice.user_value
1313 sym.choice.set_value(val)
1366 for choice in self.unique_choices:
1367 if not choice._was_set:
1368 choice.unset_value()
1710 if not sym.choice and \
1722 if sym.choice and \
1723 not sym.choice.is_optional and \
1724 sym.choice._selection_from_defaults() is sym and \
2004 for choice in self.unique_choices:
2005 choice.unset_value()
3065 choice = Choice()
3066 choice.direct_dep = self.n
3070 choice = self.named_choices.get(name)
3071 if not choice:
3072 choice = Choice()
3073 choice.name = name
3074 choice.direct_dep = self.n
3075 self.named_choices[name] = choice
3077 self.choices.append(choice)
3080 node.kconfig = choice.kconfig = self
3081 node.item = choice
3089 choice.nodes.append(node)
3527 for choice in self.unique_choices:
3531 for node in choice.nodes:
3533 depend_on(choice, node.prompt[1])
3536 for _, cond in choice.defaults:
3537 depend_on(choice, cond)
3549 for choice in self.unique_choices:
3550 for sym in choice.syms:
3551 sym._dependents.add(choice)
3560 for choice in self.unique_choices:
3561 choice._invalidate()
3660 choice = node.item
3661 choice.direct_dep = self._make_or(choice.direct_dep, node.dep)
3662 choice.defaults += node.defaults
3868 for choice in self.unique_choices:
3869 if choice.orig_type not in _BOOL_TRISTATE:
3871 .format(choice.name_and_loc,
3872 TYPE_TO_STR[choice.orig_type]))
3874 for node in choice.nodes:
3878 self._warn(choice.name_and_loc + " defined without a prompt")
3880 for default, _ in choice.defaults:
3884 .format(choice.name_and_loc, expr_str(default)))
3886 if default.choice is not choice:
3890 choice.name_and_loc))
3892 for sym in choice.syms:
3905 if node.parent.item is choice:
4317 (self.choice and self.choice.tri_value == 2 or
4491 if not self.choice:
4536 val = 2 if self.choice.selection is self else 0
4646 if value == self.user_value and not self.choice:
4672 if self.choice and value == 2:
4677 self.choice.user_selection = self
4678 self.choice._was_set = True
4679 self.choice._rec_invalidate()
4757 if self.choice:
4836 self.choice = \
4866 if self.choice:
4966 if not self.choice:
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:
6585 choice = node.item
6590 cur.item.choice = choice
6591 choice.syms.append(cur.item)
6596 if not choice.orig_type:
6597 for item in choice.syms:
6599 choice.orig_type = item.orig_type
6603 for sym in choice.syms:
6605 sym.orig_type = choice.orig_type
6661 if sym.choice and not ignore_choice:
6662 loop = _check_dep_loop_choice(sym.choice, sym)
6683 def _check_dep_loop_choice(choice, skip): argument
6684 if not choice._visited:
6687 choice._visited = 1
6692 for sym in choice.syms:
6699 return _found_dep_loop(loop, choice)
6702 choice._visited = 2
6707 if choice._visited == 2:
6714 return (choice,)
6733 if item.__class__ is Symbol and item.choice: