Lines Matching refs:attribute_

218   return TokenToString(t) + (t == kTokenIdentifier ? ": " + attribute_ : "");  in TokenToStringId()
250 attribute_.clear(); in Next()
278 case 'n': attribute_ += '\n'; cursor_++; break; in Next()
279 case 't': attribute_ += '\t'; cursor_++; break; in Next()
280 case 'r': attribute_ += '\r'; cursor_++; break; in Next()
281 case 'b': attribute_ += '\b'; cursor_++; break; in Next()
282 case 'f': attribute_ += '\f'; cursor_++; break; in Next()
283 case '\"': attribute_ += '\"'; cursor_++; break; in Next()
284 case '\'': attribute_ += '\''; cursor_++; break; in Next()
285 case '\\': attribute_ += '\\'; cursor_++; break; in Next()
286 case '/': attribute_ += '/'; cursor_++; break; in Next()
291 attribute_ += static_cast<char>(val); in Next()
313 ToUTF8(code_point, &attribute_); in Next()
321 ToUTF8(static_cast<int>(val), &attribute_); in Next()
332 attribute_ += *cursor_++; in Next()
340 if (!opts.allow_non_utf8 && !ValidateUTF8(attribute_)) { in Next()
376 attribute_.append(start, cursor_); in Next()
380 if (attribute_ == IDLTYPE) { \ in Next()
388 if (attribute_ == "true" || attribute_ == "false") { in Next()
389 attribute_ = NumToString(attribute_ == "true"); in Next()
394 if (attribute_ == "table") { in Next()
398 if (attribute_ == "struct") { in Next()
402 if (attribute_ == "enum") { in Next()
406 if (attribute_ == "union") { in Next()
410 if (attribute_ == "namespace") { in Next()
414 if (attribute_ == "root_type") { in Next()
418 if (attribute_ == "include") { in Next()
422 if (attribute_ == "attribute") { in Next()
426 if (attribute_ == "file_identifier") { in Next()
430 if (attribute_ == "file_extension") { in Next()
434 if (attribute_ == "null") { in Next()
438 if (attribute_ == "rpc_service") { in Next()
442 if (attribute_ == "native_include") { in Next()
455 attribute_.append(&c, &c + 1); in Next()
461 attribute_.append(start + 2, cursor_); in Next()
462 attribute_ = NumToString(static_cast<int64_t>( in Next()
463 StringToUInt(attribute_.c_str(), nullptr, 16))); in Next()
484 attribute_.append(start, cursor_); in Next()
514 *id += attribute_; in ParseNamespacing()
515 if (last) *last = attribute_; in ParseNamespacing()
533 std::string id = attribute_; in ParseTypeIdent()
600 std::string name = attribute_; in ParseField()
767 auto next_name = attribute_; in ParseAnyValue()
794 auto s = attribute_; in ParseAnyValue()
839 std::string name = attribute_; in ParseTable()
997 auto name = attribute_; in ParseMetaData()
1020 e.constant = attribute_; in TryTypedValue()
1039 const char *next = attribute_.c_str(); in ParseEnumFromString()
1083 uint32_t hashed_value = hash(attribute_.c_str()); in ParseHash()
1090 uint64_t hashed_value = hash(attribute_.c_str()); in ParseHash()
1104 auto functionname = attribute_; in ParseSingleValue()
1128 if (IsIdentifierStart(attribute_[0])) { // Enum value. in ParseSingleValue()
1136 e.constant = NumToString(StringToInt(attribute_.c_str(), &end)); in ParseSingleValue()
1138 return Error("invalid integer: " + attribute_); in ParseSingleValue()
1141 e.constant = NumToString(strtod(attribute_.c_str(), &end)); in ParseSingleValue()
1143 return Error("invalid float: " + attribute_); in ParseSingleValue()
1230 std::string enum_name = attribute_; in ParseEnum()
1268 if (opts.proto_mode && attribute_ == "option") { in ParseEnum()
1271 auto value_name = attribute_; in ParseEnum()
1297 ev.value = StringToInt(attribute_.c_str()); in ParseEnum()
1374 std::string name = attribute_; in ParseDecl()
1440 auto service_name = attribute_; in ParseService()
1453 auto rpc_name = attribute_; in ParseService()
1509 ns->components.push_back(attribute_); in ParseNamespace()
1527 bool isextend = attribute_ == "extend"; in ParseProtoDecl()
1528 if (attribute_ == "package") { in ParseProtoDecl()
1531 } else if (attribute_ == "message" || isextend) { in ParseProtoDecl()
1537 auto id = attribute_; in ParseProtoDecl()
1544 std::string name = attribute_; in ParseProtoDecl()
1565 } else if (attribute_ == "enum") { in ParseProtoDecl()
1579 } else if (attribute_ == "syntax") { // Skip these. in ParseProtoDecl()
1584 } else if (attribute_ == "option") { // Skip these. in ParseProtoDecl()
1587 } else if (attribute_ == "service") { // Skip these. in ParseProtoDecl()
1602 if (attribute_ == "message" || attribute_ == "extend" || in ParseProtoFields()
1603 attribute_ == "enum") { in ParseProtoFields()
1606 } else if (attribute_ == "extensions") { // Skip these. in ParseProtoFields()
1614 } else if (attribute_ == "option") { // Skip these. in ParseProtoFields()
1617 } else if (attribute_ == "reserved") { // Skip these. in ParseProtoFields()
1629 if (attribute_ == "optional") { in ParseProtoFields()
1632 } else if (attribute_ == "required") { in ParseProtoFields()
1635 } else if (attribute_ == "repeated") { in ParseProtoFields()
1638 } else if (attribute_ == "oneof") { in ParseProtoFields()
1647 if (attribute_ == "group" || oneof) { in ParseProtoFields()
1660 std::string name = attribute_; in ParseProtoFields()
1689 auto key = attribute_; in ParseProtoFields()
1692 auto val = attribute_; in ParseProtoFields()
1770 if (attribute_ == tl->proto_type) { in ParseTypeFromProtoType()
1881 (attribute_ == "option" || attribute_ == "syntax" || in DoParse()
1882 attribute_ == "package")) { in DoParse()
1886 native_included_files_.emplace_back(attribute_); in DoParse()
1890 attribute_ == "import" && in DoParse()
1893 if (opts.proto_mode && attribute_ == "public") NEXT(); in DoParse()
1894 auto name = attribute_; in DoParse()
1951 auto root_type = attribute_; in DoParse()
1961 file_identifier_ = attribute_; in DoParse()
1971 file_extension_ = attribute_; in DoParse()
1978 auto name = attribute_; in DoParse()