Class

scala.meta.internal.mtags

ScalaToplevelMtags

Related Doc: package mtags

Permalink

class ScalaToplevelMtags extends MtagsIndexer

Custom parser that extracts toplevel members from a Scala source file.

Example input:

package com.zoo
class Animal { class Dog }
object Park { trait Bench }

emits the following symbols: com/zoo/Animal# and com/zoo/Park. The inner classes Animal.Dog and Park.Bench are ignored.

This class exists for performance reasons. The ScalaMtags indexer provides the same functionality but it is much slower. Performance is important because toplevel symbol indexing is on a critical path when users import a new project.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaToplevelMtags
  2. MtagsIndexer
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaToplevelMtags(input: VirtualFile)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def acceptBalancedDelimeters(Open: Int, Close: Int): Unit

    Permalink

    Consumes the token stream until the matching closing delimiter

  5. def acceptTrivia(): Unit

    Permalink

    Consumes the token stream until the next non-trivia token

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def ctor(disambiguator: String, pos: meta.Position, properties: Int): Unit

    Permalink
    Definition Classes
    MtagsIndexer
  9. var currentOwner: String

    Permalink
    Definition Classes
    MtagsIndexer
  10. def currentToken: String

    Permalink
  11. def emitMember(isPackageObject: Boolean): Unit

    Permalink

    Enters a toplevel symbol such as class, trait or object

  12. def emitPackage(): Unit

    Permalink
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def fail(expected: String): Nothing

    Permalink
  16. def failMessage(expected: String): String

    Permalink
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. def index(): TextDocument

    Permalink
    Definition Classes
    MtagsIndexer
  21. def indexRoot(): Unit

    Permalink
    Definition Classes
    ScalaToplevelMtagsMtagsIndexer
  22. val input: VirtualFile

    Permalink
    Definition Classes
    ScalaToplevelMtagsMtagsIndexer
  23. def isDone: Boolean

    Permalink
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def isNewline: Boolean

    Permalink
  26. def language: Language

    Permalink
    Definition Classes
    ScalaToplevelMtagsMtagsIndexer
  27. def method(name: Name, disambiguator: String, kind: Kind, properties: Int): Unit

    Permalink
    Definition Classes
    MtagsIndexer
  28. def method(name: String, disambiguator: String, pos: meta.Position, properties: Int): Unit

    Permalink
    Definition Classes
    MtagsIndexer
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. def newIdentifier: Identifier

    Permalink

    Returns a name and position for the current identifier token

  31. def newPosition: inputs.Position

    Permalink

    Returns position of the current token

  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. def owner: String

    Permalink
    Definition Classes
    MtagsIndexer
  35. def param(name: Name, kind: Kind, properties: Int): Unit

    Permalink
    Definition Classes
    MtagsIndexer
  36. def parsePath(): List[Identifier]

    Permalink

    Consume token stream like "a.b.c" and return List(a, b, c)

  37. def parseStat(): Unit

    Permalink
  38. def parseStats(): Unit

    Permalink
  39. def pkg(ref: Term): Unit

    Permalink
    Definition Classes
    MtagsIndexer
  40. def pkg(name: String, pos: meta.Position): Unit

    Permalink
    Definition Classes
    MtagsIndexer
  41. def require(isOk: Boolean, expected: String): Unit

    Permalink
  42. def symbol(signature: Descriptor): String

    Permalink
    Definition Classes
    MtagsIndexer
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  44. def term(name: Term.Name, kind: Kind, properties: Int): Unit

    Permalink
    Definition Classes
    MtagsIndexer
  45. def term(name: String, pos: meta.Position, kind: Kind, properties: Int): Unit

    Permalink
    Definition Classes
    MtagsIndexer
  46. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  47. def tparam(name: Name, kind: Kind, properties: Int): Unit

    Permalink
    Definition Classes
    MtagsIndexer
  48. def tpe(name: Name, kind: Kind, properties: Int): Unit

    Permalink
    Definition Classes
    MtagsIndexer
  49. def tpe(name: String, pos: meta.Position, kind: Kind, properties: Int): Unit

    Permalink
    Definition Classes
    MtagsIndexer
  50. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. def withOwner[A](owner: String = currentOwner)(thunk: ⇒ A): A

    Permalink
    Definition Classes
    MtagsIndexer

Inherited from MtagsIndexer

Inherited from AnyRef

Inherited from Any

Ungrouped