MCPcopy Create free account
hub / github.com/diem/move / annotate_gen

Method annotate_gen

language/move-compiler/src/shared/ast_debug.rs:111–130  ·  view source on GitHub ↗
(
        &mut self,
        f: F,
        annot: &Annot,
        annot_writer: FAnnot,
    )

Source from the content-addressed store, hash-verified

109 }
110
111 pub fn annotate_gen<
112 F: FnOnce(&mut AstWriter),
113 Annot,
114 FAnnot: FnOnce(&mut AstWriter, &Annot),
115 >(
116 &mut self,
117 f: F,
118 annot: &Annot,
119 annot_writer: FAnnot,
120 ) {
121 if self.verbose {
122 self.write("(");
123 }
124 f(self);
125 if self.verbose {
126 self.write(": ");
127 annot_writer(self, annot);
128 self.write(")");
129 }
130 }
131
132 pub fn list<T, F: FnMut(&mut AstWriter, T) -> bool>(
133 &mut self,

Callers 3

ast_debugMethod · 0.80
ast_debugMethod · 0.80
annotateMethod · 0.80

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected