@@ -379,7 +379,7 @@ class ResolveVisitor : public AstVisitorBase {
379379
380380 // Lookup message type by name to support WellKnownType creation.
381381 CEL_ASSIGN_OR_RETURN (
382- absl ::optional<StructTypeField> field_info,
382+ std ::optional<StructTypeField> field_info,
383383 env_->LookupStructField (resolved_name, field.name ()));
384384 if (!field_info.has_value ()) {
385385 ReportUndefinedField (field.id (), field.name (), resolved_name);
@@ -405,8 +405,8 @@ class ResolveVisitor : public AstVisitorBase {
405405 return absl::OkStatus ();
406406 }
407407
408- absl ::optional<Type> CheckFieldType (int64_t expr_id, const Type& operand_type,
409- absl::string_view field_name);
408+ std ::optional<Type> CheckFieldType (int64_t expr_id, const Type& operand_type,
409+ absl::string_view field_name);
410410
411411 void HandleOptSelect (const Expr& expr);
412412 void HandleBlockIndex (const Expr* expr);
@@ -919,7 +919,7 @@ void ResolveVisitor::ResolveFunctionOverloads(const Expr& expr,
919919 arg_types.push_back (GetDeducedType (&expr.call_expr ().args ()[i]));
920920 }
921921
922- absl ::optional<TypeInferenceContext::OverloadResolution> resolution =
922+ std ::optional<TypeInferenceContext::OverloadResolution> resolution =
923923 inference_context_->ResolveOverload (decl, arg_types, is_receiver);
924924
925925 if (!resolution.has_value ()) {
@@ -968,7 +968,7 @@ const VariableDecl* absl_nullable ResolveVisitor::LookupGlobalIdentifier(
968968 if (const VariableDecl* decl = env_->LookupVariable (name); decl != nullptr ) {
969969 return decl;
970970 }
971- absl::StatusOr<absl ::optional<VariableDecl>> constant =
971+ absl::StatusOr<std ::optional<VariableDecl>> constant =
972972 env_->LookupTypeConstant (arena_, name);
973973
974974 if (!constant.ok ()) {
@@ -1079,9 +1079,9 @@ void ResolveVisitor::ResolveQualifiedIdentifier(
10791079 }
10801080}
10811081
1082- absl ::optional<Type> ResolveVisitor::CheckFieldType (int64_t id,
1083- const Type& operand_type,
1084- absl::string_view field) {
1082+ std ::optional<Type> ResolveVisitor::CheckFieldType (int64_t id,
1083+ const Type& operand_type,
1084+ absl::string_view field) {
10851085 if (operand_type.kind () == TypeKind::kDyn ||
10861086 operand_type.kind () == TypeKind::kAny ) {
10871087 return DynType ();
@@ -1137,7 +1137,7 @@ void ResolveVisitor::ResolveSelectOperation(const Expr& expr,
11371137 const Expr& operand) {
11381138 const Type& operand_type = GetDeducedType (&operand);
11391139
1140- absl ::optional<Type> result_type;
1140+ std ::optional<Type> result_type;
11411141 int64_t id = expr.id ();
11421142 // Support short-hand optional chaining.
11431143 if (operand_type.IsOptional ()) {
@@ -1184,7 +1184,7 @@ void ResolveVisitor::HandleOptSelect(const Expr& expr) {
11841184 operand_type = operand_type.GetOptional ().GetParameter ();
11851185 }
11861186
1187- absl ::optional<Type> field_type = CheckFieldType (
1187+ std ::optional<Type> field_type = CheckFieldType (
11881188 expr.id (), operand_type, field->const_expr ().string_value ());
11891189 if (!field_type.has_value ()) {
11901190 types_[&expr] = ErrorType ();
0 commit comments