Packages

package flix075

Type Members

  1. 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 Expr constructs; -Xfatal-warnings makes 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 a TypeMatchRule that does not exist and missed the ExtMatchRule that 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 a NoSuchMethodError. For a measurement tool, refusing to run beats a number that is quietly wrong.

Ungrouped