visitMedia method

void visitMedia(
  1. Media mediaNode,
  2. VisitArgs visitArgs
)

Implementation

void visitMedia(Media mediaNode, VisitArgs visitArgs) {
  final newAllExtends = mediaNode.allExtends.sublist(0)
    ..addAll(allExtendsStack.last);
  newAllExtends.addAll(doExtendChaining(newAllExtends, mediaNode.allExtends));
  allExtendsStack.add(newAllExtends);

//2.3.1
//  visitMedia: function (mediaNode, visitArgs) {
//      var newAllExtends = mediaNode.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length - 1]);
//      newAllExtends = newAllExtends.concat(this.doExtendChaining(newAllExtends, mediaNode.allExtends));
//      this.allExtendsStack.push(newAllExtends);
//  },
}