You must create a reader that supports the variables declaration.
Example:
a: Boolean = True
a = True
var a = True
not : (b: Boolean) => Boolean = !b
fatalErrorResolver: Map[Platform, ErrorCode => Boolean] = ??? // used for unimplemented elements
// let's suppose we need to integrate with multiple platforms and those platforms do have their own errors code, so we need to retrieve a function that validates of the given error is a fatal error.
fatalErrorSelector : (platform: Platform) => ErrorCode=> Boolean = fatalErrorResolver(platform)
//the previous function is a function that returns another function.
You must create a reader that supports the variables declaration.
Example:
a: Boolean = Truea = Truevar a = Truenot : (b: Boolean) => Boolean = !b