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());
|
||||
}
|
||||
}
|
||||
|
||||
-7
@@ -1315,13 +1315,6 @@ public class JavaDescriptorResolver {
|
||||
@Nullable
|
||||
private FunctionDescriptorImpl resolveMethodToFunctionDescriptor(ClassOrNamespaceDescriptor owner, final PsiClass psiClass, TypeSubstitutor typeSubstitutorForGenericSuperclasses, final PsiMethodWrapper method) {
|
||||
|
||||
PsiAnnotation[] applicableAnnotations = method.getPsiMethod().getModifierList().getAnnotations();
|
||||
for (PsiAnnotation applicableAnnotation : applicableAnnotations) {
|
||||
if("jet.runtime.intrinsic".equals(applicableAnnotation.getQualifiedName())) {
|
||||
PsiAnnotationMemberValue value = applicableAnnotation.findAttributeValue("value");
|
||||
}
|
||||
}
|
||||
|
||||
PsiType returnType = method.getReturnType();
|
||||
if (returnType == null) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user