NodeReference.anchor constructor

NodeReference.anchor(
  1. CompileViewStorage? _storage,
  2. int nodeIndex, [
  3. NodeReferenceVisibility _visibility = NodeReferenceVisibility.build
])

Create a NodeReference for an anchor node for view containers.

Implementation

NodeReference.anchor(
  this._storage,
  int nodeIndex, [
  this._visibility = NodeReferenceVisibility.build,
])  : _type = o.importType(Identifiers.commentNode),
      _name = '_anchor_$nodeIndex',
      _initialValue = null;