Lines Matching refs:shortName
42 shortName, longName string member
203 shortName: "UNDEF",
291 obj.shortName = strings.TrimSpace(fields[1])
297 if len(obj.shortName) == 0 {
298 obj.shortName = obj.longName
303 obj.longName = obj.shortName
307 if len(obj.shortName) == 0 || len(obj.longName) == 0 {
317 obj.name = sanitizeName(obj.shortName)
325 if _, ok := shortNamesSeen[obj.shortName]; ok && len(obj.shortName) > 0 {
326 return nil, withLine(fmt.Errorf("duplicate short name '%s'", obj.shortName))
343 shortNamesSeen[obj.shortName] = struct{}{}
475 fmt.Fprintf(&b, "#define SN_%s \"%s\"\n", obj.name, obj.shortName)
629 fmt.Fprintf(&b, "{\"%s\", \"%s\", NID_%s, ", obj.shortName, obj.longName, obj.name)
641 if len(obj.name) == 0 || len(obj.shortName) == 0 {
646 sortNIDs(nids, objs, func(a, b object) bool { return a.shortName < b.shortName })
650 fmt.Fprintf(&b, "%d /* %s */,\n", nid, objs.byNID[nid].shortName)