src/com/google/javascript/jscomp/TypeCheck.java
/**
   * Visits an assignment <code>lvalue = rvalue</code>. If the <code>lvalue</code> is a prototype
   * modification, we change the schema of the object type it is referring to.
   *
   * @param t the traversal
   * @param assign the assign node (<code>assign.isAssign()</code> is an implicit invariant)
   */
Visits an assignment lvalue = rvalue. If the lvalue is a prototype
modification, we change the schema of the object type it is referring to.

@param t the traversal
@param assign the assign node (assign.isAssign() is an implicit invariant)
Visits an assignment lvalue = rvalue . If the lvalue is a prototype modification we change the schema of the object type it is referring to . @param t the traversal @param assign the assign node ( assign . isAssign () is an implicit invariant )
private void visitAssign(NodeTraversal t, Node assign) {
    JSDocInfo info = assign.getJSDocInfo();
    Node lvalue = assign.getFirstChild();
    Node rvalue = assign.getLastChild();
    JSType rightType = getJSType(rvalue);
    checkCanAssignToWithScope(t, assign, lvalue, rightType, info, "assignment");
    ensureTyped(assign, rightType);
  }
private void visitAssign ( NodeTraversal t , Node assign ) { JSDocInfo info = assign . getJSDocInfo ( ) ; Node lvalue = assign . getFirstChild ( ) ; Node rvalue = assign . getLastChild ( ) ; JSType rightType = getJSType ( rvalue ) ; checkCanAssignToWithScope ( t , assign , lvalue , rightType , info , "assignment" ) ; ensureTyped ( assign , rightType ) ; }
Visits an assignment <code>lvalue = rvalue</code>.
Visits an assignment <code > lvalue = rvalue< / code > .