Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ignore case of alias

  • Loading branch information...
commit 419dbc98140e47e13982cddbb638e3e2489489d7 1 parent 39372b8
@gavinking gavinking authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/com/redhat/ceylon/compiler/typechecker/model/Unit.java
View
3  src/com/redhat/ceylon/compiler/typechecker/model/Unit.java
@@ -62,7 +62,8 @@ public Declaration getImportedDeclaration(String name) {
public Map<String, DeclarationWithProximity> getMatchingImportedDeclarations(String startingWith, int proximity) {
Map<String, DeclarationWithProximity> result = new TreeMap<String, DeclarationWithProximity>();
for (Import i: getImports()) {
- if (i.getAlias().startsWith(startingWith)) {
+ if (i.getAlias()!=null &&
+ i.getAlias().toLowerCase().startsWith(startingWith.toLowerCase())) {
result.put(i.getAlias(), new DeclarationWithProximity(i, proximity));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.