Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
$.RULE("visibility", () => {
$.OR([
{ ALT: () => $.CONSUME(Private) },
{ ALT: () => $.CONSUME(Public) },
{ ALT: EMPTY_ALT("EMPTY_ALT") }
])
})
$.RULE("field", () => {
$.OR([
{ ALT: () => $.CONSUME(Text) },
{ ALT: () => $.CONSUME(String) },
{ ALT: EMPTY_ALT("empty field") }
])
})