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)(implicit dialect: Dialect)

Type Members

  1. sealed abstract class InfixContext extends AnyRef
  2. 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.

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

  4. sealed trait TemplateOwner extends AnyRef
  5. implicit class XtensionToken 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: ClassTag[T]): Unit

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

  7. def acceptIfStatSep(): Boolean
    Annotations
    @inline()
  8. def acceptStatSep(): Boolean
  9. def acceptStatSepOpt(): Boolean
  10. 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()
  11. def annots(skipNewLines: Boolean, allowArgss: Boolean = true): collection.immutable.List[Annot]
  12. def annotsBuf[T >: Annot](annots: ListBuffer[T], skipNewLines: Boolean, insidePrimaryCtorAnnot: Boolean = false, allowArgss: Boolean = true): Unit
  13. def argumentPattern(): Pat
  14. def argumentPatterns(): collection.immutable.List[Pat]
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def atCurPos[T <: Tree](body: ⇒ T): T
  17. def atCurPosNext[T <: Tree](body: ⇒ T): T
  18. def atPos[T <: Tree](pos: Int)(body: ⇒ T): T
  19. def atPos[T <: Tree](start: Int, end: EndPos)(body: T): T
    Annotations
    @inline()
  20. def atPos[T <: Tree](start: StartPos, end: EndPos)(body: ⇒ T): T
  21. def atPosIf[T <: Tree](start: Int, end: EndPos)(body: Option[T]): Option[T]
  22. def atPosIf[T <: Tree](start: StartPos, end: EndPos)(body: ⇒ Option[T]): Option[T]
  23. def atPosOpt[T <: Tree](start: Int, end: EndPos)(body: T): T
  24. def atPosOpt[T <: Tree](start: StartPos, end: EndPos)(body: ⇒ T): T
  25. def atPosTry[T <: Tree](start: StartPos, end: EndPos)(body: ⇒ Try[T]): Try[T]
  26. def atPosTryOpt[T <: Tree](start: StartPos, end: EndPos)(body: ⇒ Try[T]): Try[T]
  27. def atPosWithBody[T <: Tree](startPos: Int, body: T, endPos: Int): T
  28. def autoEndPos[T <: Tree](start: StartPos)(body: ⇒ T): T
    Annotations
    @inline()
  29. def autoEndPos[T <: Tree](start: Int)(body: ⇒ T): T
    Annotations
    @inline()
  30. def autoEndPosOpt[T <: Tree](start: StartPos)(body: ⇒ T): T
    Annotations
    @inline()
  31. def autoEndPosOpt[T <: Tree](start: Int)(body: ⇒ T): T
    Annotations
    @inline()
  32. def autoPos[T <: Tree](body: ⇒ T): T
  33. def autoPosIf[T <: Tree](body: ⇒ Option[T]): Option[T]
  34. def autoPosOpt[T <: Tree](body: ⇒ T): T
  35. def autoPosTry[T <: Tree](body: ⇒ Try[T]): Try[T]
  36. def autoPrevPos[T <: Tree](body: ⇒ T): T
    Annotations
    @inline()
  37. def blockStatSeq(allowRepeated: Boolean = false): collection.immutable.List[Stat]
  38. def bound[T](implicit arg0: ClassTag[T]): Option[Type]
  39. def caseClause(forceSingleExpr: Boolean = false): Case
  40. def caseClauses(): collection.immutable.List[Case]
  41. def caseClausesIfAny(): Option[collection.immutable.List[Case]]
  42. def casesBlock(): CasesBlock
  43. def casesBlockIfAny(): Option[CasesBlock]
  44. def checkAssoc(op: Name, leftAssoc: Boolean): Unit
    Annotations
    @inline()
  45. def classDef(mods: collection.immutable.List[Mod]): Class
  46. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  47. final def commaSeparated[T <: Tree](part: ⇒ T)(implicit arg0: AstInfo[T], arg1: ClassTag[T]): collection.immutable.List[T]
    Annotations
    @inline()
  48. final def commaSeparatedWithIndex[T <: Tree](part: (Int) ⇒ T)(implicit arg0: AstInfo[T], arg1: ClassTag[T]): collection.immutable.List[T]
    Annotations
    @inline()
  49. def condExpr(): Term
  50. def constrInternal(): Block
  51. def contextBoundOrAlias(allowAlias: Boolean): Type
  52. def currIndex: Int
    Annotations
    @inline()
  53. def currToken: Token
    Annotations
    @inline()
  54. def defOrDclOrSecondaryCtor(mods: collection.immutable.List[Mod], enumCaseAllowed: Boolean = false, secondaryConstructorAllowed: Boolean = false): Stat
  55. def derivesClasses(): collection.immutable.List[Type]
  56. final def dropAnyBraces[T](body: ⇒ T): T
    Annotations
    @inline()
  57. def ellipsis[T <: Tree](ell: Ellipsis, extraSkip: ⇒ Unit)(implicit arg0: AstInfo[T], arg1: ClassTag[T]): T with Quasi
  58. def ellipsis[T <: Tree](ell: Ellipsis)(implicit arg0: AstInfo[T], arg1: ClassTag[T]): T with Quasi
  59. def ellipsis[T <: Tree](ell: Ellipsis, rank: Int, extraSkip: ⇒ Unit = {})(implicit arg0: AstInfo[T], arg1: ClassTag[T]): T
  60. def endMarker(): Stat
  61. 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
  62. 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
  63. 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
  64. 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
  65. def entryPointAmmonite(): MultiSource
  66. def entrypointCase(): Case
  67. def entrypointCtor(): Ctor
  68. def entrypointEnumerator(): Enumerator
  69. def entrypointExpr(): Term
  70. def entrypointImportee(): Importee
  71. def entrypointImporter(): Importer
  72. def entrypointInit(): Init
  73. def entrypointModifier(): Mod
  74. def entrypointPattern(): Pat
  75. def entrypointSelf(): Self
  76. def entrypointSource(): Source
  77. def entrypointStat(): Stat
  78. def entrypointTemplate(): Template
  79. def entrypointTermParam(): Param
  80. def entrypointType(): Type
  81. def entrypointTypeParam(): Param
  82. def enumCaseDef(mods: collection.immutable.List[Mod]): Stat
  83. def enumRepeatedCaseDef(mods: collection.immutable.List[Mod]): RepeatedEnumCase
  84. def enumSingleCaseDef(mods: collection.immutable.List[Mod]): EnumCase
  85. def enumerators(): collection.immutable.List[Enumerator]
  86. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  87. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  88. def exportStmt(): Stat
  89. def expr(location: Location, allowRepeated: Boolean): Term
  90. def expr(): Term
  91. def exprSimpleType(): Type
  92. def exprTypeArgs(): ArgClause
  93. def extensionGroupDecl(mods: collection.immutable.List[Mod]): ExtensionGroup
  94. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  95. def funDefOrDclOrExtensionOrSecondaryCtor(mods: collection.immutable.List[Mod]): Stat
  96. def funDefRest(mods: collection.immutable.List[Mod]): Stat
  97. def getAfterOptNewLine[A](body: ⇒ Option[A]): Option[A]
  98. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  99. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  100. def ifClause(mods: collection.immutable.List[Mod] = Nil): If
  101. def importStmt(): Import
  102. def importWildcardOrName(): Importee
  103. def importee(): Importee
  104. def importeeRename(from: Name): Importee
  105. def importees(): collection.immutable.List[Importee]
  106. def importer(): Importer
  107. var in: TokenIterator
  108. final def inBraces[T](body: ⇒ T): T
    Annotations
    @inline()
  109. final def inBracesOr[T](body: ⇒ T)(ifEmpty: ⇒ T): T
    Annotations
    @inline()
  110. final def inBracesOrNil[T](body: ⇒ collection.immutable.List[T]): collection.immutable.List[T]
    Annotations
    @inline()
  111. final def inBrackets[T](body: ⇒ T): T
    Annotations
    @inline()
  112. final def inParens[T](body: ⇒ T): T
    Annotations
    @inline()
  113. final def inParensOr[T](body: ⇒ T)(ifEmpty: ⇒ T): T
    Annotations
    @inline()
  114. final def indented[T](body: ⇒ T): T
    Annotations
    @inline()
  115. def init(): Init
  116. def initInsideConstructor(): Init
  117. def initInsideTemplate(): Init
  118. def initRest(typeParser: ⇒ Type, allowArgss: Boolean, insidePrimaryCtorAnnot: Boolean = false, allowBraces: Boolean = false, allowTypeSingleton: Boolean = true): Init
  119. 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 { ... }}} Scala 3 we need to create the Match first and only then add the the inline modifier.

  120. implicit def intToIndexPos(index: Int): Pos
  121. def interpolatePat(): Interpolate
  122. def interpolateTerm(): Interpolate
  123. def isAfterOptNewLine(body: (Token) ⇒ Boolean): Boolean
  124. def isAfterOptNewLine[T](implicit arg0: ClassTag[T]): Boolean
  125. def isAtEndMarker(): Boolean
  126. def isImplicitStatSep(): Boolean
    Annotations
    @inline()
  127. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  128. def isStar(tok: Token): Boolean
  129. def isStar: Boolean
    Annotations
    @inline()
  130. def literal(): Lit
  131. def localDef(implicitMod: Option[Implicit]): Stat
  132. def memberParamClauseGroups(ownerIsType: Boolean): collection.immutable.List[ParamClauseGroup]
  133. def mixinQualifier(): Name
  134. def modifiersBuf(buf: ListBuffer[Mod], isLocal: Boolean = false, isParams: Boolean = false): Unit
  135. implicit def modsToPos(mods: collection.immutable.List[Mod]): Pos
  136. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  137. def newLineOpt(): Unit
    Annotations
    @inline()
  138. def newLineOptWhenFollowedBy[T](implicit arg0: ClassTag[T]): Unit
  139. def newLineOptWhenFollowedBy(unapply: (Token) ⇒ Boolean): Unit
  140. def newLineOptWhenFollowedBySignificantIndentationAnd(cond: (Token) ⇒ Boolean): Boolean
  141. def newLinesOpt(): Unit
    Annotations
    @inline()
  142. def next(): Unit
  143. def nextTwice(): Unit
  144. def nonLocalDefOrDcl(enumCaseAllowed: Boolean = false, secondaryConstructorAllowed: Boolean = false): Stat
  145. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  146. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  147. def objectDef(mods: collection.immutable.List[Mod]): Object
  148. implicit def optionTreeToPos(tree: Option[Tree]): Pos
  149. def paramType(): Type
  150. def parseAmmonite(): MultiSource
  151. def parseCase(): Case
  152. def parseCtor(): Ctor
  153. def parseEnumerator(): Enumerator
  154. def parseImportee(): Importee
  155. def parseImporter(): Importer
  156. def parseInit(): Init
  157. def parseMod(): Mod
  158. def parsePat(): Pat
  159. def parseRule[T <: Tree](rule: ⇒ T): T
  160. def parseRule[T <: Tree](rule: (ScalametaParser.this.type) ⇒ T): T
  161. def parseSelf(): Self
  162. def parseSource(): Source
  163. def parseStat(): Stat
  164. def parseTemplate(): Template
  165. def parseTerm(): Term
  166. def parseTermParam(): Param
  167. def parseType(): Type
  168. def parseTypeParam(): Param
  169. def parseUnquotePat(): Pat
  170. def parseUnquoteTerm(): Term
  171. def patDefOrDcl(mods: collection.immutable.List[Mod]): Stat
  172. def path(thisOK: Boolean = true): Term.Ref
  173. def pattern(): Pat

    Default entry points into some pattern contexts.

  174. def patternTyp(): Type
  175. def patternTypeArgs(): ArgClause
  176. def peekIndex: Int
    Annotations
    @inline()
  177. def peekToken: Token
    Annotations
    @inline()
  178. def polyFunction(): PolyFunction
  179. def postfixExpr(allowRepeated: Boolean): Term
  180. def prefixExpr(allowRepeated: Boolean): Term
  181. def prevIndex: Int
    Annotations
    @inline()
  182. def prevToken: Token
    Annotations
    @inline()
  183. def primaryCtor(owner: TemplateOwner): Primary
  184. def qualId(): Term.Ref
  185. def quasiquoteCase(): Case
  186. def quasiquoteCtor(): Ctor
  187. def quasiquoteEnumerator(): Enumerator
  188. def quasiquoteExpr(): Term
  189. def quasiquoteImportee(): Importee
  190. def quasiquoteImporter(): Importer
  191. def quasiquoteInit(): Init
  192. def quasiquoteModifier(): Mod
  193. def quasiquotePattern(): Pat
  194. def quasiquoteSelf(): Self
  195. def quasiquoteSource(): Source
  196. def quasiquoteStat(): Stat
  197. def quasiquoteTemplate(): Template
  198. def quasiquoteTermParam(): Param
  199. def quasiquoteType(): Type
  200. def quasiquoteTypeParam(): Param
  201. final lazy val reporter: Reporter
  202. def secondaryCtor(mods: collection.immutable.List[Mod]): Secondary
  203. def secondaryCtorRest(mods: collection.immutable.List[Mod], name: This, paramss: collection.immutable.Seq[ParamClause]): Secondary
  204. def selector(t: Term, startPos: Int): Select
  205. def seqPatterns(): collection.immutable.List[Pat]
  206. def simpleExpr(allowRepeated: Boolean): Term
  207. def skipAllStatSep(): Boolean
  208. def source(): Source
  209. def stableId(): Term.Ref
  210. def startInfixType(): Type
  211. def startModType(): Type
  212. def stat(body: ⇒ Stat): Stat
  213. def statSeq[T <: Tree](statpf: PartialFunction[Token, T], errorMsg: String = "illegal start of definition"): collection.immutable.List[T]
  214. def statSeqBuf[T <: Tree](stats: ListBuffer[T], statpf: PartialFunction[Token, T], errorMsg: String = "illegal start of definition"): Boolean
  215. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  216. def template(owner: TemplateOwner, afterExtend: Boolean = false): Template
  217. def templateBodyOpt(owner: TemplateOwner): Body
  218. def templateOpt(owner: TemplateOwner): Template
  219. def templateParents(afterExtend: Boolean = false): collection.immutable.List[Init]
  220. def templateStat(enumCaseAllowed: Boolean = false, secondaryConstructorAllowed: Boolean = false): PartialFunction[Token, Stat]
  221. def termName(): Term.Name
  222. def termParam(ownerIsCase: Boolean, ownerIsType: Boolean, mod: Option[ParamsType] = None)(paramIdx: Int): Param
  223. def termParamClauses(ownerIsType: Boolean, ownerIsCase: Boolean = false): collection.immutable.List[ParamClause]
  224. def toCasesBlock(cases: collection.immutable.List[Case]): CasesBlock
  225. def toString(): String
    Definition Classes
    AnyRef → Any
  226. final def tokenSeparated[Sep, T <: Tree](sepFirst: Boolean, part: (Int) ⇒ T)(implicit arg0: ClassTag[Sep], arg1: AstInfo[T], arg2: ClassTag[T]): collection.immutable.List[T]
  227. def topLevelTmplDef: Stat

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

  228. val topStat: PartialFunction[Token, Stat]
  229. implicit def treeToTreePos(tree: Tree): Pos
  230. def typ(): Type

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

  231. def typeBounds(): Bounds
  232. def typeDefOrDcl(mods: collection.immutable.List[Mod]): TypeDef
  233. def typeIndentedOpt(): Type
  234. def typeName(): Type.Name
  235. def typeParam(ownerIsType: Boolean, allowUnderscore: Boolean = true): Param
  236. def typedOpt(): Option[Type]
  237. def unquote[T <: Tree](implicit arg0: AstInfo[T]): T with Quasi
  238. def unquoteExpr(): Term
  239. def unquotePattern(): Pat
  240. def unquoteSeqPattern(): Pat
  241. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  242. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  243. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  244. def xmlLiteralPattern(): Pat
  245. def xmlPat(): Xml
  246. def xmlTerm(): Xml
  247. 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
  248. object AutoPos extends Pos with Product with Serializable
  249. object OwnedByCaseClass extends TemplateOwner
  250. object OwnedByClass extends TemplateOwner
  251. object OwnedByEnum extends TemplateOwner
  252. object OwnedByGiven extends TemplateOwner
  253. object OwnedByObject extends TemplateOwner
  254. object OwnedByTrait extends TemplateOwner
  255. object noSeq extends SeqContextSensitive

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

  256. object noSeqWithNamed extends SeqContextSensitive
  257. object outPattern extends PatternContextSensitive

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

  258. implicit object patInfixContext extends InfixContext
  259. object seqOK extends SeqContextSensitive

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

  260. object termInfixContext extends InfixContext

Deprecated Value Members

  1. 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
    @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.

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