diff --git a/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp b/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp --- a/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp +++ b/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp @@ -146,19 +146,19 @@ if (Avail.isDefault()) return None; - Object Availbility; - serializeObject(Availbility, "introducedVersion", + Object Availability; + serializeObject(Availability, "introducedVersion", serializeSemanticVersion(Avail.Introduced)); - serializeObject(Availbility, "deprecatedVersion", + serializeObject(Availability, "deprecatedVersion", serializeSemanticVersion(Avail.Deprecated)); - serializeObject(Availbility, "obsoletedVersion", + serializeObject(Availability, "obsoletedVersion", serializeSemanticVersion(Avail.Obsoleted)); if (Avail.isUnavailable()) - Availbility["isUnconditionallyUnavailable"] = true; + Availability["isUnconditionallyUnavailable"] = true; if (Avail.isUnconditionallyDeprecated()) - Availbility["isUnconditionallyDeprecated"] = true; + Availability["isUnconditionallyDeprecated"] = true; - return Availbility; + return Availability; } /// Get the language name string for interface language references. @@ -494,7 +494,7 @@ serializeObject( Obj, "location", serializeSourceLocation(Record.Location, /*IncludeFileURI=*/true)); - serializeObject(Obj, "availbility", + serializeObject(Obj, "availability", serializeAvailability(Record.Availability)); serializeObject(Obj, "docComment", serializeDocComment(Record.Comment)); serializeArray(Obj, "declarationFragments",