Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"stx": (rep) => {
let scopesets = transit.mapToObject(rep[1]);
if (List.isList(rep[0])) {
let token = rep[0];
return new Syntax(token, {bindings, scopesets: scopesets});
} else {
let token = transit.mapToObject(rep[0]);
token.type = typeMap[rep[0].get("type")];
token.slice = rep[0].has("slice") ? transit.mapToObject(rep[0].get("slice")) : undefined;
if (token.slice) {
token.slice.startLocation = transit.mapToObject(token.slice.startLocation);
}
return new Syntax(token, {bindings, scopesets: scopesets});
}
},
"symb": (rep) => {
"stx": (rep) => {
let scopesets = transit.mapToObject(rep[1]);
if (List.isList(rep[0])) {
let token = rep[0];
return new Syntax(token, {bindings, scopesets: scopesets});
} else {
let token = transit.mapToObject(rep[0]);
token.type = typeMap[rep[0].get("type")];
token.slice = rep[0].has("slice") ? transit.mapToObject(rep[0].get("slice")) : undefined;
if (token.slice) {
token.slice.startLocation = transit.mapToObject(token.slice.startLocation);
}
return new Syntax(token, {bindings, scopesets: scopesets});
}
},
"symb": (rep) => {
"stx": (rep) => {
let scopesets = transit.mapToObject(rep[1]);
if (List.isList(rep[0])) {
let token = rep[0];
return new Syntax(token, {bindings, scopesets: scopesets});
} else {
let token = transit.mapToObject(rep[0]);
token.type = typeMap[rep[0].get("type")];
token.slice = rep[0].has("slice") ? transit.mapToObject(rep[0].get("slice")) : undefined;
if (token.slice) {
token.slice.startLocation = transit.mapToObject(token.slice.startLocation);
}
return new Syntax(token, {bindings, scopesets: scopesets});
}
},
"symb": (rep) => {
"stx": (rep) => {
let scopesets = transit.mapToObject(rep[1]);
if (List.isList(rep[0])) {
let token = rep[0];
return new Syntax(token, {bindings, scopesets: scopesets});
} else {
let token = transit.mapToObject(rep[0]);
token.type = typeMap[rep[0].get("type")];
token.slice = rep[0].has("slice") ? transit.mapToObject(rep[0].get("slice")) : undefined;
if (token.slice) {
token.slice.startLocation = transit.mapToObject(token.slice.startLocation);
}
return new Syntax(token, {bindings, scopesets: scopesets});
}
},
"symb": (rep) => {