Lines Matching defs:Property
60 class Property {
73 std::variant<const char *, lexer::TokenType, std::initializer_list<Property>, util::StringView, bool,
76 Property(const char *key, const char *string) : key_(key), value_(string) {}
77 Property(const char *key, util::StringView str) : key_(key), value_(str) {}
78 Property(const char *key, bool boolean) : key_(key), value_(boolean) {}
79 Property(const char *key, double number) : key_(key), value_(number) {}
80 Property(const char *key, lexer::TokenType token) : key_(key), value_(token) {}
81 Property(const char *key, std::initializer_list<Property> props) : key_(key), value_(props) {}
82 Property(const char *key, const ir::AstNode *node) : key_(key), value_(const_cast<ir::AstNode *>(node)) {}
84 Property(const char *key, Constant constant) : key_(key), value_(constant) {}
85 Property(const char *key, Nullable nullable) : key_(key)
90 value_ = Property::Constant::PROP_NULL;
94 Property(const char *key, Optional optional) : key_(key)
116 Property(const char *key, const ArenaVector<T> &array) : key_(key)
153 void Add(std::initializer_list<Property> props);
154 void Add(const AstDumper::Property &prop);
177 } while (std::holds_alternative<Property::Ignore>((*it).Value()));
185 void Serialize(const AstDumper::Property &prop);
194 void SerializePropList(std::initializer_list<AstDumper::Property> props);
195 void SerializeConstant(Property::Constant constant);