Understand known vs unknown types
masterSourcery distinguishes between types based on whether they were included in the scan targets:
- Known Types: Types defined within the scanned paths or targets. Sourcery provides a full
Typeobject for these, containing details about protocols, properties, methods, inheritance, etc. - Unknown Types: Types defined outside of scanned sources. For these, Sourcery only provides a
typeNameproperty; thetypeproperty will benil.
Note on Extensions: If you define an extension for an unknown type within a scanned source, Sourcery creates a Type object with kind set to extension. This object only contains the declarations defined within that specific extension.