Lines Matching defs:Property
73 class Property {
86 using Val = std::variant<const char *, lexer::TokenType, std::initializer_list<Property>, util::StringView,
90 Property(const char *key, const char *string) : key_(key), value_(string) {}
91 Property(const char *key, util::StringView str) : key_(key), value_(str) {}
92 Property(const char *key, bool boolean) : key_(key), value_(boolean) {}
93 Property(const char *key, char16_t c16) : key_(key), value_(c16) {}
94 Property(const char *key, lexer::Number number) : key_(key), value_(number) {}
95 Property(const char *key, lexer::TokenType token) : key_(key), value_(token) {}
96 Property(const char *key, std::initializer_list<Property> props) : key_(key), value_(props) {}
97 Property(const char *key, const ir::AstNode *node) : key_(key), value_(const_cast<ir::AstNode *>(node)) {}
99 Property(const char *key, Constant constant) : key_(key), value_(constant) {}
100 Property(const char *key, Nullish nullish) : key_(key)
105 value_ = Property::Constant::PROP_NULL;
109 Property(const char *key, const Optional &optional) : key_(key)
140 Property(const char *key, const ArenaVector<T> &array) : key_(key)
158 Property(const char *key, const ArenaVector<T> &array, const std::function<bool(AstNode *)> &filter) : key_(key)
194 void Add(std::initializer_list<Property> props);
195 void Add(const AstDumper::Property &prop);
218 } while (std::holds_alternative<Property::Ignore>((*it).Value()));
226 void Serialize(const AstDumper::Property &prop);
236 void SerializePropList(std::initializer_list<AstDumper::Property> props);
237 void SerializeConstant(Property::Constant constant);