aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/TypeApplications.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-01-25 13:02:39 +0100
committerMartin Odersky <odersky@gmail.com>2014-01-26 18:52:33 +0100
commit09199545d784ba36dee1899bda8a9c4ce448397c (patch)
tree37c96e50d036c0e9aa9632b9e3bdf22611ef00ec /src/dotty/tools/dotc/core/TypeApplications.scala
parent966edc4d6bb2fd4be0b8706959e24e680969b23d (diff)
downloaddotty-09199545d784ba36dee1899bda8a9c4ce448397c.tar.gz
dotty-09199545d784ba36dee1899bda8a9c4ce448397c.tar.bz2
dotty-09199545d784ba36dee1899bda8a9c4ce448397c.zip
Add text markers around "hot" tracing operations.
That way they can be easily removed by search and replace, which gives us a clearer picture of the runtime profiles.
Diffstat (limited to 'src/dotty/tools/dotc/core/TypeApplications.scala')
-rw-r--r--src/dotty/tools/dotc/core/TypeApplications.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/TypeApplications.scala b/src/dotty/tools/dotc/core/TypeApplications.scala
index 8e068f5d3..9f742fcc2 100644
--- a/src/dotty/tools/dotc/core/TypeApplications.scala
+++ b/src/dotty/tools/dotc/core/TypeApplications.scala
@@ -26,7 +26,7 @@ class TypeApplications(val self: Type) extends AnyVal {
* For an intersection type A & B, the type parameters of its left operand, A.
* Empty list for all other types.
*/
- final def typeParams(implicit ctx: Context): List[TypeSymbol] = track("typeParams") {
+ final def typeParams(implicit ctx: Context): List[TypeSymbol] = /*>|>*/ track("typeParams") /*<|<*/ {
self match {
case tp: ClassInfo =>
tp.cls.typeParams
@@ -83,7 +83,7 @@ class TypeApplications(val self: Type) extends AnyVal {
typeParams filter (tparam => self.member(tparam.name).symbol == tparam)
/** Encode the type resulting from applying this type to given arguments */
- final def appliedTo(args: List[Type])(implicit ctx: Context): Type = track("appliedTo") {
+ final def appliedTo(args: List[Type])(implicit ctx: Context): Type = /*>|>*/ track("appliedTo") /*<|<*/ {
def recur(tp: Type, tparams: List[TypeSymbol], args: List[Type]): Type = args match {
case arg :: args1 =>