SchemaIntrospector
A facade for building TypeGraph from a particular source (e.g. KSP or Serialization).
Architecture Pattern for Introspector Implementations:
Create a context class extending
BaseIntrospectionContext<TDecl, TType>Implement
toRef()orconvertToTypeRef()as main type conversion entry pointImplement handlers for: primitives, collections, enums, sealed, objects
Create introspector objects implementing
SchemaIntrospector<T>Introspectors instantiate context and call
toRef()/convertToTypeRef()Return TypeGraph(root, context.nodes)