intrinsic renamed to Intrinsic
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user