scala.meta.syntactic.parsers

AbstractParser

Related Doc: package parsers

abstract class AbstractParser extends AnyRef

Self Type
AbstractParser
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AbstractParser
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractParser()

Type Members

  1. implicit class NameToName extends AnyRef

  2. sealed abstract class OpCtx[T] extends AnyRef

  3. case class OpInfo[T](lhs: T, operator: internal.ast.Term.Name, targs: collection.immutable.List[internal.ast.Type])(implicit evidence$5: OpCtx[T]) extends Product with Serializable

  4. trait PatternContextSensitive extends AnyRef

    Methods which implicitly propagate the context in which they were called: either in a pattern context or not.

    Methods which implicitly propagate the context in which they were called: either in a pattern context or not. Formerly, this was threaded through numerous methods as boolean isPattern.

  5. trait SeqContextSensitive extends PatternContextSensitive

    Methods which implicitly propagate whether the initial call took place in a context where sequences are allowed.

    Methods which implicitly propagate whether the initial call took place in a context where sequences are allowed. Formerly, this was threaded through methods as boolean seqOK.

  6. sealed trait TemplateOwner extends AnyRef

  7. trait TokenIterator extends Iterator[Token]

Abstract Value Members

  1. abstract val dialect: Dialect

  2. abstract val in: TokenIterator

  3. abstract val origin: Origin

  4. abstract def parseStartRule: () ⇒ internal.ast.Source

  5. abstract def xmlLiteral(): internal.ast.Term

  6. abstract def xmlLiteralPattern(): internal.ast.Pat

Concrete Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. object InfixMode extends Enumeration

    Modes for infix types.

  5. object OpCtx

  6. object OwnedByClass extends TemplateOwner

  7. object OwnedByObject extends TemplateOwner

  8. object OwnedByTrait extends TemplateOwner

  9. def accept[T](implicit arg0: TokenMetadata[T]): Unit

    Consume one token of the specified type, or signal an error if it is not there.

  10. def acceptOpt[T](implicit arg0: TokenMetadata[T]): Unit

    If current token is T consume it.

  11. def acceptStatSep(): Unit

    semi = nl {nl} | `;`
    nl  = `\n' // where allowed
  12. def acceptStatSepOpt(): Unit

  13. def accessModifierOpt(): Option[internal.ast.Mod]

    AccessModifier ::= (private | protected) [AccessQualifier]
    AccessQualifier ::= `[' (Id | this) `]'
  14. final def ahead[T](body: ⇒ T): T

    Scoping operator used to temporarily look into the future.

    Scoping operator used to temporarily look into the future. Backs up token iterator before evaluating a block and restores it after.

    Annotations
    @inline()
  15. def annot(): Annot

  16. def annotTypeRest(t: internal.ast.Type): internal.ast.Type

  17. def annots(skipNewLines: Boolean): collection.immutable.List[Annot]

    Annotations      ::= {`@' SimpleType {ArgumentExprs}}
    ConsrAnnotations ::= {`@' SimpleType ArgumentExprs}
  18. def argsToTerm(args: collection.immutable.List[Arg]): internal.ast.Term

  19. def argumentExprs(): collection.immutable.List[Arg]

    ArgumentExprs ::= `(' [Exprs] `)'
                    | [nl] BlockExpr
  20. def argumentExprsOrPrefixExpr(): collection.immutable.List[Arg]

  21. def argumentPatterns(): collection.immutable.List[Arg]

  22. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  23. def assignmentToMaybeNamedArg(tree: internal.ast.Term): Arg

    Translates an Assign(_, _) node to AssignOrNamedArg(_, _) if the lhs is a simple ident.

    Translates an Assign(_, _) node to AssignOrNamedArg(_, _) if the lhs is a simple ident. Otherwise returns unchanged.

  24. def block(): internal.ast.Term

    Block ::= BlockStatSeq
    Note

    Return tree does not carry position.

  25. def blockExpr(): internal.ast.Term

    BlockExpr ::= `{' (CaseClauses | Block) `}'
  26. def blockStatSeq(): collection.immutable.List[internal.ast.Stat]

    BlockStatSeq ::= { BlockStat semi } [ResultExpr]
    BlockStat    ::= Import
                   | Annotations [implicit] [lazy] Def
                   | Annotations LocalModifiers TmplDef
                   | Expr1
                   |
  27. def bound[T](implicit arg0: TokenMetadata[T]): Option[internal.ast.Type]

  28. def caseClause(): internal.ast.Case

  29. def caseClauses(): collection.immutable.List[internal.ast.Case]

    CaseClauses ::= CaseClause {CaseClause}
    CaseClause  ::= case Pattern [Guard] `=>' Block
  30. final def caseSeparated[T](part: ⇒ T): collection.immutable.List[T]

    Annotations
    @inline()
  31. def checkAssoc(op: internal.ast.Name, leftAssoc: Boolean): Unit

  32. def checkHeadAssoc[T](leftAssoc: Boolean)(implicit arg0: OpCtx[T]): Unit

  33. def classDef(mods: collection.immutable.List[internal.ast.Mod]): Class

    ClassDef ::= Id [TypeParamClause] {Annotation}
                 [AccessModifier] ClassParamClauses RequiresTypeOpt ClassTemplateOpt
  34. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def commaSeparated[T](part: ⇒ T): collection.immutable.List[T]

    Annotations
    @inline()
  36. def compilationUnit(): internal.ast.Source

    CompilationUnit ::= {package QualId semi} TopStatSeq
  37. def condExpr(): internal.ast.Term

  38. def constrBlock(): (collection.immutable.List[collection.immutable.List[Arg]], collection.immutable.List[internal.ast.Stat])

    ConstrBlock    ::=  `{' SelfInvocation {semi BlockStat} `}'
  39. def constrExpr(): (collection.immutable.List[collection.immutable.List[Arg]], collection.immutable.List[internal.ast.Stat])

    ConstrExpr      ::=  SelfInvocation
                      |  ConstrBlock
  40. def constructorAnnots(): collection.immutable.List[Annot]

  41. def convertToParam(tree: internal.ast.Term): Option[Param]

    Convert tree to formal parameter.

  42. def convertToParams(tree: internal.ast.Term): collection.immutable.List[Param]

    Convert tree to formal parameter list.

  43. def convertToTypeId(ref: internal.ast.Term.Ref): Option[internal.ast.Type]

  44. def defOrDclOrCtor(mods: collection.immutable.List[internal.ast.Mod]): internal.ast.Stat

    Def    ::= val PatDef
             | var PatDef
             | def FunDef
             | type [nl] TypeDef
             | TmplDef
    Dcl    ::= val PatDcl
             | var PatDcl
             | def FunDcl
             | type [nl] TypeDcl
  45. final def dropAnyBraces[T](body: ⇒ T): T

    Annotations
    @inline()
  46. def ensureEarlyDef(tree: internal.ast.Stat): internal.ast.Stat

  47. def enumerator(isFirst: Boolean, allowNestedIf: Boolean = true): collection.immutable.List[internal.ast.Enum]

  48. def enumerators(): collection.immutable.List[internal.ast.Enum]

    Enumerators ::= Generator {semi Enumerator}
    Enumerator  ::=  Generator
                  |  Guard
                  |  val Pattern1 `=' Expr
  49. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  51. def existentialStats(): collection.immutable.List[internal.ast.Stat]

  52. def expr(location: Location): internal.ast.Term

  53. def expr(): internal.ast.Term

    Expr       ::= (Bindings | [`implicit'] Id | `_')  `=>' Expr
                 | Expr1
    ResultExpr ::= (Bindings | Id `:' CompoundType) `=>' Block
                 | Expr1
    Expr1      ::= if `(' Expr `)' {nl} Expr [[semi] else Expr]
                 | try (`{' Block `}' | Expr) [catch `{' CaseClauses `}'] [finally Expr]
                 | while `(' Expr `)' {nl} Expr
                 | do Expr [semi] while `(' Expr `)'
                 | for (`(' Enumerators `)' | `{' Enumerators `}') {nl} [yield] Expr
                 | throw Expr
                 | return [Expr]
                 | [SimpleExpr `.'] Id `=' Expr
                 | SimpleExpr1 ArgumentExprs `=' Expr
                 | PostfixExpr Ascription
                 | PostfixExpr match `{' CaseClauses `}'
    Bindings   ::= `(' [Binding {`,' Binding}] `)'
    Binding    ::= (Id | `_') [`:' Type]
    Ascription ::= `:' CompoundType
                 | `:' Annotation {Annotation}
                 | `:' `_' `*'
  54. def exprSimpleType(): internal.ast.Type

  55. def exprTypeArgs(): collection.immutable.List[internal.ast.Type]

  56. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  57. def finishBinaryOp[T](opinfo: OpInfo[T], rhs: T)(implicit arg0: OpCtx[T]): T

  58. def finishPostfixOp(base: collection.immutable.List[OpInfo[collection.immutable.List[Arg]]], opinfo: OpInfo[collection.immutable.List[Arg]]): collection.immutable.List[Arg]

  59. def funDefOrDclOrCtor(mods: collection.immutable.List[internal.ast.Mod]): internal.ast.Stat

    FunDef ::= FunSig [`:' Type] `=' [`macro'] Expr
            |  FunSig [nl] `{' Block `}'
            |  `this' ParamClause ParamClauses
                   (`=' ConstrExpr | [nl] ConstrBlock)
    FunDcl ::= FunSig [`:' Type]
    FunSig ::= id [FunTypeParamClause] ParamClauses
  60. def funDefRest(mods: collection.immutable.List[internal.ast.Mod], name: internal.ast.Term.Name): internal.ast.Stat

  61. def generator(eqOK: Boolean, allowNestedIf: Boolean = true): collection.immutable.List[internal.ast.Enum]

    Generator ::= Pattern1 (`<-' | `=') Expr [Guard]
  62. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  63. def guard(): Option[internal.ast.Term]

    Guard ::= if PostfixExpr
  64. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  65. def implicitClosure(location: Location): internal.ast.Term.Function

    Expr ::= implicit Id => Expr
  66. def importClause(): Clause

    ImportExpr ::= StableId `.' (Id | `_' | ImportSelectors)
  67. def importSelector(): internal.ast.Selector

    ImportSelector ::= Id [`=>' Id | `=>' `_']
  68. def importSelectors(): collection.immutable.List[internal.ast.Selector]

    ImportSelectors ::= `{' {ImportSelector `,'} (ImportSelector | `_') `}'
  69. def importStmt(): Import

    Import  ::= import ImportExpr {`,' ImportExpr}
  70. def importWildcardOrName(): internal.ast.Selector

  71. final def inBraces[T](body: ⇒ T): T

    Annotations
    @inline()
  72. final def inBracesOrError[T](body: ⇒ T, alt: T): T

    Annotations
    @inline()
  73. final def inBracesOrNil[T](body: ⇒ collection.immutable.List[T]): collection.immutable.List[T]

    Annotations
    @inline()
  74. final def inBracesOrUnit[T](body: ⇒ internal.ast.Term): internal.ast.Term

    Annotations
    @inline()
  75. final def inBrackets[T](body: ⇒ T): T

    Annotations
    @inline()
  76. final def inParens[T](body: ⇒ T): T

    Methods inParensOrError and similar take a second argument which, should the next token not be the expected opener (e.g.

    Methods inParensOrError and similar take a second argument which, should the next token not be the expected opener (e.g. token.() will be returned instead of the contents of the groupers. However in all cases accept[(] will be called, so a parse error will still result. If the grouping is optional, token should be tested before calling these methods.

    Annotations
    @inline()
  77. final def inParensOrError[T](body: ⇒ T, alt: T): T

    Annotations
    @inline()
  78. final def inParensOrNil[T](body: ⇒ collection.immutable.List[T]): collection.immutable.List[T]

    Annotations
    @inline()
  79. final def inParensOrUnit[T, Ret >: Lit](body: ⇒ Ret): Ret

    Annotations
    @inline()
  80. def interpolate[Ctx, Ret](arg: () ⇒ Ctx, result: (internal.ast.Term.Name, collection.immutable.List[String], collection.immutable.List[Ctx]) ⇒ Ret): Ret

  81. def interpolatePat(): Interpolate

  82. def interpolateTerm(): Interpolate

  83. def isIdentAnd(pred: (String) ⇒ Boolean): Boolean

  84. def isIdentExcept(except: String): Boolean

  85. def isIdentOf(name: String): Boolean

  86. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  87. def isRawBar: Boolean

  88. def isRawStar: Boolean

  89. def isUnaryOp: Boolean

  90. def literal(isNegated: Boolean = false): Lit

    SimpleExpr    ::= literal
                    | symbol
                    | null
  91. def localDef(implicitMod: Option[Implicit]): internal.ast.Stat

  92. def localModifiers(): collection.immutable.List[internal.ast.Mod]

    LocalModifiers ::= {LocalModifier}
    LocalModifier  ::= abstract | final | sealed | implicit | lazy
  93. def makeTuple[T <: internal.ast.Tree](body: collection.immutable.List[T], zero: () ⇒ T, tuple: (collection.immutable.List[T]) ⇒ T): T

  94. def makeTuplePatParens(bodyf: ⇒ collection.immutable.List[Arg]): internal.ast.Pat

  95. def makeTupleTerm(body: collection.immutable.List[internal.ast.Term]): internal.ast.Term

  96. def makeTupleTermParens(bodyf: ⇒ collection.immutable.List[internal.ast.Term]): internal.ast.Term

  97. def makeTupleType(body: collection.immutable.List[internal.ast.Type]): internal.ast.Type

  98. def mixinQualifierOpt(): Option[String]

    MixinQualifier ::= `[' Id `]'
  99. def mkBlock(stats: collection.immutable.List[internal.ast.Stat]): internal.ast.Term

  100. def modifiers(isLocal: Boolean = false): collection.immutable.List[internal.ast.Mod]

    Modifiers ::= {Modifier}
    Modifier  ::= LocalModifier
                |  AccessModifier
                |  override
  101. def multipleArgumentExprs(): collection.immutable.List[collection.immutable.List[Arg]]

    A succession of argument lists.

  102. def name[T](ctor: (String, Boolean) ⇒ T, advance: Boolean): T

  103. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  104. def newLineOpt(): Unit

  105. def newLineOptWhenFollowedBy[T](implicit arg0: TokenMetadata[T]): Unit

  106. def newLineOptWhenFollowing(p: (Token) ⇒ Boolean): Unit

  107. def newLinesOpt(): Unit

  108. def next(): Token

  109. object noSeq extends SeqContextSensitive

    The implementation for parsing inside of patterns at points where sequences are disallowed.

  110. def nonLocalDefOrDcl: internal.ast.Stat

  111. final def notify(): Unit

    Definition Classes
    AnyRef
  112. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  113. def objectDef(mods: collection.immutable.List[internal.ast.Mod]): Object

    ObjectDef       ::= Id ClassTemplateOpt
  114. def opctx[T](implicit ctx: OpCtx[T]): OpCtx[T]

  115. object outPattern extends PatternContextSensitive

    The implementation of the context sensitive methods for parsing outside of patterns.

  116. def packageObject(): Object

  117. def packageOrPackageObject(): internal.ast.Stat

  118. def param(ownerIsCase: Boolean, ownerIsType: Boolean, isImplicit: Boolean): Param

  119. def paramClauses(ownerIsType: Boolean, ownerIsCase: Boolean = false): collection.immutable.List[collection.immutable.List[Param]]

    ParamClauses      ::= {ParamClause} [[nl] `(' implicit Params `)']
    ParamClause       ::= [nl] `(' [Params] `)'
    Params            ::= Param {`,' Param}
    Param             ::= {Annotation} Id [`:' ParamType] [`=' Expr]
    ClassParamClauses ::= {ClassParamClause} [[nl] `(' implicit ClassParams `)']
    ClassParamClause  ::= [nl] `(' [ClassParams] `)'
    ClassParams       ::= ClassParam {`,' ClassParam}
    ClassParam        ::= {Annotation}  [{Modifier} (`val' | `var')] Id [`:' ParamType] [`=' Expr]
  120. def paramType(): Arg

    ParamType ::= Type | `=>' Type | Type `*'
  121. def parseCase(): internal.ast.Case

  122. def parseCtorRef(): internal.ast.Ctor.Ref

  123. def parseEnum(): internal.ast.Enum

  124. def parseMod(): internal.ast.Mod

  125. def parseParam(): Param

    These are alternative entry points for quasiquotes.

  126. def parsePat(): Arg

  127. def parseRule[T](rule: (AbstractParser.this.type) ⇒ T): T

  128. def parseSelector(): internal.ast.Selector

  129. def parseSource(): internal.ast.Source

    This is the general parse entry point.

  130. def parseStat(): internal.ast.Stat

    This is the alternative entry point for repl, script runner, toolbox and parsing in macros.

  131. def parseStats(): collection.immutable.List[internal.ast.Stat]

  132. def parseTempl(): internal.ast.Templ

  133. def parseTerm(): internal.ast.Term

    These are alternative entry points for quasiquotes.

  134. def parseTermArg(): Arg

  135. def parseTparam(): Param

  136. def parseType(): Arg

  137. def patDefOrDcl(mods: collection.immutable.List[internal.ast.Mod]): internal.ast.Stat

    PatDef ::= Pattern2 {`,' Pattern2} [`:' Type] `=' Expr
    ValDcl ::= Id {`,' Id} `:' Type
    VarDef ::= PatDef | Id {`,' Id} `:' Type `=' `_'
  138. def path(thisOK: Boolean = true): internal.ast.Term.Ref

    Path       ::= StableId
                |  [Ident `.'] this
    ModType ::= Path [`.' type]
  139. def pattern(): Arg

    Default entry points into some pattern contexts.

  140. def peekingAhead[T](tree: ⇒ T): T

    Perform an operation while peeking ahead.

    Perform an operation while peeking ahead. Recover to original state in case of exception.

    Annotations
    @inline()
  141. def postfixExpr(): internal.ast.Term

    PostfixExpr   ::= InfixExpr [Id [nl]]
    InfixExpr     ::= PrefixExpr
                    | InfixExpr Id [nl] InfixExpr
  142. def prefixExpr(): internal.ast.Term

    PrefixExpr   ::= [`-' | `+' | `~' | `!' | `&'] SimpleExpr
  143. def primaryCtor(ownerIsCase: Boolean): Primary

  144. def qualId(): internal.ast.Term.Ref

    QualId ::= Id {`.' Id}
  145. def readAnnots(part: ⇒ Annot): collection.immutable.List[Annot]

  146. def reduceStack[T](base: collection.immutable.List[OpInfo[T]], top: T, opPrecedence: Int, leftAssoc: Boolean)(implicit arg0: OpCtx[T]): T

  147. def reduceStack[T](base: collection.immutable.List[OpInfo[T]], top: T)(implicit arg0: OpCtx[T]): T

  148. def refineStat(): Option[internal.ast.Stat]

  149. def refineStatSeq(): collection.immutable.List[internal.ast.Stat]

    RefineStatSeq    ::= RefineStat {semi RefineStat}
    RefineStat       ::= Dcl
                       | type TypeDef
                       |
  150. def refinement(): collection.immutable.List[internal.ast.Stat]

    Refinement ::= [nl] `{' RefineStat {semi RefineStat} `}'
  151. val reporter: Reporter

  152. def selector(t: internal.ast.Term): Select

  153. def selectors(t: internal.ast.Term.Ref): internal.ast.Term.Ref

  154. def selfInvocation(): collection.immutable.List[collection.immutable.List[Arg]]

    SelfInvocation  ::= this ArgumentExprs {ArgumentExprs}
  155. object seqOK extends SeqContextSensitive

    The implementation for parsing inside of patterns at points where sequences are allowed.

  156. def seqPatterns(): collection.immutable.List[Arg]

  157. def simpleExpr(): internal.ast.Term

    SimpleExpr    ::= new (ClassTemplate | TemplateBody)
                    |  BlockExpr
                    |  SimpleExpr1 [`_']
    SimpleExpr1   ::= literal
                    |  xLiteral
                    |  Path
                    |  `(' [Exprs] `)'
                    |  SimpleExpr `.' Id
                    |  SimpleExpr TypeArgs
                    |  SimpleExpr1 ArgumentExprs
  158. def simpleExprRest(t: internal.ast.Term, canApply: Boolean): internal.ast.Term

  159. def stableId(): internal.ast.Term.Ref

    StableId ::= Id
              |  Path `.' Id
              |  [id `.'] super [`[' id `]']`.' id
  160. def startInfixType(): internal.ast.Type

  161. def startModType(): internal.ast.Type

  162. def statSeq[T <: internal.ast.Tree](statpf: PartialFunction[Token, T], errorMsg: String = "illegal start of definition"): collection.immutable.List[T]

  163. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  164. def syntaxErrorExpected[T](implicit arg0: TokenMetadata[T]): Nothing

  165. def template(): (collection.immutable.List[internal.ast.Stat], collection.immutable.List[internal.ast.Ctor.Ref], Param, collection.immutable.List[internal.ast.Stat], Boolean)

    ClassTemplate ::= [EarlyDefs with] ClassParents [TemplateBody]
    TraitTemplate ::= [EarlyDefs with] TraitParents [TemplateBody]
    EarlyDefs     ::= `{' [EarlyDef {semi EarlyDef}] `}'
    EarlyDef      ::= Annotations Modifiers PatDef
  166. def templateBody(isPre: Boolean): (Param, collection.immutable.List[internal.ast.Stat])

    TemplateBody ::= [nl] `{' TemplateStatSeq `}'
    isPre

    specifies whether in early initializer (true) or not (false)

  167. def templateBodyOpt(parenMeansSyntaxError: Boolean): (Param, collection.immutable.List[internal.ast.Stat], Boolean)

  168. def templateOpt(owner: TemplateOwner): internal.ast.Templ

    ClassTemplateOpt ::= `extends' ClassTemplate | [[`extends'] TemplateBody]
    TraitTemplateOpt ::= TraitExtends TraitTemplate | [[`extends'] TemplateBody] | `<:' TemplateBody
    TraitExtends     ::= `extends' | `<:'
  169. def templateParents(): collection.immutable.List[internal.ast.Ctor.Ref]

    ClassParents       ::= ModType {`(' [Exprs] `)'} {with ModType}
    TraitParents       ::= ModType {with ModType}
  170. def templateStat: PartialFunction[Token, internal.ast.Stat]

  171. def templateStatSeq(isPre: Boolean): (Param, collection.immutable.List[internal.ast.Stat])

    TemplateStatSeq  ::= [id [`:' Type] `=>'] TemplateStats
    isPre

    specifies whether in early initializer (true) or not (false)

  172. def templateStats(): collection.immutable.List[internal.ast.Stat]

    TemplateStats    ::= TemplateStat {semi TemplateStat}
    TemplateStat     ::= Import
                       | Annotations Modifiers Def
                       | Annotations Modifiers Dcl
                       | Expr1
                       | super ArgumentExprs {ArgumentExprs}
                       |
  173. def termName(advance: Boolean = true): internal.ast.Term.Name

  174. def tmplDef(mods: collection.immutable.List[internal.ast.Mod]): internal.ast.Member with internal.ast.Stat

    TmplDef ::= [case] class ClassDef
              |  [case] object ObjectDef
              |  [override] trait TraitDef
  175. def toString(): String

    Definition Classes
    AnyRef → Any
  176. def token: Token

  177. final def tokenSeparated[Sep, T](sepFirst: Boolean, part: ⇒ T)(implicit arg0: TokenMetadata[Sep]): collection.immutable.List[T]

    ,or if sepFirst is true,

    part { `sep` part }

    ,or if sepFirst is true,

    { `sep` part }

    . { sep part } }}} part { sep part } }}}

  178. def topLevelTmplDef: internal.ast.Member with internal.ast.Stat

    Hook for IDE, for top-level classes/objects.

  179. def topStat: PartialFunction[Token, internal.ast.Stat]

  180. def topStatSeq(): collection.immutable.List[internal.ast.Stat]

    TopStatSeq ::= TopStat {semi TopStat}
    TopStat ::= Annotations Modifiers TmplDef
              | Packaging
              | package object objectDef
              | Import
              |
  181. def traitDef(mods: collection.immutable.List[internal.ast.Mod]): Trait

    TraitDef ::= Id [TypeParamClause] RequiresTypeOpt TraitTemplateOpt
  182. def typ(): internal.ast.Type

    These are default entry points into the pattern context sensitive methods: they are all initiated from non-pattern context.

  183. def typeBounds(): Bounds

    TypeBounds ::= [`>:' Type] [`<:' Type]
  184. def typeDefOrDcl(mods: collection.immutable.List[internal.ast.Mod]): internal.ast.Member.Type with internal.ast.Stat

    TypeDef ::= type Id [TypeParamClause] `=' Type
              | FunSig `=' Expr
    TypeDcl ::= type Id [TypeParamClause] TypeBounds
  185. def typeName(advance: Boolean = true): internal.ast.Type.Name

  186. def typeOrInfixType(location: Location): internal.ast.Type

  187. def typeParam(annots: collection.immutable.List[Annot], ownerIsType: Boolean, ctxBoundsAllowed: Boolean): Param

  188. def typeParamClauseOpt(ownerIsType: Boolean, ctxBoundsAllowed: Boolean): collection.immutable.List[Param]

    TypeParamClauseOpt    ::= [TypeParamClause]
    TypeParamClause       ::= `[' VariantTypeParam {`,' VariantTypeParam} `]']
    VariantTypeParam      ::= {Annotation} [`+' | `-'] TypeParam
    FunTypeParamClauseOpt ::= [FunTypeParamClause]
    FunTypeParamClause    ::= `[' TypeParam {`,' TypeParam} `]']
    TypeParam             ::= Id TypeParamClauseOpt TypeBounds {<% Type} {":" Type}
  189. def typedOpt(): Option[internal.ast.Type]

    TypedOpt ::= [`:' Type]
  190. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  193. def wildcardType(): internal.ast.Type

    WildcardType ::= `_' TypeBounds
  194. object xmlSeqOK extends SeqContextSensitive

    For use from xml pattern, where sequence is allowed and encouraged.

  195. def xmlSeqPatterns(): collection.immutable.List[Arg]

Inherited from AnyRef

Inherited from Any

Ungrouped