Lines Matching refs:value
49 def __init__(self, name, value): argument
52 self.value = value
68 for key, value in attrs.iteritems():
70 new_attrs[key] = value
72 item = _Enum(key, value)
404 def __init__(self, value): argument
406 self.value = value
411 return repr(self.value)
416 return self.value
423 return self.value == rhs.value
428 return hash(self.value)
442 def __init__(self, value): argument
444 self.value = value
449 return repr(self.value)
454 return bool(self.value)
461 return self.value
466 return self.value == rhs.value
471 return hash(self.value)
482 def __init__(self, name, value): argument
486 self.value = value
496 if self.value is None:
498 return self.value.eval(env)
513 attrs = ', '.join(key + ': ' + repr(value)
514 for key, value in self.items())
520 return Dict((key, value.eval(env)) for key, value in self.items())
608 def define_var(self, name, value): argument
610 self.var_defs.append((name, value))
611 self.vars[name] = value
618 value = self.parse_expression()
620 value = Concat(self.create_var_ref(ident), value)
621 self.define_var(ident, value)
737 value = self.parse_expression()
738 result[key] = value
950 for key, value in default_attrs.items():
952 attrs[key] = value
955 if isinstance(value, Dict) and isinstance(attrs_value, Dict):
956 attrs[key] = evaluate_default(attrs_value, value)