v0.16.0
This version adds support for user-defined operators.
The UsingForDeclaration
node now has a new operators
property. This is an array with the same length as the functions
array. Each item is either a string or null
: if an operator is defined, then the string is the operator; if an operator is not defined, the item is null.
For example, using { add as +, sub } for Fixed18 global
will result in this node:
{
"type": "UsingForDeclaration",
"isGlobal": true,
"typeName": {
"type": "UserDefinedTypeName",
"namePath": "Fixed18"
},
"libraryName": null,
"functions": ["add", "sub"],
"operators": ["+", null]
}