package flix075
Type Members
- final class Flix075Adapter extends CompilerModel
The one place that knows what Flix's AST looks like.
The one place that knows what Flix's AST looks like.
Why this file is Scala
Flix's AST is a sealed hierarchy, so a match over it is checked. Stock 0.75.3 has 76
Exprconstructs;-Xfatal-warningsmakes the build name every one an exhaustive match forgets. The reflective predecessor classified nodes by simple class name and ignored the rest in silence, which cost exactly what it sounds like: it named aTypeMatchRulethat does not exist and missed theExtMatchRulethat does, so every extensible match was undercounted and nothing said so.What it costs
A hard dependency on one Flix AST. This engine links against the release in
plugin/lib, and against a materially different compiler it does not load at all — which dev.flixw.metrics.sdk.Adapters turns into a sentence rather than aNoSuchMethodError. For a measurement tool, refusing to run beats a number that is quietly wrong.