Skip to content

Parse method use#121

Merged
Rarst merged 1 commit intoWordPress:masterfrom
JDGrimes:issue-120
Aug 24, 2014
Merged

Parse method use#121
Rarst merged 1 commit intoWordPress:masterfrom
JDGrimes:issue-120

Conversation

@JDGrimes
Copy link
Contributor

See #120

JDGrimes added a commit to JDGrimes/WP-Parser that referenced this pull request Aug 22, 2014
@JDGrimes
Copy link
Contributor Author

Some notes on how this works:

  • Parses the method name and the caller.
  • These are stored in an array, with the caller as the first value and the method name as the second.
  • Special cases like self, parent and $this are resolved.

For static methods, the caller is always a class name. For non-static methods, it may be the class name (if it was called by $this), or it may be a variable (like $wpdb), or it could be another expression (like get_instance()).

@DrewAPicture
Copy link
Member

👍

Rarst added a commit that referenced this pull request Aug 24, 2014
@Rarst Rarst merged commit e399b4b into WordPress:master Aug 24, 2014
@Rarst Rarst mentioned this pull request Aug 24, 2014
@JDGrimes JDGrimes deleted the issue-120 branch August 25, 2014 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants