Lines 536-546
Link Here
|
536 |
parameter.sourceEnd = end; |
536 |
parameter.sourceEnd = end; |
537 |
if (typeParameterBounds != null) { |
537 |
if (typeParameterBounds != null) { |
538 |
int length = typeParameterBounds.length; |
538 |
int length = typeParameterBounds.length; |
539 |
parameter.bounds = new TypeReference[length]; |
539 |
if (length > 0) { |
540 |
for (int i = 0; i < length; i++) { |
540 |
parameter.type = createTypeReference(typeParameterBounds[0], start, end); |
541 |
TypeReference bound = createTypeReference(typeParameterBounds[i], start, end); |
541 |
if (length > 1) { |
542 |
bound.bits |= ASTNode.IsSuperType; |
542 |
parameter.bounds = new TypeReference[length-1]; |
543 |
parameter.bounds[i] = bound; |
543 |
for (int i = 1; i < length; i++) { |
|
|
544 |
TypeReference bound = createTypeReference(typeParameterBounds[i], start, end); |
545 |
bound.bits |= ASTNode.IsSuperType; |
546 |
parameter.bounds[i+1] = bound; |
547 |
} |
548 |
} |
544 |
} |
549 |
} |
545 |
} |
550 |
} |
546 |
return parameter; |
551 |
return parameter; |