clarify comment

pull/10586/head
Joshua Humphries 2 years ago committed by GitHub
parent 1eb29b8257
commit e293b5cc43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/google/protobuf/compiler/parser.cc

@ -1730,7 +1730,8 @@ bool Parser::ParseReserved(DescriptorProto* message,
}
bool Parser::ParseReservedName(std::string* name, const char* error_message) {
// capture position of token
// Capture the position of the token, in case we have to report an
// error after it is consumed.
int line = input_->current().line;
int col = input_->current().column;
DO(ConsumeString(name, error_message));

Loading…
Cancel
Save