You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's easy to accidentally break these. So we should add a quick unit test which verifies:
assert(SyntaxKind.FirstIndexableExpression===0);assert(SyntaxKind.FirstExpression===0);// TODO: verify SyntaxKind.LastIndexableExpression?assert(SyntaxKind.LastExpression+1===SyntaxKind.FirstStatement);assert(SyntaxKind.LastStatement+1===SyntaxKind.FirstField);assert(SyntaxKind.LastField===Math.max(...Object.values(SyntaxKind).filter((v): v is number=>typeofv==="number")));
https://github.com/roblox-ts/luau-ast/blob/master/src/LuauAST/impl/enums.ts#L51-L58
It's easy to accidentally break these. So we should add a quick unit test which verifies:
playground
The text was updated successfully, but these errors were encountered: