diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-02-12 11:24:14 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-02-12 16:34:23 -0800 |
commit | f5ed914fe5ae18a884cd2ab8b2cdede7cf11da94 (patch) | |
tree | 9e8a23547f0aa9b1f8e1afe6a1558e0c1319b076 /project | |
parent | f51ed74aa3aa142c8aa9d5f9d03e0c244737f66e (diff) | |
download | scala-f5ed914fe5ae18a884cd2ab8b2cdede7cf11da94.tar.gz scala-f5ed914fe5ae18a884cd2ab8b2cdede7cf11da94.tar.bz2 scala-f5ed914fe5ae18a884cd2ab8b2cdede7cf11da94.zip |
re-align 2.10.x's pattern matcher with master's
The diff was mostly code cleanup, so most of that was propagated from master to 2.10.x.
The remaining diff is encapsulated in compatibility stubs (see below).
(There was also the on/off potential for the 2.10.x "new" pattern matcher.
The old one is gone in 2.11, so no turning off new patmat, of course.)
The stubs:
```
protected final def dealiasWiden(tp: Type) = tp.dealias // 2.11: dealiasWiden
protected final def mkTRUE = CODE.TRUE_typed // 2.11: CODE.TRUE
protected final def mkFALSE = CODE.FALSE_typed // 2.11: CODE.FALSE
protected final def hasStableSymbol(p: Tree) = p.hasSymbol && p.symbol.isStable // 2.11: p.hasSymbolField && p.symbol.isStable
protected final def devWarning(str: String) = global.debugwarn(str) // 2.11: omit
```
Diffstat (limited to 'project')
0 files changed, 0 insertions, 0 deletions