0

I'm able to retrieve the node ObjectiveCPropertyRefExpr out and I want to check if it's referring to something from the UITextField (in the future I want to check for other user input fields too).

Is there a way to check if the ObjectiveCPropertyRefExpr is from UITextField?

Jeremy Kuah
  • 519
  • 1
  • 6
  • 18

1 Answers1

0

If you have an ObjCPropertyRefExpr *expr, you can do this

expr->getReceiverType(*Context).getAsString();

where Context is the ASTContext

Jeremy Kuah
  • 519
  • 1
  • 6
  • 18