/** * Returns a Matcher that matches any property access. */ public static Matcher propertyAccess() { return propertyAccess(null); }
@Override public boolean matches(Node node, NodeMetadata metadata) { // TODO(mknichel): Handle the case when functions are applied through .call or .apply. return node.isCall() && propertyAccess(name).matches(node.getFirstChild(), metadata); } };