Rewritten NameValidatorImpl to be both more efficient and more correct

This commit is contained in:
Valentin Kipyatkov
2015-06-26 21:06:32 +03:00
parent df5f035760
commit de2378f909
10 changed files with 72 additions and 65 deletions
@@ -48,7 +48,7 @@ abstract class JetNamedDeclarationNotStubbed extends JetDeclarationImpl implemen
@Override
public Name getNameAsName() {
String name = getName();
return name != null ? Name.identifier(name) : null;
return name != null ? Name.guess(name) : null;
}
@Override
@@ -62,7 +62,7 @@ abstract class JetNamedDeclarationStub<T extends KotlinStubWithFqName> extends J
@Override
public Name getNameAsName() {
String name = getName();
return name != null ? Name.identifier(name) : null;
return name != null ? Name.guess(name) : null;
}
@Override