Lines Matching refs:token_
340 token_ = c; in Next()
344 token_ = kTokenEof; in Next()
474 token_ = kTokenStringConstant; in Next()
506 token_ = kTokenIdentifier; in Next()
560 token_ = dot_lvl ? kTokenIntegerConstant : kTokenFloatConstant; in Next()
576 bool Parser::Is(int t) const { return t == token_; } in Is()
579 return token_ == kTokenIdentifier && attribute_ == id; in IsIdent()
584 if (t != token_) { in Expect()
586 " instead got: " + TokenToStringId(token_)); in Expect()
638 if (token_ == kTokenIdentifier) { in ParseType()
678 } else if (token_ == '[') { in ParseType()
689 if (token_ == ':') { in ParseType()
691 if (token_ != kTokenIntegerConstant) { in ParseType()
802 if (token_ == '=') { in ParseField()
1168 (token_ == kTokenIdentifier || token_ == kTokenStringConstant)) { in ParseAnyValue()
1669 if (token_ == '[') { // backwards compat for 'legacy' ubyte buffers in ParseNestedFlatbuffer()
1812 return Error("cannot parse value starting with: " + TokenToStringId(token_)); in TokenError()
1877 FLATBUFFERS_ASSERT(*destmatch == false && dtoken == token_); in TryTypedValue()
1911 if (token_ == '+' || token_ == '-') { in ParseSingleValue()
1912 const char sign = static_cast<char>(token_); in ParseSingleValue()
1915 if (token_ != kTokenIdentifier) return Error("constant name expected"); in ParseSingleValue()
1920 const auto is_tok_ident = (token_ == kTokenIdentifier); in ParseSingleValue()
1921 const auto is_tok_string = (token_ == kTokenStringConstant); in ParseSingleValue()
1930 if (!match && ((dtoken) == token_) && ((check) || IsConstTrue(force))) \ in ParseSingleValue()
1937 const auto kTokenStringOrIdent = token_; in ParseSingleValue()
2005 if (!match && IsVector(e.type) && token_ == '[') { in ParseSingleValue()
2007 if (token_ != ']') { return Error("Expected `]` in vector default"); } in ParseSingleValue()
2019 msg += "Cannot assign token starting with '" + TokenToStringId(token_) + in ParseSingleValue()
2368 while (token_ != ']') NEXT(); in ParseEnum()
2530 while (token_ != '}') ECHECK(ParseField(*struct_def)); in ParseDecl()
2639 } while (token_ != '}'); in ParseService()
2671 if (token_ != ';') { in ParseNamespace()
2745 TokenToStringId(token_)); in ParseProtoDecl()
2771 while (token_ != '}') { in ParseProtoFields()
2921 if (token_ == '(') { in ParseProtoKey()
2924 while (token_ == '.' || token_ == kTokenIdentifier) NEXT(); in ParseProtoKey()
2940 if (token_ == '{') in ParseProtoCurliesOrIdent()
2942 else if (token_ == '}') in ParseProtoCurliesOrIdent()
3001 switch (token_) { in SkipAnyJsonValue()
3043 switch (token_) { in ParseFlexBufferValue()
3089 const auto sign = static_cast<char>(token_); in ParseFlexBufferValue()
3091 if (token_ != kTokenIdentifier) in ParseFlexBufferValue()
3244 if (token_ == '{') { ECHECK(DoParseJson()); } in ParseRoot()
3359 while (token_ != kTokenEof) { in DoParse()
3364 } else if (token_ == '{') { in DoParse()
3417 if (token_ != '{') { in DoParseJson()