MCPcopy Create free account
hub / github.com/dcSpark/cddl-codegen / annotate

Method annotate

src/generation.rs:401–411  ·  view source on GitHub ↗

This MUST have self.content be a Result, as if you were going to wrap it in an error annotation lambda block. If possible this will avoid the need for the block to avoid clippy warnings.

(mut self, annotation: &str, before: &str, after: &str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

codegen_structFunction · 0.45

Calls 4

BlocksOrLinesClass · 0.85
make_err_annotate_blockFunction · 0.85
as_single_lineMethod · 0.80
wrap_in_blockMethod · 0.80

Tested by

no test coverage detected