• Home
  • Raw
  • Download

Lines Matching refs:ECHECK

59 #define ECHECK(call)           \  macro
67 #define NEXT() ECHECK(Next())
68 #define EXPECT(tok) ECHECK(Expect(tok))
334 ECHECK(ParseHexNum(2, &val)); in Next()
341 ECHECK(ParseHexNum(4, &val)); in Next()
533 ECHECK(ParseNamespacing(&id, nullptr)); in ParseTypeIdent()
585 ECHECK(ParseTypeIdent(type)); in ParseType()
590 ECHECK(Recurse([&]() { return ParseType(subtype); })); in ParseType()
639 ECHECK(ParseType(type)); in ParseField()
648 ECHECK(AddField(struct_def, name + UnionTypeFieldSuffix(), in ParseField()
662 ECHECK(AddField(struct_def, name + UnionTypeFieldSuffix(), union_vector, in ParseField()
667 ECHECK(AddField(struct_def, name, type, &field)); in ParseField()
675 ECHECK(ParseSingleValue(&field->name, field->value, true)); in ParseField()
710 ECHECK(ParseMetaData(&field->attributes)); in ParseField()
871 ECHECK(SkipAnyJsonValue()); // The table. in ParseAnyValue()
872 ECHECK(ParseComma()); in ParseAnyValue()
884 ECHECK(ParseAnyValue(type_val, type_field, 0, nullptr)); in ParseAnyValue()
890 ECHECK(atot(constant.c_str(), *this, &enum_idx)); in ParseAnyValue()
894 ECHECK(ParseTable(*enum_val->union_type.struct_def, &val.constant, in ParseAnyValue()
903 ECHECK(ParseString(val)); in ParseAnyValue()
910 ECHECK(ParseTable(*val.type.struct_def, &val.constant, nullptr)); in ParseAnyValue()
913 ECHECK(ParseString(val)); in ParseAnyValue()
918 ECHECK(ParseVector(val.type.VectorType(), &off)); in ParseAnyValue()
928 ECHECK(ParseHash(val, field)); in ParseAnyValue()
930 ECHECK(ParseSingleValue(field ? &field->name : nullptr, val, false)); in ParseAnyValue()
935 ECHECK(ParseSingleValue(field ? &field->name : nullptr, val, false)); in ParseAnyValue()
980 ECHECK(body(name, fieldn, struct_def)); in ParseTableDelimiters()
982 ECHECK(ParseComma()); in ParseTableDelimiters()
999 ECHECK(Expect(kTokenStringConstant)); in ParseTable()
1007 ECHECK(SkipAnyJsonValue()); in ParseTable()
1011 ECHECK(Next()); // Ignore this field. in ParseTable()
1017 ECHECK(ParseFlexBufferValue(&builder)); in ParseTable()
1025 ECHECK( in ParseTable()
1028 ECHECK(Recurse([&]() { in ParseTable()
1050 ECHECK(err); in ParseTable()
1095 ECHECK(atot(field_value.constant.c_str(), *this, &val)); \ in ParseTable()
1099 ECHECK(atot(field_value.constant.c_str(), *this, &val)); \ in ParseTable()
1100 ECHECK(atot(field->value.constant.c_str(), *this, &valdef)); \ in ParseTable()
1114 ECHECK(atot(field_value.constant.c_str(), *this, &val)); \ in ParseTable()
1151 ECHECK(body(count)); in ParseVectorDelimiters()
1154 ECHECK(ParseComma()); in ParseVectorDelimiters()
1165 ECHECK(Recurse([&]() { return ParseAnyValue(val, nullptr, 0, nullptr); })); in ParseVector()
1169 ECHECK(err); in ParseVector()
1184 ECHECK(atot(val.constant.c_str(), *this, &elem)); \ in ParseVector()
1204 ECHECK(ParseAnyValue(val, field, fieldn, parent_struct_def)); in ParseNestedFlatbuffer()
1207 ECHECK(SkipAnyJsonValue()); in ParseNestedFlatbuffer()
1227 ECHECK(Error(nested_parser.error_)); in ParseNestedFlatbuffer()
1256 ECHECK(ParseSingleValue(&name, *e, true)); in ParseMetaData()
1410 ECHECK(Recurse([&]() { return ParseSingleValue(name, e, false); })); in ParseSingleValue()
1414 ECHECK(atot(e.constant.c_str(), *this, &x)); in ParseSingleValue()
1443 ECHECK(TryTypedValue(name, dtoken, check, e, req, &match)) in ParseSingleValue()
1477 ECHECK(ParseEnumFromString(e.type, &val)); in ParseSingleValue()
1524 ECHECK(atot(e.constant.c_str(), *this, &val)); \ in ParseSingleValue()
1595 ECHECK(StartEnum(enum_name, is_union, &enum_def)); in ParseEnum()
1608 ECHECK(ParseType(enum_def->underlying_type)); in ParseEnum()
1615 ECHECK(ParseMetaData(&enum_def->attributes)); in ParseEnum()
1621 ECHECK(ParseProtoOption()); in ParseEnum()
1628 ECHECK(ParseNamespacing(&full_name, &value_name)); in ParseEnum()
1645 ECHECK(ParseType(ev.union_type)); in ParseEnum()
1663 ECHECK(atot(attribute_.c_str(), *this, &ev.value)); in ParseEnum()
1807 ECHECK(StartStruct(name, &struct_def)); in ParseDecl()
1810 ECHECK(ParseMetaData(&struct_def->attributes)); in ParseDecl()
1814 while (token_ != '}') ECHECK(ParseField(*struct_def)); in ParseDecl()
1857 ECHECK( in ParseDecl()
1859 ECHECK(CheckClash(fields, struct_def, "Type", BASE_TYPE_UNION)); in ParseDecl()
1860 ECHECK(CheckClash(fields, struct_def, "_length", BASE_TYPE_VECTOR)); in ParseDecl()
1861 ECHECK(CheckClash(fields, struct_def, "Length", BASE_TYPE_VECTOR)); in ParseDecl()
1862 ECHECK(CheckClash(fields, struct_def, "_byte_vector", BASE_TYPE_STRING)); in ParseDecl()
1863 ECHECK(CheckClash(fields, struct_def, "ByteVector", BASE_TYPE_STRING)); in ParseDecl()
1883 ECHECK(ParseMetaData(&service_def.attributes)); in ParseService()
1891 ECHECK(ParseTypeIdent(reqtype)); in ParseService()
1894 ECHECK(ParseTypeIdent(resptype)); in ParseService()
1905 ECHECK(ParseMetaData(&rpc.attributes)); in ParseService()
1964 ECHECK(ParseNamespace()); in ParseProtoDecl()
1974 ECHECK(ParseNamespacing(&id, nullptr)); in ParseProtoDecl()
1981 ECHECK(StartStruct(name, &struct_def)); in ParseProtoDecl()
1993 ECHECK(ParseProtoFields(struct_def, isextend, false)); in ParseProtoDecl()
1999 ECHECK(ParseEnum(false, &enum_def)); in ParseProtoDecl()
2018 ECHECK(ParseProtoOption()); in ParseProtoDecl()
2023 ECHECK(ParseProtoCurliesOrIdent()); in ParseProtoDecl()
2055 ECHECK(ParseProtoDecl()); in ParseProtoFields()
2065 ECHECK(ParseProtoOption()); in ParseProtoFields()
2101 ECHECK(StartEnum(name, true, &oneof_union)); in ParseProtoFields()
2105 ECHECK(StartStruct(name, &anonymous_struct)); in ParseProtoFields()
2109 ECHECK(ParseTypeFromProtoType(&type)); in ParseProtoFields()
2138 if (!field) ECHECK(AddField(*struct_def, name, type, &field)); in ParseProtoFields()
2146 ECHECK(ParseProtoKey()); in ParseProtoFields()
2149 ECHECK(ParseProtoCurliesOrIdent()); in ParseProtoFields()
2164 ECHECK(ParseProtoFields(anonymous_struct, false, oneof)); in ParseProtoFields()
2170 ECHECK(ParseProtoFields(&oneof_struct, false, oneof)); in ParseProtoFields()
2230 ECHECK(ParseProtoKey()); in ParseProtoOption()
2232 ECHECK(ParseProtoCurliesOrIdent()); in ParseProtoOption()
2269 ECHECK(ParseTypeIdent(*type)); in ParseTypeFromProtoType()
2281 ECHECK(Recurse([&]() { return SkipAnyJsonValue(); })); in SkipAnyJsonValue()
2314 ECHECK(ParseFlexBufferValue(builder)); in ParseFlexBufferValue()
2318 ECHECK(err); in ParseFlexBufferValue()
2325 ECHECK(ParseVectorDelimiters(count, [&](size_t &) -> CheckedError { in ParseFlexBufferValue()
2381 ECHECK(SkipByteOrderMark()); in StartParseFile()
2389 ECHECK(DoParse(source, include_paths, source_filename, nullptr)); in ParseRoot()
2489 ECHECK(StartParseFile(source, source_filename)); in DoParse()
2496 ECHECK(ParseProtoDecl()); in DoParse()
2523 ECHECK(DoParse(contents.c_str(), include_paths, filepath.c_str(), in DoParse()
2553 ECHECK(ParseProtoDecl()); in DoParse()
2555 ECHECK(ParseNamespace()); in DoParse()
2563 ECHECK(ParseTable(*root_struct_def_, nullptr, &toff)); in DoParse()
2577 ECHECK(ParseEnum(false, nullptr)); in DoParse()
2579 ECHECK(ParseEnum(true, nullptr)); in DoParse()
2584 ECHECK(ParseNamespacing(&root_type, nullptr)); in DoParse()
2619 ECHECK(ParseService()); in DoParse()
2621 ECHECK(ParseDecl()); in DoParse()