Skip to content

Commit

Permalink
Fixed Bug 432575: [1.8][quick assist] AFE while invoking quick assist
Browse files Browse the repository at this point in the history
from with in a lambda expression
  • Loading branch information
mkeller authored and Manju Mathew committed May 14, 2014
1 parent 66203df commit bfb4d24
Showing 1 changed file with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2011 IBM Corporation and others.
* Copyright (c) 2000, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -108,12 +108,7 @@ private boolean checkName(Name name) {
else if (binding instanceof ITypeBinding)
return ! ((ITypeBinding) binding).isTypeVariable();
else {
/* IPackageBinding is not expected, as a package name not
used as a type name prefix is not expected in such an
expression. Other types are not expected either.
*/
Assert.isTrue(false);
return true;
return true; // e.g. a NameQualifiedType's qualifier, which can be a package binding
}
}

Expand Down Expand Up @@ -185,12 +180,7 @@ private boolean visitName(Name name) {
return false; // It's o.k. Don't descend deeper.

} else {
/* IPackageBinding is not expected, as a package name not
used as a type name prefix is not expected in such an
expression. Other types are not expected either.
*/
Assert.isTrue(false);
return false;
return false; // e.g. a NameQualifiedType's qualifier, which can be a package binding
}

//Descend deeper:
Expand Down

0 comments on commit bfb4d24

Please sign in to comment.