src/com/google/javascript/jscomp/NodeUtil.java
/**
   * Custom update new QName node with source info from another node.
   *
   * <p>This is very similar to {@link Node#useSourceInfoIfMissingFromForTree(Node)}, but it avoids
   * overwriting the length field of the nodes.
   * TODO(bradfordcsmith): Eliminate the need for this custom method.
   */
Custom update new QName node with source info from another node.
This is very similar to  Node#useSourceInfoIfMissingFromForTree(Node), but it avoids
overwriting the length field of the nodes.
TODO(bradfordcsmith): Eliminate the need for this custom method.
Custom update new QName node with source info from another node . This is very similar to Node#useSourceInfoIfMissingFromForTree ( Node ) but it avoids overwriting the length field of the nodes . TODO ( bradfordcsmith ) : Eliminate the need for this custom method .
private static void useSourceInfoForNewQName(Node newQName, Node basisNode) {
    if (newQName.getStaticSourceFile() == null) {
      newQName.setStaticSourceFileFrom(basisNode);
      newQName.setSourceEncodedPosition(basisNode.getSourcePosition());
    }
    if (newQName.getOriginalName() == null) {
      newQName.putProp(Node.ORIGINALNAME_PROP, basisNode.getOriginalName());
    }
    for (Node child = newQName.getFirstChild(); child != null; child = child.getNext()) {
      useSourceInfoForNewQName(child, basisNode);
    }
  }
private static void useSourceInfoForNewQName ( Node newQName , Node basisNode ) { if ( newQName . getStaticSourceFile ( ) == null ) { newQName . setStaticSourceFileFrom ( basisNode ) ; newQName . setSourceEncodedPosition ( basisNode . getSourcePosition ( ) ) ; } if ( newQName . getOriginalName ( ) == null ) { newQName . putProp ( Node . ORIGINALNAME_PROP , basisNode . getOriginalName ( ) ) ; } for ( Node child = newQName . getFirstChild ( ) ; child != null ; child = child . getNext ( ) ) { useSourceInfoForNewQName ( child , basisNode ) ; } }
Custom update new QName node with source info from another node.
Custom update new QName node with source info from another node .