當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Scala reflectModule.TreeMap用法及代碼示例

用法:

trait TreeMap

可定製的樹映射器。

用法:

package scala.quoted
trait Snippet0 { self: runtime.QuoteUnpickler & scala.quoted.runtime.QuoteMatching &    scala.quoted.Quotes =>
  val QuoteUnpickler = self
  val QuoteMatching = self
  val Quotes = self
  trait Snippet1 { self: Quotes.reflect.type /*Quotes.reflectModule*/ &    Quotes.reflectModule =>
    val reflect = self
    val reflectModule = self
    trait Snippet2 { self: reflectModule.TreeMap =>
      val TreeMap = self
      class MyTreeMap extends TreeMap {
        override def transformTree(tree: Tree)(owner: Symbol): Tree = ???
      }
    }
  }
}

源碼:

Quotes.scala

相關用法


注:本文由純淨天空篩選整理自scala-lang.org大神的英文原創作品 reflectModule.TreeMap。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。