highlightNode(nodeId) {
    document.querySelectorAll('.ir-node-identifier-' + nodeId).forEach(e => {
      e.classList.add('ir-node-identifier-highlighted');
    });
    if (this.irGraph_ && this.nodeMetadataElement_) {
      let text = '<b>node:</b> ' + this.irGraph_.node(nodeId).ir;
      let delay = this.irGraph_.node(nodeId).attributes['delay_ps'];
      if (delay != null) {
        text += '\n<b>delay:</b> ' + delay + 'ps';
      }
      let known = this.irGraph_.node(nodeId).attributes['known_bits'];
      if (known) {
        text += '\n<b>known bits:</b> ' + known;
      }
      let cycle = this.irGraph_.node(nodeId).attributes['cycle'];
      if (cycle != undefined) {
        text += '\n<b>cycle:</b> ' + cycle;
      }
      setInnerHtml(this.nodeMetadataElement_, text);
    }
    if (this.graphView_) {
      this.graphView_.highlightNode(nodeId);
    }
  }
/**
   * Highlights the node with the given id in the graph and the textual IR.
   * @param {string} nodeId
   */
Highlights the node with the given id in the graph and the textual IR.
@param {string} nodeId
Highlights the node with the given id in the graph and the textual IR . @param { string } nodeId
highlightNode(nodeId) {
    document.querySelectorAll('.ir-node-identifier-' + nodeId).forEach(e => {
      e.classList.add('ir-node-identifier-highlighted');
    });
    if (this.irGraph_ && this.nodeMetadataElement_) {
      let text = '<b>node:</b> ' + this.irGraph_.node(nodeId).ir;
      let delay = this.irGraph_.node(nodeId).attributes['delay_ps'];
      if (delay != null) {
        text += '\n<b>delay:</b> ' + delay + 'ps';
      }
      let known = this.irGraph_.node(nodeId).attributes['known_bits'];
      if (known) {
        text += '\n<b>known bits:</b> ' + known;
      }
      let cycle = this.irGraph_.node(nodeId).attributes['cycle'];
      if (cycle != undefined) {
        text += '\n<b>cycle:</b> ' + cycle;
      }
      setInnerHtml(this.nodeMetadataElement_, text);
    }
    if (this.graphView_) {
      this.graphView_.highlightNode(nodeId);
    }
  }
highlightNode ( nodeId ) { document . querySelectorAll ( '.ir-node-identifier-' + nodeId ) . forEach ( e => { e . classList . add ( 'ir-node-identifier-highlighted' ) ; } ) ; if ( this . irGraph_ && this . nodeMetadataElement_ ) { let text = '<b>node:</b> ' + this . irGraph_ . node ( nodeId ) . ir ; let delay = this . irGraph_ . node ( nodeId ) . attributes [ 'delay_ps' ] ; if ( delay != null ) { text += '\n<b>delay:</b> ' + delay + 'ps' ; } let known = this . irGraph_ . node ( nodeId ) . attributes [ 'known_bits' ] ; if ( known ) { text += '\n<b>known bits:</b> ' + known ; } let cycle = this . irGraph_ . node ( nodeId ) . attributes [ 'cycle' ] ; if ( cycle != undefined ) { text += '\n<b>cycle:</b> ' + cycle ; } setInnerHtml ( this . nodeMetadataElement_ , text ) ; } if ( this . graphView_ ) { this . graphView_ . highlightNode ( nodeId ) ; } }
Highlights the node with the given id in the graph and the textual IR.
Highlights the node with the given id in the graph and the textual IR .