Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create reader for value/member declaration #2

Open
devcdcc opened this issue Aug 22, 2023 · 0 comments
Open

Create reader for value/member declaration #2

devcdcc opened this issue Aug 22, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@devcdcc
Copy link
Owner

devcdcc commented Aug 22, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant