Lines Matching refs:choice

1261                 for choice in self.unique_choices:
1262 choice._was_set = False
1297 if sym.choice and val != "n":
1302 prev_mode = sym.choice.user_value
1311 sym.choice.set_value(val)
1364 for choice in self.unique_choices:
1365 if not choice._was_set:
1366 choice.unset_value()
1709 if not sym.choice and \
1721 if sym.choice and \
1722 not sym.choice.is_optional and \
1723 sym.choice._selection_from_defaults() is sym and \
2003 for choice in self.unique_choices:
2004 choice.unset_value()
3053 choice = Choice()
3054 choice.direct_dep = self.n
3058 choice = self.named_choices.get(name)
3059 if not choice:
3060 choice = Choice()
3061 choice.name = name
3062 choice.direct_dep = self.n
3063 self.named_choices[name] = choice
3065 self.choices.append(choice)
3068 node.kconfig = choice.kconfig = self
3069 node.item = choice
3077 choice.nodes.append(node)
3515 for choice in self.unique_choices:
3519 for node in choice.nodes:
3521 depend_on(choice, node.prompt[1])
3524 for _, cond in choice.defaults:
3525 depend_on(choice, cond)
3537 for choice in self.unique_choices:
3538 for sym in choice.syms:
3539 sym._dependents.add(choice)
3548 for choice in self.unique_choices:
3549 choice._invalidate()
3631 choice = node.item
3632 choice.direct_dep = self._make_or(choice.direct_dep, node.dep)
3633 choice.defaults += node.defaults
3831 for choice in self.unique_choices:
3832 if choice.orig_type not in _BOOL_TRISTATE:
3834 .format(choice.name_and_loc,
3835 TYPE_TO_STR[choice.orig_type]))
3837 for node in choice.nodes:
3841 self._warn(choice.name_and_loc + " defined without a prompt")
3843 for default, _ in choice.defaults:
3847 .format(choice.name_and_loc, expr_str(default)))
3849 if default.choice is not choice:
3853 choice.name_and_loc))
3855 for sym in choice.syms:
3868 if node.parent.item is choice:
4279 (self.choice and self.choice.tri_value == 2 or
4453 if not self.choice:
4498 val = 2 if self.choice.selection is self else 0
4608 if value == self.user_value and not self.choice:
4634 if self.choice and value == 2:
4639 self.choice.user_selection = self
4640 self.choice._was_set = True
4641 self.choice._rec_invalidate()
4719 if self.choice:
4798 self.choice = \
4828 if self.choice:
4928 if not self.choice:
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:
6536 choice = node.item
6541 cur.item.choice = choice
6542 choice.syms.append(cur.item)
6547 if not choice.orig_type:
6548 for item in choice.syms:
6550 choice.orig_type = item.orig_type
6554 for sym in choice.syms:
6556 sym.orig_type = choice.orig_type
6612 if sym.choice and not ignore_choice:
6613 loop = _check_dep_loop_choice(sym.choice, sym)
6634 def _check_dep_loop_choice(choice, skip): argument
6635 if not choice._visited:
6638 choice._visited = 1
6643 for sym in choice.syms:
6650 return _found_dep_loop(loop, choice)
6653 choice._visited = 2
6658 if choice._visited == 2:
6665 return (choice,)
6684 if item.__class__ is Symbol and item.choice: