class ScalametaParser extends AnyRef

Self Type
ScalametaParser
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalametaParser
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalametaParser(input: Input, dialect: Dialect)

Type Members

  1. trait CanEndStat extends AnyRef
  2. trait CantStartStat extends AnyRef
  3. trait CaseDefEnd extends AnyRef
  4. trait CaseIntro extends AnyRef
  5. trait CloseDelim extends AnyRef
  6. trait DclIntro extends AnyRef
  7. trait DefIntro extends AnyRef
  8. trait ExprIntro extends AnyRef
  9. case class IndexPos (index: Int) extends Pos with Product with Serializable
  10. sealed abstract class InfixContext extends AnyRef
  11. class InvalidModCombination [M1 <: Mod, M2 <: Mod] extends AnyRef
  12. trait LineEnd extends AnyRef
  13. trait Literal extends AnyRef
  14. trait LocalModifier extends AnyRef
  15. trait Modifier extends AnyRef
  16. trait NonlocalModifier extends AnyRef
  17. trait NumericLiteral extends AnyRef
  18. 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.

  19. sealed trait Pos extends AnyRef
  20. 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.

  21. trait StatSep extends AnyRef
  22. trait StatSeqEnd extends AnyRef
  23. trait TemplateIntro extends AnyRef
  24. sealed trait TemplateOwner extends AnyRef
  25. trait TokenIterator extends Iterator[Token]
  26. case class TokenPos (token: Token) extends Pos with Product with Serializable
  27. case class TreePos (tree: Tree) extends Pos with Product with Serializable
  28. trait Trivia extends AnyRef
  29. trait TypeIntro extends AnyRef
  30. trait Whitespace extends AnyRef
  31. implicit class XtensionTokenIndex extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from ScalametaParser to any2stringadd[ScalametaParser] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ScalametaParser, B)
    Implicit
    This member is added by an implicit conversion from ScalametaParser to ArrowAssoc[ScalametaParser] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def accept[T <: Token](implicit arg0: TokenInfo[T]): Unit

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

  7. def acceptOpt[T <: Token](implicit arg0: TokenInfo[T]): Unit

    If current token is T consume it.

  8. def acceptStatSep(): Unit

    semi = nl {nl} | `;'
    nl  = `\n' // where allowed
  9. def acceptStatSepOpt(): Unit
  10. def accessModifier(): Mod
  11. def accessModifierOpt(): Option[Mod]

    AccessModifier ::= (private | protected) [AccessQualifier]
    AccessQualifier ::= `[' (Id | this) `]'
  12. 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()
  13. def annots(skipNewLines: Boolean, allowArgss: Boolean = true): collection.immutable.List[Annot]

    Annotations      ::= {`@' SimpleType {ArgumentExprs}}
    ConsrAnnotations ::= {`@' SimpleType ArgumentExprs}
  14. def argumentExpr(): Arg
  15. def argumentExprs(): collection.immutable.List[Arg]

    ArgumentExprs ::= `(' [Exprs] `)'
                    | [nl] BlockExpr
  16. def argumentExprsOrPrefixExpr(): collection.immutable.List[Arg]
  17. def argumentPattern(): Arg
  18. def argumentPatterns(): collection.immutable.List[Arg]
  19. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  20. def atPos[T <: Tree](start: Pos, end: Pos)(body: ⇒ T): T
  21. def auto: AutoPos.type
  22. def autoPos[T <: Tree](body: ⇒ T): T
  23. def batchSource(): Source
  24. def block(): Term

    Block ::= BlockStatSeq
    Note

    Return tree does not carry position.

  25. def blockExpr(): Term

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

    BlockStatSeq ::= { BlockStat semi } [ResultExpr]
    BlockStat    ::= Import
                   | Annotations [implicit] [lazy] Def
                   | Annotations LocalModifiers TmplDef
                   | Expr1
                   |
  27. def bound[T <: Token](implicit arg0: TokenInfo[T]): Option[Type]
  28. def caseClause(): Case
  29. def caseClauses(): collection.immutable.List[Case]

    CaseClauses ::= CaseClause {CaseClause}
    CaseClause  ::= case Pattern [Guard] `=>' Block
  30. def checkAssoc(op: Term.Name, leftAssoc: Boolean): Unit
  31. def classDef(mods: collection.immutable.List[Mod]): Class

    ClassDef ::= Id [TypeParamClause] {Annotation}
                 [AccessModifier] ClassParamClauses RequiresTypeOpt ClassTemplateOpt
  32. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def commaSeparated[T <: Tree](part: ⇒ T)(implicit arg0: AstInfo[T]): collection.immutable.List[T]
    Annotations
    @inline()
  34. def condExpr(): Term
  35. def constrBlock(): Block

    ConstrBlock    ::=  `{' SelfInvocation {semi BlockStat} `}'
  36. def constrExpr(): Term

    ConstrExpr      ::=  SelfInvocation
                      |  ConstrBlock
  37. def constructorAnnots(): collection.immutable.List[Annot]
  38. def constructorCall(tpe: Type, allowArgss: Boolean = true): Call
  39. def convertToParam(tree: Term): Option[Param]

    Convert tree to formal parameter.

  40. def convertToParams(tree: Term): collection.immutable.List[Param]

    Convert tree to formal parameter list.

  41. def convertToTypeId(ref: Term.Ref): Option[Type]
  42. implicit val currentDialect: Dialect
  43. def defOrDclOrSecondaryCtor(mods: collection.immutable.List[Mod]): Stat

    Def    ::= val PatDef
             | var PatDef
             | def FunDef
             | type [nl] TypeDef
             | TmplDef
    Dcl    ::= val PatDcl
             | var PatDcl
             | def FunDcl
             | type [nl] TypeDcl
  44. final def dropAnyBraces[T](body: ⇒ T): T
    Annotations
    @inline()
  45. def dropTrivialBlock(term: Term): Term
  46. def ellipsis[T <: Tree](rank: Int, astInfo: AstInfo[T], extraSkip: ⇒ Unit = {})(implicit arg0: AstInfo[T]): T
  47. def ensureEarlyDef(tree: Stat): Stat
  48. def ensuring(cond: (ScalametaParser) ⇒ Boolean, msg: ⇒ Any): ScalametaParser
    Implicit
    This member is added by an implicit conversion from ScalametaParser to Ensuring[ScalametaParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  49. def ensuring(cond: (ScalametaParser) ⇒ Boolean): ScalametaParser
    Implicit
    This member is added by an implicit conversion from ScalametaParser to Ensuring[ScalametaParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  50. def ensuring(cond: Boolean, msg: ⇒ Any): ScalametaParser
    Implicit
    This member is added by an implicit conversion from ScalametaParser to Ensuring[ScalametaParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  51. def ensuring(cond: Boolean): ScalametaParser
    Implicit
    This member is added by an implicit conversion from ScalametaParser to Ensuring[ScalametaParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  52. def enumerator(isFirst: Boolean, allowNestedIf: Boolean = true): collection.immutable.List[Enumerator]
  53. def enumerators(): collection.immutable.List[Enumerator]

    Enumerators ::= Generator {semi Enumerator}
    Enumerator  ::=  Generator
                  |  Guard
                  |  val Pattern1 `=' Expr
  54. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  55. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  56. def existentialStats(): collection.immutable.List[Stat]
  57. def expr(location: Location): Term
  58. def expr(): 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}
                 | `:' `_' `*'
  59. def exprSimpleType(): Type
  60. def exprTypeArgs(): collection.immutable.List[Type]
  61. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  62. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ScalametaParser to StringFormat[ScalametaParser] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  63. def funDefOrDclOrSecondaryCtor(mods: collection.immutable.List[Mod]): Stat

    FunDef ::= FunSig [`:' Type] `=' [`macro'] Expr
            |  FunSig [nl] `{' Block `}'
            |  `this' ParamClause ParamClauses
                   (`=' ConstrExpr | [nl] ConstrBlock)
    FunDcl ::= FunSig [`:' Type]
    FunSig ::= id [FunTypeParamClause] ParamClauses
  64. def funDefRest(mods: collection.immutable.List[Mod]): Stat
  65. def generator(eqOK: Boolean, allowNestedIf: Boolean = true): collection.immutable.List[Enumerator]

    Generator ::= Pattern1 (`<-' | `=') Expr [Guard]
  66. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  67. def guard(): Option[Term]

    Guard ::= if PostfixExpr
  68. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  69. def implicitClosure(location: Location): Term.Function

    Expr ::= implicit Id => Expr
  70. def importStmt(): Import

    Import  ::= import ImportExpr {`,' ImportExpr}
  71. def importWildcardOrName(): Importee
  72. def importee(): Importee

    ImportSelector ::= Id [`=>' Id | `=>' `_']
  73. def importees(): collection.immutable.List[Importee]

    ImportSelectors ::= `{' {ImportSelector `,'} (ImportSelector | `_') `}'
  74. def importer(): Importer

    ImportExpr ::= StableId `.' (Id | `_' | ImportSelectors)
  75. var in: TokenIterator
  76. final def inBraces[T](body: ⇒ T): T
    Annotations
    @inline()
  77. final def inBracesOrError[T](body: ⇒ T, alt: T): T
    Annotations
    @inline()
  78. final def inBracesOrNil[T](body: ⇒ collection.immutable.List[T]): collection.immutable.List[T]
    Annotations
    @inline()
  79. final def inBracesOrUnit[T](body: ⇒ Term): Term
    Annotations
    @inline()
  80. final def inBrackets[T](body: ⇒ T): T
    Annotations
    @inline()
  81. 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.LeftParen) will be returned instead of the contents of the groupers. However in all cases accept[LeftParen] 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()
  82. final def inParensOrError[T](body: ⇒ T, alt: T): T
    Annotations
    @inline()
  83. final def inParensOrNil[T](body: ⇒ collection.immutable.List[T]): collection.immutable.List[T]
    Annotations
    @inline()
  84. final def inParensOrUnit[T, Ret >: Lit](body: ⇒ Ret): Ret
    Annotations
    @inline()
  85. implicit def intToIndexPos(index: Int): IndexPos
  86. def interpolate[Ctx <: Tree, Ret <: Tree](arg: () ⇒ Ctx, result: (Term.Name, collection.immutable.List[Lit], collection.immutable.List[Ctx]) ⇒ Ret): Ret
  87. def interpolatePat(): Interpolate
  88. def interpolateTerm(): Interpolate
  89. def isBackquoted: Boolean
  90. def isColonWildcardStar: Boolean
  91. def isIdent: Boolean
  92. def isIdentAnd(pred: (String) ⇒ Boolean): Boolean
  93. def isIdentExcept(except: String): Boolean
  94. def isIdentOf(name: String): Boolean
  95. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  96. def isRawAmpersand: Boolean
  97. def isRawBar: Boolean
  98. def isRawStar: Boolean
  99. def isSpliceFollowedBy(check: ⇒ Boolean): Boolean
  100. def isUnaryOp: Boolean
  101. def literal(isNegated: Boolean = false): Lit

    SimpleExpr    ::= literal
                    | symbol
                    | null
  102. def localDef(implicitMod: Option[Implicit]): Stat
  103. def localModifiers(): collection.immutable.List[Mod]

    LocalModifiers ::= {LocalModifier}
    LocalModifier  ::= abstract | final | sealed | implicit | lazy
  104. def makeTuple[T <: Tree](body: collection.immutable.List[T], zero: () ⇒ T, tuple: (collection.immutable.List[T]) ⇒ T): T
  105. def makeTupleTerm(body: collection.immutable.List[Term]): Term
  106. def makeTupleTermParens(bodyf: ⇒ collection.immutable.List[Term]): Term
  107. def makeTupleType(body: collection.immutable.List[Type]): Type
  108. def mixinQualifier(): Qualifier

    MixinQualifier ::= `[' Id `]'
  109. def modifier(): Mod
  110. def modifiers(isLocal: Boolean = false): collection.immutable.List[Mod]

    Modifiers ::= {Modifier}
    Modifier  ::= LocalModifier
                |  AccessModifier
                |  override
  111. implicit def modsToPos(mods: collection.immutable.List[Mod]): Pos
  112. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  113. def newLineOpt(): Unit
  114. def newLineOptWhenFollowedBy[T <: Token](implicit arg0: TokenInfo[T]): Unit
  115. def newLineOptWhenFollowing(p: (Token) ⇒ Boolean): Unit
  116. def newLinesOpt(): Unit
  117. def next(): Token
  118. def nextOnce(): Token
  119. def nextThrice(): Token
  120. def nextTwice(): Token
  121. def nonLocalDefOrDcl(): Stat
  122. final def notify(): Unit
    Definition Classes
    AnyRef
  123. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  124. def objectDef(mods: collection.immutable.List[Mod]): Object

    ObjectDef       ::= Id ClassTemplateOpt
  125. def onlyAcceptMod[M <: Mod, T <: Token](mods: collection.immutable.List[Mod], errorMsg: String)(implicit classifier: Classifier[Mod, M], tag: ClassTag[M], tokenInfo: TokenInfo[T]): Unit
  126. implicit def optionTreeToPos(tree: Option[Tree]): Pos
  127. def packageDef(): Pkg
  128. def packageObjectDef(): Object
  129. def packageOrPackageObjectDef(): Stat
  130. def param(ownerIsCase: Boolean, ownerIsType: Boolean, isImplicit: Boolean): Param
  131. 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]
  132. def paramType(): Arg

    ParamType ::= Type | `=>' Type | Type `*'
  133. def parseCase(): Case
  134. def parseCtorCall(): Call
  135. def parseEnumerator(): Enumerator
  136. def parseImportee(): Importee
  137. def parseImporter(): Importer
  138. def parseMod(): Mod
  139. def parsePat(): Pat
  140. def parsePatArg(): Arg
  141. def parsePatType(): Pat.Type
  142. def parseQuasiquoteCtor(): Ctor
  143. def parseQuasiquoteMod(): Mod
  144. def parseQuasiquotePat(): Pat
  145. def parseQuasiquotePatArg(): Arg
  146. def parseQuasiquotePatType(): Pat.Type
  147. def parseQuasiquoteStat(): Stat
  148. def parseQuasiquoteTemplate(): Template
  149. def parseRule[T <: Tree](rule: (ScalametaParser.this.type) ⇒ T): T
  150. def parseSource(): Source
  151. def parseStat(): Stat
  152. def parseTemplate(): Template
  153. def parseTerm(): Term
  154. def parseTermArg(): Arg
  155. def parseTermParam(): Param
  156. def parseType(): Type
  157. def parseTypeArg(): Arg
  158. def parseTypeParam(): Param
  159. def parseUnquotePat(): Pat
  160. def parseUnquoteTerm(): Term
  161. lazy val parserTokenPositions: Array[Int]
  162. lazy val parserTokens: Tokens
  163. def patDefOrDcl(mods: collection.immutable.List[Mod]): Stat

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

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

    Default entry points into some pattern contexts.

  166. def patternTyp(): Pat.Type
  167. def patternTypeArgs(): collection.immutable.List[Pat.Type]
  168. def peekingAhead[T](tree: ⇒ T): T

    Perform an operation while peeking ahead.

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

    Annotations
    @inline()
  169. def postfixExpr(): Term

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

    PrefixExpr   ::= [`-' | `+' | `~' | `!' | `&'] SimpleExpr
  171. def primaryCtor(owner: TemplateOwner): Primary
  172. def qualId(): Term.Ref

    QualId ::= Id {`.' Id}
  173. def quasiquoteCtor(): Ctor
  174. def quasiquotePattern(): Arg
  175. def quasiquotePatternArg(): Arg
  176. def quasiquotePatternTyp(): Pat.Type
  177. def quasiquoteTemplate(): Template
  178. def refineStat(): Option[Stat]
  179. def refineStatSeq(): collection.immutable.List[Stat]

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

    Refinement ::= [nl] `{' RefineStat {semi RefineStat} `}'
  181. def rejectMod[M <: Mod](mods: collection.immutable.List[Mod], errorMsg: String)(implicit classifier: Classifier[Mod, M], tag: ClassTag[M]): Unit
  182. def rejectModCombination[M1 <: Mod, M2 <: Mod](mods: collection.immutable.List[Mod], culprit: String)(implicit invalidMod: InvalidModCombination[M1, M2], classifier1: Classifier[Mod, M1], tag1: ClassTag[M1], classifier2: Classifier[Mod, M2], tag2: ClassTag[M2]): Unit
  183. lazy val reporter: Reporter
  184. lazy val scannerTokens: Tokens
  185. def scriptSource(): Source
  186. def secondaryCtor(mods: collection.immutable.List[Mod]): Secondary
  187. def selector(t: Term): Select
  188. def selectors(t: Term): Term.Ref
  189. def selfInvocation(): Term

    SelfInvocation  ::= this ArgumentExprs {ArgumentExprs}
  190. def seqPatterns(): collection.immutable.List[Arg]
  191. def simpleExpr(): Term

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

    CompilationUnit ::= {package QualId semi} TopStatSeq
  194. def stableId(): Term.Ref

    StableId ::= Id
              |  Path `.' Id
              |  [id `.'] super [`[' id `]']`.' id
  195. def startInfixType(): Type
  196. def startModType(): Type
  197. def statSeq[T <: Tree](statpf: PartialFunction[Token, T], errorMsg: String = "illegal start of definition")(implicit arg0: AstInfo[T]): collection.immutable.List[T]
  198. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  199. def syntaxErrorExpected[T <: Token](implicit arg0: TokenInfo[T]): Nothing
  200. def template(): Template

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

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

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

  202. def templateBodyOpt(parenMeansSyntaxError: Boolean): (Param, Option[collection.immutable.List[Stat]])
  203. def templateOpt(owner: TemplateOwner): Template

    ClassTemplateOpt ::= `extends' ClassTemplate | [[`extends'] TemplateBody]
    TraitTemplateOpt ::= TraitExtends TraitTemplate | [[`extends'] TemplateBody] | `<:' TemplateBody
    TraitExtends     ::= `extends' | `<:'
  204. def templateParents(): collection.immutable.List[Call]

    ClassParents       ::= ModType {`(' [Exprs] `)'} {with ModType}
    TraitParents       ::= ModType {with ModType}
  205. def templateStat: PartialFunction[Token, Stat]
  206. def templateStatSeq(isPre: Boolean): (Param, collection.immutable.List[Stat])

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

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

  207. def templateStats(): collection.immutable.List[Stat]

    TemplateStats    ::= TemplateStat {semi TemplateStat}
    TemplateStat     ::= Import
                       | Annotations Modifiers Def
                       | Annotations Modifiers Dcl
                       | Expr1
                       | super ArgumentExprs {ArgumentExprs}
                       |
  208. def termName(advance: Boolean = true): Term.Name
  209. def tmplDef(mods: collection.immutable.List[Mod]): Member with Stat

    TmplDef ::= [case] class ClassDef
              |  [case] object ObjectDef
              |  [override] trait TraitDef
  210. def toString(): String
    Definition Classes
    AnyRef → Any
  211. def token: Token
  212. final def tokenSeparated[Sep <: Token, T <: Tree](sepFirst: Boolean, part: ⇒ T)(implicit arg0: TokenInfo[Sep], arg1: AstInfo[T]): collection.immutable.List[T]

    , or if sepFirst is true,

    part { `sep` part }

    , or if sepFirst is true,

    { `sep` part }

    . if useUnquoteForEllipsis = true, uses direct unquote instead of part

    { sep part } }}} if useUnquoteForEllipsis = true, uses direct unquote instead of part

    part { sep part } }}} if useUnquoteForEllipsis = true, uses direct unquote instead of part

  213. implicit def tokenToTokenPos(token: Token): TokenPos
  214. def topLevelTmplDef: Member with Stat

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

  215. def topStat: PartialFunction[Token, Stat]
  216. def topStatSeq(): collection.immutable.List[Stat]

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

    TraitDef ::= Id [TypeParamClause] RequiresTypeOpt TraitTemplateOpt
  218. implicit def treeToTreePos(tree: Tree): TreePos
  219. def typ(): Type

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

  220. def typeBounds(): Bounds

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

    TypeDef ::= type Id [TypeParamClause] `=' Type
              | FunSig `=' Expr
    TypeDcl ::= type Id [TypeParamClause] TypeBounds
  222. def typeName(advance: Boolean = true): Type.Name
  223. def typeOrInfixType(location: Location): Type
  224. def typeParam(ownerIsType: Boolean, ctxBoundsAllowed: Boolean): Param
  225. 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}
  226. def typedOpt(): Option[Type]

    TypedOpt ::= [`:' Type]
  227. def unquote[T <: Tree](implicit arg0: AstInfo[T]): T
  228. def unquote[T <: Tree](advance: Boolean = true)(implicit arg0: AstInfo[T]): T
  229. def unquoteExpr(): Term
  230. def unquotePattern(): Pat
  231. def unquoteXmlExpr(): Term
  232. def unquoteXmlPattern(): Arg
  233. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  234. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  235. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  236. def xmlLiteralPattern(): Pat
  237. def xmlPat(): Xml
  238. def xmlSeqPatterns(): collection.immutable.List[Arg]
  239. def xmlTerm(): Xml
  240. def →[B](y: B): (ScalametaParser, B)
    Implicit
    This member is added by an implicit conversion from ScalametaParser to ArrowAssoc[ScalametaParser] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
  241. object AutoPos extends Pos with Product with Serializable
  242. object CanEndStat
  243. object CantStartStat
  244. object CaseDefEnd
  245. object CaseIntro
  246. object CloseDelim
  247. object DclIntro
  248. object DefIntro
  249. object ExprIntro
  250. implicit object InvalidFinalAbstract extends InvalidModCombination[Final, Abstract]
  251. implicit object InvalidFinalSealed extends InvalidModCombination[Final, Sealed]
  252. implicit object InvalidOverrideAbstract extends InvalidModCombination[Override, Abstract]
  253. object LineEnd
  254. object Literal
  255. object LocalModifier
  256. object Modifier
  257. object NonlocalModifier
  258. object NumericLiteral
  259. object OwnedByCaseClass extends TemplateOwner
  260. object OwnedByClass extends TemplateOwner
  261. object OwnedByObject extends TemplateOwner
  262. object OwnedByTrait extends TemplateOwner
  263. object StatSep
  264. object StatSeqEnd
  265. object TemplateIntro
  266. object Trivia
  267. object TypeIntro
  268. object Whitespace
  269. object noSeq extends SeqContextSensitive

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

  270. object outPattern extends PatternContextSensitive

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

  271. implicit object patInfixContext extends InfixContext
  272. object seqOK extends SeqContextSensitive

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

  273. object termInfixContext extends InfixContext
  274. object xmlSeqOK extends SeqContextSensitive

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

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ScalametaParser to any2stringadd[ScalametaParser]

Inherited by implicit conversion StringFormat from ScalametaParser to StringFormat[ScalametaParser]

Inherited by implicit conversion Ensuring from ScalametaParser to Ensuring[ScalametaParser]

Inherited by implicit conversion ArrowAssoc from ScalametaParser to ArrowAssoc[ScalametaParser]

Ungrouped