PLC-lang/rusty

`--annotations` flag

開放

#1,001 建立於 2023年11月2日

 (0 則留言) (0 個反應) (0 位負責人)Rust (71 個分叉)auto 404
enhancementgood first issuelow-priority

倉庫指標

星標
 (351 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Is your feature request related to a problem? Please describe. For debugging purposes it would be really nice to have a --annotations flag to see which AST elements the resolver annotated during the compilation. The "tricky" part here is that the type_map and type_hint_map fields within the AnnotationMapImpl have no AstNode element stored directly inside it but rather a reference in the form of a AstId. Hence a mapping would be required to print the AST element and its annotation.

Describe the solution you'd like cargo r -- <input file> --annotations should print all annotations for the given input file(s)

貢獻者指南