Skip to content

Commit

Permalink
fixed files form Closure #89
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 81ffbf4 commit 54d0aa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ private void updateSimpleDeclaration(String alias, Name refName, Ref ref) {
Node greatGramps = gramps.getParent();
Node greatGreatGramps = greatGramps.getParent();

if (rvalue != null && rvalue.getType() == Token.FUNCTION) {
checkForHosedThisReferences(rvalue, refName.docInfo, refName);
}

// Create the new alias node.
Node nameNode = NodeUtil.newName(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ boolean canCollapseUnannotatedChildNames() {
}

// If this is aliased, then its properties can't be collapsed either.
if (type != Type.FUNCTION && aliasingGets > 0) {
if (aliasingGets > 0) {
return false;
}

Expand Down

0 comments on commit 54d0aa0

Please sign in to comment.