Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
chunk,
identifier,
literal,
tableKey,
tableKeyString,
tableValue,
tableConstructorExpression,
binaryExpression,
unaryExpression,
memberExpression,
indexExpression,
callExpression,
tableCallExpression,
stringCallExpression,
comment,
} = luaparse.ast;
export function luaRaw(code) {
return { type: 'LuaRaw', code };
}
export const stringLiteral = (value, raw) => literal(tokenTypes.StringLiteral, value, raw);
export const numericLiteral = (value, raw) => literal(tokenTypes.NumericLiteral, value, raw);
export const booleanLiteral = (value, raw) => literal(tokenTypes.BooleanLiteral, value, raw);
export const nilLiteral = () => literal(tokenTypes.NilLiteral, null);
export const varargLiteral = () => literal(tokenTypes.VarargLiteral, '...');