From 478f4e7e918a5325175ec48505ee3f9ef1b4f7e8 Mon Sep 17 00:00:00 2001 From: Kyle Date: Fri, 27 Feb 2026 01:29:42 +0800 Subject: [PATCH] Add Graph+Debug support for Compute --- .../OpenAttributeGraphShims/Graph+Debug.swift | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Sources/OpenAttributeGraphShims/Graph+Debug.swift b/Sources/OpenAttributeGraphShims/Graph+Debug.swift index ce0ae5e..6ff803d 100644 --- a/Sources/OpenAttributeGraphShims/Graph+Debug.swift +++ b/Sources/OpenAttributeGraphShims/Graph+Debug.swift @@ -2,7 +2,23 @@ // Graph+Debug.swift // OpenAttributeGraphShims -#if canImport(Darwin) && !OPENATTRIBUTEGRAPH_COMPUTE // Compute's descriptionFormatDictionary API is not aligned with OAG yet. +#if canImport(Darwin) + +#if OPENATTRIBUTEGRAPH_COMPUTE +extension Graph { + public static var descriptionFormatDictionary: CFString { + "graph/dict" as CFString + } + + public static var descriptionFormatDot: CFString { + "graph/dot" as CFString + } + + public static var descriptionAllGraphs: CFString { + "all_graphs" as CFString + } +} +#endif import Foundation