defrac / defrac-plugin-intellij

defrac Plug-In for IntellJ IDEA
Apache License 2.0
5 stars 1 forks source link

Invalid error for @Intrinsic annotation (iOS) #21

Open joa opened 9 years ago

joa commented 9 years ago

The current annotator treats every @Intrinsic annotations in an iOS facet as if it would be an Objective-C class. Note that @Intrinsic annotations may be used with C declarations as well.

@Framework("CoreGraphics")
@Intrinsic("CGRect")
public final class CGRect extends Struct {
  public CGRect() {}

  //illegal error here, annotator expects "CGRectContainsPoint::"
  @Intrinsic("CGRectContainsPoint")
  public static native boolean containsPoint(@ByVal CGRect rect, @ByVal CGPoint point);
}