func (pp *primitiveParser) loadTypeComments() {
	pp.typedecls = make(map[int]string)
	for _, c := range pp.p.Comments {
		cmt := strings.Trim(c.List[0].Text, "/* \t")
		parts := strings.Split(cmt, " ")
		if len(parts) == 2 && parts[0] == "type:" {
			pp.typedecls[pp.fset.Position(c.List[0].Pos()).Line] = parts[1]
		}
	}
}
// loadTypeComments loads our annotation comments on structs, indicating
// their enumerated byte type, allowing us to look it up later by line.
loadTypeComments loads our annotation comments on structs, indicating
their enumerated byte type, allowing us to look it up later by line.
// loadTypeComments loads our annotation comments on structs indicating // their enumerated byte type allowing us to look it up later by line .
func (pp *primitiveParser) loadTypeComments() {
	pp.typedecls = make(map[int]string)
	for _, c := range pp.p.Comments {
		cmt := strings.Trim(c.List[0].Text, "/* \t")
		parts := strings.Split(cmt, " ")
		if len(parts) == 2 && parts[0] == "type:" {
			pp.typedecls[pp.fset.Position(c.List[0].Pos()).Line] = parts[1]
		}
	}
}
func ( pp * primitiveParser ) loadTypeComments ( ) { pp . typedecls = make ( map [ int ] string ) for _ , c := range pp . p . Comments { cmt := strings . Trim ( c . List [ 0 ] . Text , " \t " ) parts := strings . Split ( cmt , " " ) if len ( parts ) == 2 && parts [ 0 ] == " " { pp . typedecls [ pp . fset . Position ( c . List [ 0 ] . Pos ( ) ) . Line ] = parts [ 1 ] } } }
loadTypeComments loads our annotation comments on structs, indicating
their enumerated byte type, allowing us to look it up later by line.
loadTypeComments loads our annotation comments on structs indicating their enumerated byte type allowing us to look it up later by line .