cucapra / cucapra/braid

Avoid ubiquitous `tree.id!` null escape hatch

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
27
Forks
4
PR merge metrics
No merged PRs in 30d

Description

I've ported the source to use strictNullChecks, but a bunch of `!` operators appear on the `id` field of syntax nodes. (The TS calls these "null assertions," but that's misleading—they are unchecked, so they're not very assert-y.) We should replace these with a safe way of enforcing that the `id` field exists on stamped ASTs.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.