Packages

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. Protected

Instance Constructors

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

Type Members

  1. trait CanContinueOnNextLine extends AnyRef
  2. trait CanEndStat extends AnyRef
  3. trait CanStartColonEol extends AnyRef
  4. trait CanStartIndent extends AnyRef
  5. trait CantStartStat extends AnyRef
  6. trait CaseDefEnd extends AnyRef
  7. trait CaseIntro extends AnyRef
  8. trait CloseDelim extends AnyRef
  9. trait DclIntro extends AnyRef
  10. trait DefIntro extends AnyRef
  11. trait EndMarkerIntro extends AnyRef
  12. trait EndMarkerWord extends AnyRef
  13. sealed trait EndPos extends AnyRef
  14. trait ExprIntro extends AnyRef
  15. case class IndexPos(index: Int) extends Pos with Product with Serializable
  16. sealed abstract class InfixContext extends AnyRef
  17. trait InlineMatchMod extends AnyRef
  18. class InvalidModCombination[M1 <: Mod, M2 <: Mod] extends AnyRef
  19. trait KwExtension extends AnyRef
  20. class LazyTokenIterator extends TokenIterator
  21. trait LineEnd extends AnyRef
  22. trait Literal extends AnyRef
  23. trait LocalModifier extends AnyRef
  24. trait MacroQuotedIdent extends AnyRef
  25. trait MacroSplicedIdent extends AnyRef
  26. trait Modifier extends AnyRef
  27. trait MultilineComment extends AnyRef
  28. trait NonParamsModifier extends AnyRef
  29. trait NonlocalModifier extends AnyRef
  30. trait NumericLiteral extends AnyRef
  31. 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.

  32. sealed trait Pos extends StartPos with EndPos
  33. case class RegionBrace(indent: Int, indentOnArrow: Boolean) extends SepRegion with Product with Serializable
  34. case class RegionCase(indent: Int) extends SepRegion with Product with Serializable
  35. case class RegionEnum(indent: Int) extends SepRegion with Product with Serializable
  36. case class RegionIndent(indent: Int, closeOnNonCase: Boolean) extends SepRegion with Product with Serializable
  37. case class RegionIndentEnum(indent: Int) extends SepRegion with Product with Serializable
  38. case class RegionParen(canProduceLF: Boolean) extends SepRegion with Product with Serializable
  39. sealed trait SepRegion extends AnyRef
  40. 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.

  41. trait SoftModifier extends AnyRef
  42. sealed trait StartPos extends AnyRef
  43. trait StatSep extends AnyRef
  44. trait StatSeqEnd extends AnyRef
  45. trait StopScanToken extends AnyRef
  46. trait TemplateIntro extends AnyRef
  47. sealed trait TemplateOwner extends AnyRef
  48. trait TokenIterator extends Iterator[Token]
  49. case class TokenPos(token: Token) extends Pos with Product with Serializable
  50. case class TokenRef(token: Token, pos: Int, nextPos: Int, pointPos: Int) extends Product with Serializable
  51. case class TreePos(tree: Tree) extends Pos with Product with Serializable
  52. trait Trivia extends AnyRef
  53. trait TypeIntro extends AnyRef
  54. trait Whitespace extends AnyRef
  55. 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 toany2stringadd[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 toArrowAssoc[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
  9. def acceptStatSepOpt(): Unit
  10. def accessModifier(): Mod
  11. 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()
  12. def annots(skipNewLines: Boolean, allowArgss: Boolean = true): collection.immutable.List[Annot]
  13. def argumentExpr(): Term
  14. def argumentExprs(): collection.immutable.List[Term]
  15. def argumentExprsOrPrefixExpr(): collection.immutable.List[Term]
  16. def argumentExprsWithUsing(): (collection.immutable.List[Term], Boolean)
  17. def argumentPattern(): Pat
  18. def argumentPatterns(): collection.immutable.List[Pat]
  19. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  20. def atPos[T <: Tree](start: StartPos, end: EndPos)(body: => T): T
  21. def atPos[T <: Tree](token: Token)(body: => T): T
  22. def atPos[T <: Tree](tree: Tree)(body: => T): T
  23. def atPosTry[T <: Tree](start: StartPos, end: EndPos)(body: => Try[T]): Try[T]
  24. def atPosWithBody[T <: Tree](startTokenPos: Int, body: T, endPos: EndPos): T
  25. def auto: AutoPos
  26. def autoPos[T <: Tree](body: => T): T
  27. def autoPosTry[T <: Tree](body: => Try[T]): Try[T]
  28. def batchSource(statpf: PartialFunction[Token, Stat] = topStat): Source
  29. def block(isBlockOptional: Boolean = false): Term
  30. def blockExpr(isBlockOptional: Boolean = false): Term
  31. def blockStatSeq(): collection.immutable.List[Stat]
  32. def bound[T <: Token](implicit arg0: TokenInfo[T]): Option[Type]
  33. def caseClause(forceSingleExpr: Boolean = false): Case
  34. def caseClauses(): collection.immutable.List[Case]
  35. def caseClausesIfAny(): Option[collection.immutable.List[Case]]
  36. def checkAssoc(op: Term.Name, leftAssoc: Boolean): Unit
  37. def classDef(mods: collection.immutable.List[Mod]): Class
  38. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  39. final def commaSeparated[T <: Tree](part: => T)(implicit arg0: AstInfo[T]): collection.immutable.List[T]
    Annotations
    @inline()
  40. def condExpr(): Term
  41. def condExprInParens[T <: Token](implicit arg0: TokenInfo[T]): Term
  42. def constrBlock(): (Init, collection.immutable.List[Stat])
  43. def constrExpr(): (Init, collection.immutable.List[Stat])
  44. def constrIndent(): (Init, collection.immutable.List[Stat])
  45. def constrInternal(): (Init, collection.immutable.List[Stat])
  46. def constructorAnnots(): collection.immutable.List[Annot]
  47. def ctorModifiers(): Option[Mod]
  48. def defOrDclOrSecondaryCtor(mods: collection.immutable.List[Mod], enumCaseAllowed: Boolean = false, secondaryConstructorAllowed: Boolean = false): Stat
  49. def derivesClasses(): collection.immutable.List[Type]
  50. final def dropAnyBraces[T](body: => T): T
    Annotations
    @inline()
  51. def dropTrivialBlock(term: Term): Term
  52. def ellipsis[T <: Tree](rank: Int, astInfo: AstInfo[T], extraSkip: => Unit = {})(implicit arg0: AstInfo[T]): T
  53. def endMarker(): Stat
  54. def ensureEarlyDef(tree: Stat): Stat
  55. def ensuring(cond: (ScalametaParser) => Boolean, msg: => Any): ScalametaParser
    Implicit
    This member is added by an implicit conversion from ScalametaParser toEnsuring[ScalametaParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  56. def ensuring(cond: (ScalametaParser) => Boolean): ScalametaParser
    Implicit
    This member is added by an implicit conversion from ScalametaParser toEnsuring[ScalametaParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  57. def ensuring(cond: Boolean, msg: => Any): ScalametaParser
    Implicit
    This member is added by an implicit conversion from ScalametaParser toEnsuring[ScalametaParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  58. def ensuring(cond: Boolean): ScalametaParser
    Implicit
    This member is added by an implicit conversion from ScalametaParser toEnsuring[ScalametaParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  59. def entrypointCase(): Case
  60. def entrypointCtor(): Ctor
  61. def entrypointEnumerator(): Enumerator
  62. def entrypointExpr(): Term
  63. def entrypointImportee(): Importee
  64. def entrypointImporter(): Importer
  65. def entrypointInit(): Init
  66. def entrypointModifier(): Mod
  67. def entrypointPattern(): Pat
  68. def entrypointSelf(): Self
  69. def entrypointSource(): Source
  70. def entrypointStat(): Stat
  71. def entrypointTemplate(): Template
  72. def entrypointTermParam(): Param
  73. def entrypointType(): Type
  74. def entrypointTypeParam(): Param
  75. def enumCaseDef(mods: collection.immutable.List[Mod]): Stat
  76. def enumDef(mods: collection.immutable.List[Mod]): Enum
  77. def enumRepeatedCaseDef(mods: collection.immutable.List[Mod]): RepeatedEnumCase
  78. def enumSingleCaseDef(mods: collection.immutable.List[Mod]): EnumCase
  79. def enumerator(isFirst: Boolean, allowNestedIf: Boolean = true): collection.immutable.List[Enumerator]
  80. def enumerators(): collection.immutable.List[Enumerator]
  81. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  82. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  83. def existentialStats(): collection.immutable.List[Stat]
  84. def exportStmt(): Stat
  85. def expr(location: Location, allowRepeated: Boolean): Term
  86. def expr(): Term
  87. def exprSimpleType(): Type
  88. def exprTypeArgs(): collection.immutable.List[Type]
  89. def extensionGroupDecl(mods: collection.immutable.List[Mod]): ExtensionGroup
  90. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  91. def followedByToken[T <: Token](implicit arg0: TokenInfo[T]): Boolean
  92. def funDefOrDclOrExtensionOrSecondaryCtor(mods: collection.immutable.List[Mod]): Stat
  93. def funDefRest(mods: collection.immutable.List[Mod]): Stat
  94. def generator(eqOK: Boolean, allowNestedIf: Boolean = true): collection.immutable.List[Enumerator]
  95. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  96. def guard(): Option[Term]
  97. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  98. def ifClause(mods: collection.immutable.List[Mod] = Nil): If
  99. def implicitClosure(location: Location): Term.Function
  100. def importStmt(): Import
  101. def importWildcardOrName(): Importee
  102. def importee(): Importee
  103. def importeeRename(from: Name): Importee
  104. def importees(): collection.immutable.List[Importee]
  105. def importer(): Importer
  106. var in: TokenIterator
  107. final def inBraces[T](body: => T): T
    Annotations
    @inline()
  108. final def inBracesOrError[T](body: => T, alt: T): T
    Annotations
    @inline()
  109. final def inBracesOrNil[T](body: => collection.immutable.List[T]): collection.immutable.List[T]
    Annotations
    @inline()
  110. final def inBracesOrUnit[T](body: => Term): Term
    Annotations
    @inline()
  111. final def inBrackets[T](body: => T): T
    Annotations
    @inline()
  112. 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()
  113. final def inParensOrError[T](body: => T, alt: T): T
    Annotations
    @inline()
  114. final def inParensOrNil[T](body: => collection.immutable.List[T]): collection.immutable.List[T]
    Annotations
    @inline()
  115. def inParensOrTupleOrUnit(location: Location, allowRepeated: Boolean): Term
  116. final def inParensOrUnit[T, Ret >: Lit](body: => Ret): Ret
    Annotations
    @inline()
  117. final def indented[T](body: => T): T
    Annotations
    @inline()
  118. def init(): Init
  119. def initInsideAnnotation(allowArgss: Boolean): Init
  120. def initInsideConstructor(): Init
  121. def initInsideTemplate(): Init
  122. def initRest(typeParser: () => Type, allowArgss: Boolean, allowBraces: Boolean): Init
  123. def inlineMatchClause(inlineMods: collection.immutable.List[Mod]): Match

    Deals with Scala 3 concept of

    Deals with Scala 3 concept of

    inline x match { ...

    . Since matches can also be chained in Scala 3 we need to create the Match first and only then add the the inline modifier.

    inline x match { ... }}} Since matches can also be chained in Scala 3 we need to create the Match first and only then add the the inline modifier.

  124. implicit def intToIndexPos(index: Int): IndexPos
  125. def interpolate[Ctx <: Tree, Ret <: Tree](arg: () => Ctx, result: (Term.Name, collection.immutable.List[Lit], collection.immutable.List[Ctx]) => Ret): Ret
  126. def interpolatePat(): Interpolate
  127. def interpolateTerm(): Interpolate
  128. def isAmpersand: Boolean
  129. def isBackquoted: Boolean
  130. def isBar: Boolean
  131. def isColonEol(token: Token): Boolean
  132. def isColonWildcardStar: Boolean
  133. def isIdent: Boolean
  134. def isIdentAnd(pred: (String) => Boolean): Boolean
  135. def isIdentExcept(except: String): Boolean
  136. def isIdentOf(name: String): Boolean
  137. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  138. def isMultilinePos(p: Position): Boolean
  139. def isSpliceFollowedBy(check: => Boolean): Boolean
  140. def isStar: Boolean
  141. def isStarWildcard(token: Token): Boolean
  142. def isStarWildcard: Boolean
  143. def isUnaryOp: Boolean
  144. def isVarargStarParam(allowRepeated: Boolean): Boolean
  145. def literal(isNegated: Boolean = false): Lit
  146. def localDef(implicitMod: Option[Implicit]): Stat
  147. def localModifiers(): collection.immutable.List[Mod]
  148. def macroQuote(): Term
  149. def macroQuotedIdent(): Term
  150. def macroSplice(): Term
  151. def macroSplicedIdent(): Term
  152. def makeTuple[T <: Tree](body: collection.immutable.List[T], zero: () => T, tuple: (collection.immutable.List[T]) => T): T
  153. def makeTupleTerm(body: collection.immutable.List[Term]): Term
  154. def makeTupleType(body: collection.immutable.List[Type]): Type
  155. def matchClause(t: Term): Match
  156. def mixinQualifier(): Name
  157. def modifier(): Mod
  158. def modifiers(isLocal: Boolean = false, isParams: Boolean = false): collection.immutable.List[Mod]
  159. implicit def modsToPos(mods: collection.immutable.List[Mod]): Pos
  160. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  161. def newLineOpt(): Unit
  162. def newLineOptWhenFollowedBy[T <: Token](implicit arg0: TokenInfo[T]): Unit
  163. def newLineOptWhenFollowedBySignificantIndentationAnd(cond: (Token) => Boolean): Unit
  164. def newLineOptWhenFollowing(p: (Token) => Boolean): Unit
  165. def newLinesOpt(): Unit
  166. def next(): Token
  167. def nextOnce(): Token
  168. def nextThrice(): Token
  169. def nextTwice(): Token
  170. def nonLocalDefOrDcl(enumCaseAllowed: Boolean = false, secondaryConstructorAllowed: Boolean = false): Stat
  171. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  172. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  173. def objectDef(mods: collection.immutable.List[Mod]): Object
  174. def onlyAcceptMod[M <: Mod, T <: Token](mods: collection.immutable.List[Mod], errorMsg: String)(implicit arg0: ClassTag[M], arg1: TokenInfo[T], classifier: Classifier[Mod, M]): Unit
  175. def onlyAllowedMods(mods: collection.immutable.List[Mod], matchers: collection.immutable.List[(Mod) => Boolean], culprit: String): Unit
  176. def onlyAllowedMods[M1 <: Mod, M2 <: Mod](mods: collection.immutable.List[Mod], culprit: String)(implicit classifier1: Classifier[Mod, M1], classifier2: Classifier[Mod, M2]): Unit
  177. implicit def optionTreeToPos(tree: Option[Tree]): Pos
  178. def packageDef(statpf: PartialFunction[Token, Stat]): Pkg
  179. def packageObjectDef(): Object
  180. def packageOrPackageObjectDef(statpf: PartialFunction[Token, Stat]): Stat
  181. def param(ownerIsCase: Boolean, ownerIsType: Boolean, isImplicit: Boolean, isUsing: Boolean): Param
  182. def paramClauses(ownerIsType: Boolean, ownerIsCase: Boolean = false): collection.immutable.List[collection.immutable.List[Param]]
  183. def paramType(): Type
  184. def parseCase(): Case
  185. def parseCtor(): Ctor
  186. def parseEnumerator(): Enumerator
  187. def parseImportee(): Importee
  188. def parseImporter(): Importer
  189. def parseInit(): Init
  190. def parseMod(): Mod
  191. def parsePat(): Pat
  192. def parseRule[T <: Tree](rule: (ScalametaParser.this.type) => T): T
  193. def parseSelf(): Self
  194. def parseSource(): Source
  195. def parseStat(): Stat
  196. def parseTemplate(): Template
  197. def parseTerm(): Term
  198. def parseTermParam(): Param
  199. def parseType(): Type
  200. def parseTypeParam(): Param
  201. def parseUnquotePat(): Pat
  202. def parseUnquoteTerm(): Term
  203. def patDefOrDcl(mods: collection.immutable.List[Mod]): Stat
  204. def path(thisOK: Boolean = true): Term.Ref
  205. def pattern(): Pat

    Default entry points into some pattern contexts.

  206. def patternTyp(): Type
  207. def patternTypeArgs(): collection.immutable.List[Type]
  208. def polyFunction(): PolyFunction
  209. def postfixExpr(allowRepeated: Boolean): Term
  210. def prefixExpr(allowRepeated: Boolean): Term
  211. def primaryCtor(owner: TemplateOwner): Primary
  212. def qualId(): Term.Ref
  213. def quasiquoteCase(): Case
  214. def quasiquoteCtor(): Ctor
  215. def quasiquoteEnumerator(): Enumerator
  216. def quasiquoteExpr(): Term
  217. def quasiquoteImportee(): Importee
  218. def quasiquoteImporter(): Importer
  219. def quasiquoteInit(): Init
  220. def quasiquoteModifier(): Mod
  221. def quasiquotePattern(): Pat
  222. def quasiquoteSelf(): Self
  223. def quasiquoteSource(): Source
  224. def quasiquoteStat(): Stat
  225. def quasiquoteTemplate(): Template
  226. def quasiquoteTermParam(): Param
  227. def quasiquoteType(): Type
  228. def quasiquoteTypeParam(): Param
  229. def refineStat(): Option[Stat]
  230. def refineStatSeq(): collection.immutable.List[Stat]
  231. def refinement(innerType: Option[Type]): Refine
  232. def rejectMod[M <: Mod](mods: collection.immutable.List[Mod], errorMsg: String)(implicit classifier: Classifier[Mod, M], tag: ClassTag[M]): Unit
  233. def rejectModCombination[M1 <: Mod, M2 <: Mod](mods: collection.immutable.List[Mod], culpritOpt: Option[String] = None)(implicit invalidMod: InvalidModCombination[M1, M2], classifier1: Classifier[Mod, M1], tag1: ClassTag[M1], classifier2: Classifier[Mod, M2], tag2: ClassTag[M2]): Unit
  234. lazy val reporter: Reporter
  235. lazy val scannerTokens: Tokens
  236. def secondaryCtor(mods: collection.immutable.List[Mod]): Secondary
  237. def secondaryCtorRest(mods: collection.immutable.List[Mod], name: Name, paramss: collection.immutable.List[collection.immutable.List[Param]]): Secondary
  238. def selector(t: Term): Select
  239. def selectors(t: Term): Term.Ref
  240. def self(): Self
  241. def seqPatterns(): collection.immutable.List[Pat]
  242. def simpleExpr(allowRepeated: Boolean): Term
  243. def simpleExprRest(t: Term, canApply: Boolean): Term
  244. def source(): Source
  245. def stableId(): Term.Ref
  246. def startInfixType(): Type
  247. def startModType(): Type
  248. def stat(body: => Stat): Stat
  249. def statSeq[T <: Tree](statpf: PartialFunction[Token, T], errorMsg: String = "illegal start of definition")(implicit arg0: AstInfo[T]): collection.immutable.List[T]
  250. def summonClassifierFunc[A, B](implicit v: Classifier[A, B]): (A) => Boolean
  251. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  252. def syntaxErrorExpected[T <: Token](implicit arg0: TokenInfo[T]): Nothing
  253. def template(afterExtend: Boolean = false, enumCaseAllowed: Boolean, secondaryConstructorAllowed: Boolean): Template
  254. def template(edefs: collection.immutable.List[Stat], parents: collection.immutable.List[Init], enumCaseAllowed: Boolean, secondaryConstructorAllowed: Boolean): Template
  255. def templateBody(enumCaseAllowed: Boolean = false, secondaryConstructorAllowed: Boolean = false): (Self, collection.immutable.List[Stat])
  256. def templateBodyOpt(parenMeansSyntaxError: Boolean, enumCaseAllowed: Boolean = false, secondaryConstructorAllowed: Boolean = false): (Self, collection.immutable.List[Stat])
  257. def templateOpt(owner: TemplateOwner): Template
  258. def templateParents(afterExtend: Boolean = false): collection.immutable.List[Init]
  259. def templateStatSeq(enumCaseAllowed: Boolean = false, secondaryConstructorAllowed: Boolean = false): (Self, collection.immutable.List[Stat])
  260. def templateStats(enumCaseAllowed: Boolean = false, secondaryConstructorAllowed: Boolean = false): collection.immutable.List[Stat]
  261. def termName(advance: Boolean = true): Term.Name
  262. def tmplDef(mods: collection.immutable.List[Mod]): Stat
  263. def toString(): String
    Definition Classes
    AnyRef → Any
  264. def token: Token
  265. final def tokenSeparated[Sep <: Token, T <: Tree](sepFirst: Boolean, part: => T)(implicit arg0: TokenInfo[Sep], arg1: AstInfo[T]): collection.immutable.List[T]
  266. implicit def tokenToTokenPos(token: Token): TokenPos
  267. def topLevelTmplDef: Stat

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

  268. def topStat: PartialFunction[Token, Stat]
  269. def tparamModifiers(): Option[Mod]
  270. def traitDef(mods: collection.immutable.List[Mod]): Trait
  271. implicit def treeToTreePos(tree: Tree): TreePos
  272. def typ(): Type

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

  273. def typeBounds(): Bounds
  274. def typeDefOrDcl(mods: collection.immutable.List[Mod]): Member.Type with Stat
  275. def typeIndentedOpt(): Type
  276. def typeName(advance: Boolean = true): Type.Name
  277. def typeOrInfixType(location: Location): Type
  278. def typeParam(ownerIsType: Boolean, ctxBoundsAllowed: Boolean, allowUnderscore: Boolean = true): Param
  279. def typeParamClauseOpt(ownerIsType: Boolean, ctxBoundsAllowed: Boolean, allowUnderscore: Boolean = true): collection.immutable.List[Param]
  280. def typedOpt(): Option[Type]
  281. def unquote[T <: Tree](implicit arg0: AstInfo[T]): T
  282. def unquote[T <: Tree](advance: Boolean = true)(implicit arg0: AstInfo[T]): T
  283. def unquoteExpr(): Term
  284. def unquotePattern(): Pat
  285. def unquoteXmlExpr(): Term
  286. def unquoteXmlPattern(): Pat
  287. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  288. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  289. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  290. def xmlLiteralPattern(): Pat
  291. def xmlPat(): Xml
  292. def xmlSeqPatterns(): collection.immutable.List[Pat]
  293. def xmlTerm(): Xml
  294. case object AutoPos extends Pos with Product with Serializable
  295. object CanContinueOnNextLine
  296. object CanEndStat
  297. object CanStartColonEol
  298. object CanStartIndent
  299. object CantStartStat
  300. object CaseDefEnd
  301. object CaseIntro
  302. object CloseDelim
  303. object DclIntro
  304. object DefIntro
  305. object EndMarkerIntro
  306. object EndMarkerWord
  307. case object EndPosPreOutdent extends EndPos with Product with Serializable
  308. object ExprIntro
  309. object InlineMatchMod
  310. implicit object InvalidCaseImplicit extends InvalidModCombination[Mod.Case, Implicit]
  311. implicit object InvalidFinalAbstract extends InvalidModCombination[Final, Abstract]
  312. implicit object InvalidFinalSealed extends InvalidModCombination[Final, Sealed]
  313. implicit object InvalidOpenFinal extends InvalidModCombination[Open, Final]
  314. implicit object InvalidOpenSealed extends InvalidModCombination[Open, Sealed]
  315. implicit object InvalidOverrideAbstract extends InvalidModCombination[Override, Abstract]
  316. implicit object InvalidPrivateProtected extends InvalidModCombination[Private, Protected]
  317. implicit object InvalidProtectedPrivate extends InvalidModCombination[Protected, Private]
  318. object KwExtension
  319. object LineEnd
  320. object Literal
  321. object LocalModifier
  322. object MacroQuotedIdent
  323. object MacroSplicedIdent
  324. object Modifier
  325. object MultilineComment
  326. object NonParamsModifier
  327. object NonlocalModifier
  328. object NumericLiteral
  329. object OwnedByCaseClass extends TemplateOwner
  330. object OwnedByClass extends TemplateOwner
  331. object OwnedByEnum extends TemplateOwner
  332. object OwnedByObject extends TemplateOwner
  333. object OwnedByTrait extends TemplateOwner
  334. case object RegionArrow extends SepRegion with Product with Serializable
  335. case object RegionBracket extends SepRegion with Product with Serializable
  336. case object RegionEnumArtificialMark extends SepRegion with Product with Serializable
  337. object SoftModifier
  338. case object StartPosPrev extends StartPos with Product with Serializable
  339. object StatSep
  340. object StatSeqEnd
  341. object StopScanToken
  342. object TemplateIntro
  343. object Trivia
  344. object TypeIntro
  345. object Whitespace
  346. object noSeq extends SeqContextSensitive

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

  347. object outPattern extends PatternContextSensitive

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

  348. implicit object patInfixContext extends InfixContext
  349. object seqOK extends SeqContextSensitive

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

  350. object termInfixContext extends InfixContext
  351. object xmlSeqOK extends SeqContextSensitive

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

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ScalametaParser toStringFormat[ScalametaParser] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  2. def [B](y: B): (ScalametaParser, B)
    Implicit
    This member is added by an implicit conversion from ScalametaParser toArrowAssoc[ScalametaParser] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromScalametaParser to any2stringadd[ScalametaParser]

Inherited by implicit conversion StringFormat fromScalametaParser to StringFormat[ScalametaParser]

Inherited by implicit conversion Ensuring fromScalametaParser to Ensuring[ScalametaParser]

Inherited by implicit conversion ArrowAssoc fromScalametaParser to ArrowAssoc[ScalametaParser]

Ungrouped