summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2010-04-09 16:22:40 +0000
committerMartin Odersky <odersky@gmail.com>2010-04-09 16:22:40 +0000
commitf1044e136b067ad303b21c14b24f44ca62ca1977 (patch)
treeb94e4f7fcbcc667925b169fdad4507ddb5dc6e47 /src/compiler
parent2dba26ed12c86c63a568b85a4c094c22c7937412 (diff)
downloadscala-f1044e136b067ad303b21c14b24f44ca62ca1977.tar.gz
scala-f1044e136b067ad303b21c14b24f44ca62ca1977.tar.bz2
scala-f1044e136b067ad303b21c14b24f44ca62ca1977.zip
@inlined auxiliary typed methods to reduce stac...
@inlined auxiliary typed methods to reduce stack pressure.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 284b12e501..99825300dd 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -4193,12 +4193,9 @@ trait Typers { self: Analyzer =>
* @param tree ...
* @return ...
*/
- def typed(tree: Tree): Tree = {
- val ret = typed(tree, EXPRmode, WildcardType)
- ret
- }
+ @inline final def typed(tree: Tree): Tree = typed(tree, EXPRmode, WildcardType)
- def typedPos(pos: Position)(tree: Tree) = typed(atPos(pos)(tree))
+ @inline final def typedPos(pos: Position)(tree: Tree) = typed(atPos(pos)(tree))
/** Types expression <code>tree</code> with given prototype <code>pt</code>.
*
@@ -4206,8 +4203,7 @@ trait Typers { self: Analyzer =>
* @param pt ...
* @return ...
*/
- def typed(tree: Tree, pt: Type): Tree =
- typed(tree, EXPRmode, pt)
+ @inline final def typed(tree: Tree, pt: Type): Tree = typed(tree, EXPRmode, pt)
/** Types qualifier <code>tree</code> of a select node.
* E.g. is tree occurs in a context like <code>tree.m</code>.