Home
last modified time | relevance | path

Searched refs:new_scope (Results 1 – 1 of 1) sorted by relevance

/misc/config_tools/board_inspector/acpiparser/aml/
A Dcontext.py220 def change_scope(self, new_scope): argument
222 if isinstance(new_scope, list):
223 self.__current_scope = new_scope
224 elif isinstance(new_scope, str):
225 if new_scope.startswith("\\"):
226 self.__current_scope = [i for i in new_scope[1:].split(".") if i]
227 elif new_scope.startswith("^"):
228 parent_count = new_scope.count("^")
230 … self.__current_scope = self.__current_scope[:-parent_count].extend(new_scope.split("."))
232 self.__current_scope.extend(new_scope.split("."))
[all …]

Completed in 3 milliseconds