Annotate records the file name and proto AST path of a list of atoms so that a later call to P can emit a link from each atom to its origin.
(file *FileDescriptor, path string, atoms ...interface{})
| 968 | // Annotate records the file name and proto AST path of a list of atoms |
| 969 | // so that a later call to P can emit a link from each atom to its origin. |
| 970 | func Annotate(file *FileDescriptor, path string, atoms ...interface{}) *AnnotatedAtoms { |
| 971 | return &AnnotatedAtoms{source: *file.Name, path: path, atoms: atoms} |
| 972 | } |
| 973 | |
| 974 | // printAtom prints the (atomic, non-annotation) argument to the generated output. |
| 975 | func (g *Generator) printAtom(v interface{}) { |
no outgoing calls
no test coverage detected