Home | History | Annotate | Download | only in ast

Lines Matching defs:type_

164     return type_ == STRING;
167 bool IsSymbol() const { return type_ == SYMBOL; }
172 return type_ == NUMBER_WITH_DOT || type_ == SMI_WITH_DOT;
176 CHECK_EQ(STRING, type_);
181 CHECK_EQ(SYMBOL, type_);
211 return type_ == STRING && string_ == string;
218 bool IsSmi() const { return type_ == SMI || type_ == SMI_WITH_DOT; }
220 return type_ == NUMBER || type_ == NUMBER_WITH_DOT;
222 bool IsFalse() const { return type_ == BOOLEAN && !bool_; }
223 bool IsTrue() const { return type_ == BOOLEAN && bool_; }
224 bool IsUndefined() const { return type_ == UNDEFINED; }
225 bool IsTheHole() const { return type_ == THE_HOLE; }
226 bool IsNull() const { return type_ == NULL_TYPE; }
232 if (type_ == STRING) {
258 explicit AstValue(const AstRawString* s) : type_(STRING), next_(nullptr) {
262 explicit AstValue(AstSymbol symbol) : type_(SYMBOL), next_(nullptr) {
269 type_ = with_dot ? SMI_WITH_DOT : SMI;
272 type_ = with_dot ? NUMBER_WITH_DOT : NUMBER;
277 AstValue(Type t, int i) : type_(t), next_(nullptr) {
278 DCHECK(type_ == SMI);
282 explicit AstValue(bool b) : type_(BOOLEAN), next_(nullptr) { bool_ = b; }
284 explicit AstValue(Type t) : type_(t), next_(nullptr) {
288 Type type_;