trait SemanticdbIndex extends SemanticContext
An index for looking up data in a scala.meta.Database.
- Alphabetic
- By Inheritance
- SemanticdbIndex
- SemanticContext
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
database: Database
The underlying raw database.
-
abstract
def
denotation(tree: Tree): Option[Denotation]
Lookup denotation of this tree.
Lookup denotation of this tree.
Shorthand method for symbol(tree).flatMap(denotation).
-
abstract
def
denotation(symbol: Symbol): Option[Denotation]
Lookup denotation of this symbol.
-
abstract
def
names: Seq[ResolvedName]
The resolved names in this database.
The resolved names in this database.
Includes resolved name in synthetics, such as inferred implicits/types.
-
abstract
def
symbol(tree: Tree): Option[Symbol]
Lookup symbol at this tree.
Lookup symbol at this tree.
This method returns the same result as symbol(Tree.Position) in most cases but handles some special cases: - when tree is Term/Type.Select(_, name), query by name.position - workaround for https://github.com/scalameta/scalameta/issues/1083
-
abstract
def
symbol(position: scala.meta.Position): Option[Symbol]
Lookup symbol at this position.
-
abstract
def
classpath: scala.meta.Classpath
Classpath built this SemanticdbIndex.
Classpath built this SemanticdbIndex.
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0)
-
abstract
def
withDocuments(documents: Seq[Document]): SemanticdbIndex
Build new SemanticdbIndex with only these documents.
Build new SemanticdbIndex with only these documents.
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0)
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
documents: Seq[Document]
Get all documents in this index
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
inputs: Seq[scala.meta.Input]
Get all Input in this index.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
messages: Seq[Message]
Get all messages in this index.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
symbols: Seq[ResolvedSymbol]
Get all symbols in this index.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
synthetics: Seq[Synthetic]
Get all synthetics in this index.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- object Symbol