This change adds a handful of property binding tests. It also fixes: * AsName should assert IsName. * Enumerate properties stably, so that it is deterministic. * Do not issue errors about unrecognized properties for the special `mu/extension` type. It's entire purpose in life is to offer an entirely custom set of properties, which the provider is meant to validate. * Default to an empty map if properties are missing. * Add a "/" to the end of the namespace from the workspace, if present. And rearranges some code: * Rename the LiteralX types to XLiteral; e.g., StringLiteral instead of LiteralString. I kept typing XLiteral erroneously. * Eliminate the Mu prefix on all of the predefined type and service functions and types. It's superfluous and reads nicer this way. * Swap the order of "expected" vs. "got" in the error message about incorrect property types. It used to say "got %v, expected %v"; I personally find that it is more helpful if it says "expected %v, got %v". YMMV. |
||
---|---|---|
.. | ||
ast | ||
compiler | ||
diag | ||
encoding | ||
errors | ||
util | ||
workspace |