void ExpressionMeta::_doAddDependencies(DepsTracker* deps) const {
    if (_metaType == MetaType::kTextScore) {
        deps->setNeedsMetadata(DepsTracker::MetadataType::TEXT_SCORE, true);

        // We do not add the dependencies for SEARCH_SCORE or SEARCH_HIGHLIGHTS because those values
        // are not stored in the collection (or in mongod at all).
    } else if (_metaType == MetaType::kGeoNearDist) {
        deps->setNeedsMetadata(DepsTracker::MetadataType::GEO_NEAR_DISTANCE, true);
    } else if (_metaType == MetaType::kGeoNearPoint) {
        deps->setNeedsMetadata(DepsTracker::MetadataType::GEO_NEAR_POINT, true);
    } else if (_metaType == MetaType::kRecordId) {
        // TODO: SERVER-42560 handle passing of metadata between PlanStage and DS layers.
    } else if (_metaType == MetaType::kIndexKey) {
        // TODO: SERVER-42560 handle passing of metadata between PlanStage and DS layers.
    } else if (_metaType == MetaType::kSortKey) {
        deps->setNeedsMetadata(DepsTracker::MetadataType::SORT_KEY, true);
    }
}
void ExpressionMeta::_doAddDependencies(DepsTracker* deps) const {
    if (_metaType == MetaType::kTextScore) {
        deps->setNeedsMetadata(DepsTracker::MetadataType::TEXT_SCORE, true);

         
         
    } else if (_metaType == MetaType::kGeoNearDist) {
        deps->setNeedsMetadata(DepsTracker::MetadataType::GEO_NEAR_DISTANCE, true);
    } else if (_metaType == MetaType::kGeoNearPoint) {
        deps->setNeedsMetadata(DepsTracker::MetadataType::GEO_NEAR_POINT, true);
    } else if (_metaType == MetaType::kRecordId) {
         
    } else if (_metaType == MetaType::kIndexKey) {
         
    } else if (_metaType == MetaType::kSortKey) {
        deps->setNeedsMetadata(DepsTracker::MetadataType::SORT_KEY, true);
    }
}