scala.meta.syntactic.parsers

Parser

Related Doc: package parsers

class Parser extends AbstractParser

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Parser
  2. AbstractParser
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Parser(code: String)(implicit dialect: Dialect)

  2. new Parser(origin: Origin)(implicit dialect: Dialect)

Type Members

  1. implicit class NameToName extends AnyRef

    Definition Classes
    AbstractParser
  2. sealed abstract class OpCtx[T] extends AnyRef

    Definition Classes
    AbstractParser
  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

    Definition Classes
    AbstractParser
  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.

    Definition Classes
    AbstractParser
  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.

    Definition Classes
    AbstractParser
  6. sealed trait TemplateOwner extends AnyRef

    Definition Classes
    AbstractParser
  7. trait TokenIterator extends Iterator[Token]

    Definition Classes
    AbstractParser

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.

    Modes for infix types.

    Definition Classes
    AbstractParser
  5. object OpCtx

    Definition Classes
    AbstractParser
  6. object OwnedByClass extends TemplateOwner

    Definition Classes
    AbstractParser
  7. object OwnedByObject extends TemplateOwner

    Definition Classes
    AbstractParser
  8. object OwnedByTrait extends TemplateOwner

    Definition Classes
    AbstractParser
  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.

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

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

    If current token is T consume it.

    If current token is T consume it.

    Definition Classes
    AbstractParser
  11. def acceptStatSep(): Unit

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

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

    AccessModifier ::= (private | protected) [AccessQualifier]
    AccessQualifier ::= `[' (Id | this) `]'
    Definition Classes
    AbstractParser
  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.

    Definition Classes
    AbstractParser
    Annotations
    @inline()
  15. def annot(): Annot

    Definition Classes
    AbstractParser
  16. def annotTypeRest(t: internal.ast.Type): internal.ast.Type

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

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

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

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

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

    Definition Classes
    AbstractParser
  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.

    Definition Classes
    AbstractParser
  24. def block(): internal.ast.Term

    Block ::= BlockStatSeq
    Definition Classes
    AbstractParser
    Note

    Return tree does not carry position.

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

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

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

    Definition Classes
    AbstractParser
  28. def caseClause(): internal.ast.Case

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

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

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

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

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

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

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

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

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

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

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

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

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

    Convert tree to formal parameter.

    Convert tree to formal parameter.

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

    Convert tree to formal parameter list.

    Convert tree to formal parameter list.

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

    Definition Classes
    AbstractParser
  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
    Definition Classes
    AbstractParser
  45. implicit val dialect: Dialect

    Definition Classes
    ParserAbstractParser
  46. final def dropAnyBraces[T](body: ⇒ T): T

    Definition Classes
    AbstractParser
    Annotations
    @inline()
  47. def ensureEarlyDef(tree: internal.ast.Stat): internal.ast.Stat

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

    Definition Classes
    AbstractParser
  49. def enumerators(): collection.immutable.List[internal.ast.Enum]

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

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

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

    Definition Classes
    AbstractParser
  53. def expr(location: Location): internal.ast.Term

    Definition Classes
    AbstractParser
  54. 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}
                 | `:' `_' `*'
    Definition Classes
    AbstractParser
  55. def exprSimpleType(): internal.ast.Type

    Definition Classes
    AbstractParser
  56. def exprTypeArgs(): collection.immutable.List[internal.ast.Type]

    Definition Classes
    AbstractParser
  57. def finalize(): Unit

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

    Definition Classes
    AbstractParser
  59. def finishPostfixOp(base: collection.immutable.List[OpInfo[collection.immutable.List[Arg]]], opinfo: OpInfo[collection.immutable.List[Arg]]): collection.immutable.List[Arg]

    Definition Classes
    AbstractParser
  60. 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
    Definition Classes
    AbstractParser
  61. def funDefRest(mods: collection.immutable.List[internal.ast.Mod], name: internal.ast.Term.Name): internal.ast.Stat

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

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

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

    Guard ::= if PostfixExpr
    Definition Classes
    AbstractParser
  65. def hashCode(): Int

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

    Expr ::= implicit Id => Expr
    Definition Classes
    AbstractParser
  67. def importClause(): Clause

    ImportExpr ::= StableId `.' (Id | `_' | ImportSelectors)
    Definition Classes
    AbstractParser
  68. def importSelector(): internal.ast.Selector

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

    ImportSelectors ::= `{' {ImportSelector `,'} (ImportSelector | `_') `}'
    Definition Classes
    AbstractParser
  70. def importStmt(): Import

    Import  ::= import ImportExpr {`,' ImportExpr}
    Definition Classes
    AbstractParser
  71. def importWildcardOrName(): internal.ast.Selector

    Definition Classes
    AbstractParser
  72. var in: TokenIterator

    Definition Classes
    ParserAbstractParser
  73. final def inBraces[T](body: ⇒ T): T

    Definition Classes
    AbstractParser
    Annotations
    @inline()
  74. final def inBracesOrError[T](body: ⇒ T, alt: T): T

    Definition Classes
    AbstractParser
    Annotations
    @inline()
  75. final def inBracesOrNil[T](body: ⇒ collection.immutable.List[T]): collection.immutable.List[T]

    Definition Classes
    AbstractParser
    Annotations
    @inline()
  76. final def inBracesOrUnit[T](body: ⇒ internal.ast.Term): internal.ast.Term

    Definition Classes
    AbstractParser
    Annotations
    @inline()
  77. final def inBrackets[T](body: ⇒ T): T

    Definition Classes
    AbstractParser
    Annotations
    @inline()
  78. 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.

    Definition Classes
    AbstractParser
    Annotations
    @inline()
  79. final def inParensOrError[T](body: ⇒ T, alt: T): T

    Definition Classes
    AbstractParser
    Annotations
    @inline()
  80. final def inParensOrNil[T](body: ⇒ collection.immutable.List[T]): collection.immutable.List[T]

    Definition Classes
    AbstractParser
    Annotations
    @inline()
  81. final def inParensOrUnit[T, Ret >: Lit](body: ⇒ Ret): Ret

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

    Definition Classes
    AbstractParser
  83. def interpolatePat(): Interpolate

    Definition Classes
    AbstractParser
  84. def interpolateTerm(): Interpolate

    Definition Classes
    AbstractParser
  85. def isIdentAnd(pred: (String) ⇒ Boolean): Boolean

    Definition Classes
    AbstractParser
  86. def isIdentExcept(except: String): Boolean

    Definition Classes
    AbstractParser
  87. def isIdentOf(name: String): Boolean

    Definition Classes
    AbstractParser
  88. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  89. def isRawBar: Boolean

    Definition Classes
    AbstractParser
  90. def isRawStar: Boolean

    Definition Classes
    AbstractParser
  91. def isUnaryOp: Boolean

    Definition Classes
    AbstractParser
  92. def literal(isNegated: Boolean = false): Lit

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

    Definition Classes
    AbstractParser
  94. def localModifiers(): collection.immutable.List[internal.ast.Mod]

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

    Definition Classes
    AbstractParser
  96. def makeTuplePatParens(bodyf: ⇒ collection.immutable.List[Arg]): internal.ast.Pat

    Definition Classes
    AbstractParser
  97. def makeTupleTerm(body: collection.immutable.List[internal.ast.Term]): internal.ast.Term

    Definition Classes
    AbstractParser
  98. def makeTupleTermParens(bodyf: ⇒ collection.immutable.List[internal.ast.Term]): internal.ast.Term

    Definition Classes
    AbstractParser
  99. def makeTupleType(body: collection.immutable.List[internal.ast.Type]): internal.ast.Type

    Definition Classes
    AbstractParser
  100. def mixinQualifierOpt(): Option[String]

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

    Definition Classes
    AbstractParser
  102. def modifiers(isLocal: Boolean = false): collection.immutable.List[internal.ast.Mod]

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

    A succession of argument lists.

    A succession of argument lists.

    Definition Classes
    AbstractParser
  104. def name[T](ctor: (String, Boolean) ⇒ T, advance: Boolean): T

    Definition Classes
    AbstractParser
  105. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  106. def newLineOpt(): Unit

    Definition Classes
    AbstractParser
  107. def newLineOptWhenFollowedBy[T](implicit arg0: TokenMetadata[T]): Unit

    Definition Classes
    AbstractParser
  108. def newLineOptWhenFollowing(p: (Token) ⇒ Boolean): Unit

    Definition Classes
    AbstractParser
  109. def newLinesOpt(): Unit

    Definition Classes
    AbstractParser
  110. def next(): Token

    Definition Classes
    AbstractParser
  111. object noSeq extends SeqContextSensitive

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

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

    Definition Classes
    AbstractParser
  112. def nonLocalDefOrDcl: internal.ast.Stat

    Definition Classes
    AbstractParser
  113. final def notify(): Unit

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

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

    ObjectDef       ::= Id ClassTemplateOpt
    Definition Classes
    AbstractParser
  116. def opctx[T](implicit ctx: OpCtx[T]): OpCtx[T]

    Definition Classes
    AbstractParser
  117. val origin: Origin

    Definition Classes
    ParserAbstractParser
  118. object outPattern extends PatternContextSensitive

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

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

    Definition Classes
    AbstractParser
  119. def packageObject(): Object

    Definition Classes
    AbstractParser
  120. def packageOrPackageObject(): internal.ast.Stat

    Definition Classes
    AbstractParser
  121. def param(ownerIsCase: Boolean, ownerIsType: Boolean, isImplicit: Boolean): Param

    Definition Classes
    AbstractParser
  122. 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]
    Definition Classes
    AbstractParser
  123. def paramType(): Arg

    ParamType ::= Type | `=>' Type | Type `*'
    Definition Classes
    AbstractParser
  124. def parseCase(): internal.ast.Case

    Definition Classes
    AbstractParser
  125. def parseCtorRef(): internal.ast.Ctor.Ref

    Definition Classes
    AbstractParser
  126. def parseEnum(): internal.ast.Enum

    Definition Classes
    AbstractParser
  127. def parseMod(): internal.ast.Mod

    Definition Classes
    AbstractParser
  128. def parseParam(): Param

    These are alternative entry points for quasiquotes.

    These are alternative entry points for quasiquotes.

    Definition Classes
    AbstractParser
  129. def parsePat(): Arg

    Definition Classes
    AbstractParser
  130. def parseRule[T](rule: (Parser.this.type) ⇒ T): T

    Definition Classes
    AbstractParser
  131. def parseSelector(): internal.ast.Selector

    Definition Classes
    AbstractParser
  132. def parseSource(): internal.ast.Source

    This is the general parse entry point.

    This is the general parse entry point.

    Definition Classes
    AbstractParser
  133. def parseStartRule: () ⇒ internal.ast.Source

    The parse starting point depends on whether the origin file is self-contained: if not, the AST will be supplemented.

    The parse starting point depends on whether the origin file is self-contained: if not, the AST will be supplemented.

    Definition Classes
    ParserAbstractParser
  134. def parseStat(): internal.ast.Stat

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

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

    Definition Classes
    AbstractParser
  135. def parseStats(): collection.immutable.List[internal.ast.Stat]

    Definition Classes
    AbstractParser
  136. def parseTempl(): internal.ast.Templ

    Definition Classes
    AbstractParser
  137. def parseTerm(): internal.ast.Term

    These are alternative entry points for quasiquotes.

    These are alternative entry points for quasiquotes.

    Definition Classes
    AbstractParser
  138. def parseTermArg(): Arg

    Definition Classes
    AbstractParser
  139. def parseTparam(): Param

    Definition Classes
    AbstractParser
  140. def parseType(): Arg

    Definition Classes
    AbstractParser
  141. 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 `=' `_'
    Definition Classes
    AbstractParser
  142. def path(thisOK: Boolean = true): internal.ast.Term.Ref

    Path       ::= StableId
                |  [Ident `.'] this
    ModType ::= Path [`.' type]
    Definition Classes
    AbstractParser
  143. def pattern(): Arg

    Default entry points into some pattern contexts.

    Default entry points into some pattern contexts.

    Definition Classes
    AbstractParser
  144. 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.

    Definition Classes
    AbstractParser
    Annotations
    @inline()
  145. def postfixExpr(): internal.ast.Term

    PostfixExpr   ::= InfixExpr [Id [nl]]
    InfixExpr     ::= PrefixExpr
                    | InfixExpr Id [nl] InfixExpr
    Definition Classes
    AbstractParser
  146. def prefixExpr(): internal.ast.Term

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

    Definition Classes
    AbstractParser
  148. def qualId(): internal.ast.Term.Ref

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

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

    Definition Classes
    AbstractParser
  151. def reduceStack[T](base: collection.immutable.List[OpInfo[T]], top: T)(implicit arg0: OpCtx[T]): T

    Definition Classes
    AbstractParser
  152. def refineStat(): Option[internal.ast.Stat]

    Definition Classes
    AbstractParser
  153. def refineStatSeq(): collection.immutable.List[internal.ast.Stat]

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

    Refinement ::= [nl] `{' RefineStat {semi RefineStat} `}'
    Definition Classes
    AbstractParser
  155. val reporter: Reporter

    Definition Classes
    AbstractParser
  156. def selector(t: internal.ast.Term): Select

    Definition Classes
    AbstractParser
  157. def selectors(t: internal.ast.Term.Ref): internal.ast.Term.Ref

    Definition Classes
    AbstractParser
  158. def selfInvocation(): collection.immutable.List[collection.immutable.List[Arg]]

    SelfInvocation  ::= this ArgumentExprs {ArgumentExprs}
    Definition Classes
    AbstractParser
  159. object seqOK extends SeqContextSensitive

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

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

    Definition Classes
    AbstractParser
  160. def seqPatterns(): collection.immutable.List[Arg]

    Definition Classes
    AbstractParser
  161. def simpleExpr(): internal.ast.Term

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

    Definition Classes
    AbstractParser
  163. def stableId(): internal.ast.Term.Ref

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

    Definition Classes
    AbstractParser
  165. def startModType(): internal.ast.Type

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

    Definition Classes
    AbstractParser
  167. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Definition Classes
    AbstractParser
  169. 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
    Definition Classes
    AbstractParser
  170. def templateBody(isPre: Boolean): (Param, collection.immutable.List[internal.ast.Stat])

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

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

    Definition Classes
    AbstractParser
  171. def templateBodyOpt(parenMeansSyntaxError: Boolean): (Param, collection.immutable.List[internal.ast.Stat], Boolean)

    Definition Classes
    AbstractParser
  172. def templateOpt(owner: TemplateOwner): internal.ast.Templ

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

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

    Definition Classes
    AbstractParser
  175. 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)

    Definition Classes
    AbstractParser
  176. def templateStats(): collection.immutable.List[internal.ast.Stat]

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

    Definition Classes
    AbstractParser
  178. 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
    Definition Classes
    AbstractParser
  179. def toString(): String

    Definition Classes
    AnyRef → Any
  180. def token: Token

    Definition Classes
    AbstractParser
  181. 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 } }}}

    Definition Classes
    AbstractParser
  182. val tokens: Vector[Token]

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

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

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

    Definition Classes
    AbstractParser
  184. def topStat: PartialFunction[Token, internal.ast.Stat]

    Definition Classes
    AbstractParser
  185. def topStatSeq(): collection.immutable.List[internal.ast.Stat]

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

    TraitDef ::= Id [TypeParamClause] RequiresTypeOpt TraitTemplateOpt
    Definition Classes
    AbstractParser
  187. def typ(): internal.ast.Type

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

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

    Definition Classes
    AbstractParser
  188. def typeBounds(): Bounds

    TypeBounds ::= [`>:' Type] [`<:' Type]
    Definition Classes
    AbstractParser
  189. 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
    Definition Classes
    AbstractParser
  190. def typeName(advance: Boolean = true): internal.ast.Type.Name

    Definition Classes
    AbstractParser
  191. def typeOrInfixType(location: Location): internal.ast.Type

    Definition Classes
    AbstractParser
  192. def typeParam(annots: collection.immutable.List[Annot], ownerIsType: Boolean, ctxBoundsAllowed: Boolean): Param

    Definition Classes
    AbstractParser
  193. 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}
    Definition Classes
    AbstractParser
  194. def typedOpt(): Option[internal.ast.Type]

    TypedOpt ::= [`:' Type]
    Definition Classes
    AbstractParser
  195. final def wait(): Unit

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

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

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

    WildcardType ::= `_' TypeBounds
    Definition Classes
    AbstractParser
  199. def xmlLiteral(): internal.ast.Term

    the markup parser

    the markup parser

    Definition Classes
    ParserAbstractParser
  200. def xmlLiteralPattern(): internal.ast.Pat

    Definition Classes
    ParserAbstractParser
  201. object xmlSeqOK extends SeqContextSensitive

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

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

    Definition Classes
    AbstractParser
  202. def xmlSeqPatterns(): collection.immutable.List[Arg]

    Definition Classes
    AbstractParser

Inherited from AbstractParser

Inherited from AnyRef

Inherited from Any

Ungrouped