ConverterShape
Which directions a converter provides, and any declared @UnsupportedDirection reasons.
A direction is PROVIDED iff its TOTAL method is declared AND not annotated @UnsupportedDirection — the annotation wins, because KSP cannot inspect function bodies (documented contract: the stub body is = unsupported()). An OrNull variant never provides a direction on its own: a hard landing site would call the throwing total at runtime, so an OrNull-only override is a guided compile error at resolution.
Constructors
Properties
True when the convertFromOrNull variant is declared.
True when the total convertFrom is declared.
True when the convertToOrNull variant is declared.
True when the total convertTo is declared.
True when an OrNull variant carries a misplaced @UnsupportedDirection.
Name of the OrNull variant carrying a misplaced @UnsupportedDirection (e.g. "convertToOrNull"), or null when no OrNull variant is annotated — compile error at resolution, naming the offending function.
convertFromOrNull declared without its total — compile error when T -> S is needed.
convertToOrNull declared without its total — compile error when S -> T is needed.
True when the T -> S direction is provided: total convertFrom declared, not annotated.
True when the S -> T direction is provided: total convertTo declared, not annotated.
Reason from @UnsupportedDirection on convertFrom, or null when not annotated.
Reason from @UnsupportedDirection on convertTo, or null when not annotated.