(start xml.StartElement, e *Effect)
| 360 | } |
| 361 | |
| 362 | func (d *Decoder) decEffectProfileCommon(start xml.StartElement, e *Effect) error { |
| 363 | |
| 364 | pc := new(ProfileCOMMON) |
| 365 | pc.Id = findAttrib(start, "id").Value |
| 366 | e.Profile = append(e.Profile, pc) |
| 367 | |
| 368 | for { |
| 369 | // Get next child element |
| 370 | child, _, err := d.decNextChild(start) |
| 371 | if err != nil || child.Name.Local == "" { |
| 372 | return err |
| 373 | } |
| 374 | if child.Name.Local == "newparam" { |
| 375 | err := d.decProfileCommonNewparam(child, pc) |
| 376 | if err != nil { |
| 377 | return err |
| 378 | } |
| 379 | continue |
| 380 | } |
| 381 | if child.Name.Local == "technique" { |
| 382 | err := d.decProfileCommonTechnique(child, pc) |
| 383 | if err != nil { |
| 384 | return err |
| 385 | } |
| 386 | continue |
| 387 | } |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | func (d *Decoder) decProfileCommonNewparam(start xml.StartElement, pc *ProfileCOMMON) error { |
| 392 |
no test coverage detected