Choice constructor -- not intended to be called directly by Kconfiglib clients.
(self)
| 5412 | # |
| 5413 | |
| 5414 | def __init__(self): |
| 5415 | """ |
| 5416 | Choice constructor -- not intended to be called directly by Kconfiglib |
| 5417 | clients. |
| 5418 | """ |
| 5419 | # These attributes are always set on the instance from outside and |
| 5420 | # don't need defaults: |
| 5421 | # direct_dep |
| 5422 | # kconfig |
| 5423 | |
| 5424 | # - UNKNOWN == 0 |
| 5425 | # - _visited is used during dep. loop detection |
| 5426 | self.orig_type = self._visited = 0 |
| 5427 | |
| 5428 | self.nodes = [] |
| 5429 | |
| 5430 | self.syms = [] |
| 5431 | self.defaults = [] |
| 5432 | |
| 5433 | self.name = \ |
| 5434 | self.user_value = self.user_selection = \ |
| 5435 | self._cached_vis = self._cached_assignable = None |
| 5436 | |
| 5437 | self._cached_selection = _NO_CACHED_SELECTION |
| 5438 | |
| 5439 | # is_constant is checked by _depend_on(). Just set it to avoid having |
| 5440 | # to special-case choices. |
| 5441 | self.is_constant = self.is_optional = False |
| 5442 | |
| 5443 | # See Kconfig._build_dep() |
| 5444 | self._dependents = set() |
| 5445 | |
| 5446 | def _assignable(self): |
| 5447 | # Worker function for the 'assignable' attribute |