code: func (parser *Parser) ParseDefinitions() {
  	// sort the typeNames so that parsing definitions is deterministic
  	typeNames := make([]string, 0, len(parser.registerTypes))
  	for refTypeName := range parser.registerTypes {
  		typeNames = append(typeNames, refTypeName)
  	}
  	sort.Strings(typeNames)
  
  	for _, refTypeName := range typeNames {
  		typeSpec := parser.registerTypes[refTypeName]
  		ss := strings.Split(refTypeName, ".")
  		pkgName := ss[0]
  		parser.structStack = nil
  		parser.ParseDefinition(pkgName, typeSpec.Name.Name, typeSpec)
  	}
  }
docs: // ParseDefinitions parses Swagger Api definitions.