Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/scala.quoted/Quotes/reflectModule/RefModule

RefModule

scala.quoted.Quotes.reflectModule.RefModule

Methods of the module objectval Ref

Attributes

Source
Quotes.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type
Quotes.this.reflectModule.this.Ref.type

Members list

Value members

Abstract methods

Create a reference tree from a symbol

Create a reference tree from a symbol

Ifsym refers to a class memberfoo in classC, returns a tree representingC.this.foo.

Ifsym refers to an object memberfoo in object C, itself in prefixpre (which might include.this, if it contains a class), returnspre.C.foo.

Ifsym refers to a local definitionfoo, returns a tree representingfoo.

Attributes

Note

In all cases, the constructed tree should only be spliced into the places where such accesses make sense. For example, it is incorrect to haveC.this.foo outside the class body ofC, or havefoo outside the lexical scope for the definition offoo.

Source
Quotes.scala

A tree representing the same reference as the given type

A tree representing the same reference as the given type

Attributes

Source
Quotes.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp