def contains_variable_assignment(self, name): return any( utils.value_contains_variable(item, "%s=" % name) for item in self.as_list())
def contains_variable_assignment(self, name): return any(utils.value_contains_variable(item, "%s=" % name) for item in self.as_list())
def contains_variable(self, name): return any( utils.value_contains_variable(item, name) for item in self.as_list())
def contains_variable(self, name): return any(utils.value_contains_variable(item, name) for item in self.as_list())
def contains_variable(self, name): return utils.value_contains_variable(self._item.name, name)
def contains_variable(self, name): return utils.value_contains_variable(self.value, name)
def contains_variable(self, name): vars_as_list = [] for var in self._items: vars_as_list += var.as_list() return any(utils.value_contains_variable(string, name) for string in vars_as_list)