Exemple #1
0
 def contains_variable_assignment(self, name):
     return any(
         utils.value_contains_variable(item, "%s=" % name)
         for item in self.as_list())
Exemple #2
0
 def contains_variable_assignment(self, name):
     return any(utils.value_contains_variable(item, "%s=" % name) for item in self.as_list())
Exemple #3
0
 def contains_variable(self, name):
     return any(
         utils.value_contains_variable(item, name)
         for item in self.as_list())
Exemple #4
0
 def contains_variable(self, name):
     return any(utils.value_contains_variable(item, name) for item in self.as_list())
Exemple #5
0
 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)
Exemple #8
0
 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)