intrinsic renamed to Intrinsic

This commit is contained in:
Alex Tkachman
2012-02-21 15:31:05 +02:00
parent 5e7de3f5ab
commit fb8fa8bf9e
7 changed files with 9 additions and 16 deletions
@@ -52,7 +52,7 @@ public abstract class AnnotationCodegen {
if(!valueArguments.isEmpty()) {
// todo: temporary hack for intrinsics in stdlib
if(valueArguments.size()==1 && "intrinsic".equals(annotationDescriptor.getType().getConstructor().getDeclarationDescriptor().getName())) {
if(valueArguments.size()==1 && "Intrinsic".equals(annotationDescriptor.getType().getConstructor().getDeclarationDescriptor().getName())) {
annotationVisitor.visit("value", valueArguments.get(0).getValue());
}
else
@@ -44,7 +44,7 @@ public class BinaryOp implements IntrinsicMethod {
expectedType = JetTypeMapper.unboxType(expectedType);
}
if (arguments.size() == 1) {
// intrinsic is called as an ordinary function
// Intrinsic is called as an ordinary function
if (receiver != null) {
receiver.put(expectedType, v);
}
@@ -244,7 +244,7 @@ public class IntrinsicMethods {
List<AnnotationDescriptor> annotations = descriptor.getAnnotations();
if (annotations != null) {
for (AnnotationDescriptor annotation : annotations) {
if("intrinsic".equals(annotation.getType().getConstructor().getDeclarationDescriptor().getName())) {
if("Intrinsic".equals(annotation.getType().getConstructor().getDeclarationDescriptor().getName())) {
intrinsicMethod = namedMethods.get(annotation.getValueArguments().get(0).getValue());
}
}