Fix type in function name and a better name for another function
This commit is contained in:
@@ -43,7 +43,7 @@ public class JetTypeParameterListOwner extends JetNamedDeclaration {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public List<JetTypeConstraint> getTypeConstaints() {
|
||||
public List<JetTypeConstraint> getTypeConstraints() {
|
||||
JetTypeConstraintList typeConstraintList = getTypeConstraintList();
|
||||
if (typeConstraintList == null) {
|
||||
return Collections.emptyList();
|
||||
|
||||
@@ -376,7 +376,7 @@ public class DescriptorResolver {
|
||||
deferredUpperBoundCheckerTasks.add(new UpperBoundCheckerTask(extendsBound, type, false));
|
||||
}
|
||||
}
|
||||
for (JetTypeConstraint constraint : declaration.getTypeConstaints()) {
|
||||
for (JetTypeConstraint constraint : declaration.getTypeConstraints()) {
|
||||
JetSimpleNameExpression subjectTypeParameterName = constraint.getSubjectTypeParameterName();
|
||||
if (subjectTypeParameterName == null) {
|
||||
continue;
|
||||
|
||||
@@ -613,7 +613,7 @@ public class TypeHierarchyResolver {
|
||||
}
|
||||
}
|
||||
|
||||
for (JetTypeConstraint constraint : jetClass.getTypeConstaints()) {
|
||||
for (JetTypeConstraint constraint : jetClass.getTypeConstraints()) {
|
||||
JetTypeReference extendsBound = constraint.getBoundTypeReference();
|
||||
if (extendsBound != null) {
|
||||
JetType type = trace.getBindingContext().get(TYPE, extendsBound);
|
||||
|
||||
+1
-1
@@ -112,7 +112,7 @@ public class LazyTypeParameterDescriptor implements TypeParameterDescriptor {
|
||||
JetClassOrObject classOrObject = PsiTreeUtil.getParentOfType(jetTypeParameter, JetClassOrObject.class);
|
||||
if (classOrObject instanceof JetClass) {
|
||||
JetClass jetClass = (JetClass) classOrObject;
|
||||
for (JetTypeConstraint jetTypeConstraint : jetClass.getTypeConstaints()) {
|
||||
for (JetTypeConstraint jetTypeConstraint : jetClass.getTypeConstraints()) {
|
||||
if (jetTypeConstraint.isClassObjectContraint() != forClassObject) continue;
|
||||
|
||||
JetSimpleNameExpression constrainedParameterName = jetTypeConstraint.getSubjectTypeParameterName();
|
||||
|
||||
Reference in New Issue
Block a user