hash-org / hash-org/hashc

TIR: directly print byte literals rather than as a integer literal

Open
#1,001 0 comments 0 reactions 0 assignees View on GitHub
good first issue type-system
Dominant language
Rust
Stars
28
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Currently, byte literals are being printed as standard numeric literals. To make it a bit nicer when debugging, byte literals should be printed as the raw source instead of the integer it represents (same for AST pretty printing).

to achieve this, we can use the `AstNodeId` on the node origin or `AstNode` of the literal to just print the source hunk.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.