diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-11-25 12:30:13 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-12-06 23:17:26 +0100 |
commit | 85f320258cbd68c4235cf0cdf2fede9ab6e88c8b (patch) | |
tree | 4fd19e9d8dea508b3d423c68f7ae6f5d55ae95aa /test/attic/files/cli | |
parent | 58969850a0991a72c360433540943eae4b10dc6b (diff) | |
download | scala-85f320258cbd68c4235cf0cdf2fede9ab6e88c8b.tar.gz scala-85f320258cbd68c4235cf0cdf2fede9ab6e88c8b.tar.bz2 scala-85f320258cbd68c4235cf0cdf2fede9ab6e88c8b.zip |
unifies approaches to call analysis in TreeInfo
Instead of a flurry of methods such as `methPart` or `typeArguments`
to analyze applications, there is a single access point to related info:
`treeInfo.dissectApplied(tree)`
Dissection returns an instance of the `Applied` class, which can
extract parts of applications and perform other application-specific
operations, e.g. `applyCount`.
For the sake of convenience, there's also an extractor named `Applied`,
which extracts `core`, `targs` and `argss`, where core is everything
except targs and argss. Extractor works for both `Tree` and `Applied`
(in the former case, it's equivalent to first dissecting and pattern
matching).
Diffstat (limited to 'test/attic/files/cli')
0 files changed, 0 insertions, 0 deletions