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. class InvalidModCombination[M1 <: Mod, M2 <: Mod] extends AnyRef
  3. 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.

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

  5. sealed trait TemplateOwner extends AnyRef
  6. 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 acceptStatSep(): Unit
  8. def acceptStatSepOpt(): Unit
  9. 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()
  10. def annots(skipNewLines: Boolean, allowArgss: Boolean = true): collection.immutable.List[Annot]
  11. def annotsBuf[T >: Annot](annots: ListBuffer[T], skipNewLines: Boolean, insidePrimaryCtorAnnot: Boolean = false, allowArgss: Boolean = true): Unit
  12. def argumentPattern(): Pat
  13. def argumentPatterns(): collection.immutable.List[Pat]
  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. def atCurPos[T <: Tree](body: ⇒ T): T
  16. def atCurPosNext[T <: Tree](body: ⇒ T): T
  17. def atPos[T <: Tree](pos: Int)(body: ⇒ T): T
  18. def atPos[T <: Tree](start: Int, end: EndPos)(body: T): T
    Annotations
    @inline()
  19. def atPos[T <: Tree](start: StartPos, end: EndPos)(body: ⇒ T): T
  20. def atPosOpt[T <: Tree](start: Int, end: EndPos)(body: T): T
  21. def atPosOpt[T <: Tree](start: StartPos, end: EndPos)(body: ⇒ T): T
  22. def atPosTry[T <: Tree](start: StartPos, end: EndPos)(body: ⇒ Try[T]): Try[T]
  23. def atPosTryOpt[T <: Tree](start: StartPos, end: EndPos)(body: ⇒ Try[T]): Try[T]
  24. def atPosWithBody[T <: Tree](startPos: Int, body: T, endPos: Int): T
  25. def auto: AutoPos.type
  26. def autoEndPos[T <: Tree](start: StartPos)(body: ⇒ T): T
    Annotations
    @inline()
  27. def autoEndPos[T <: Tree](start: Int)(body: ⇒ T): T
    Annotations
    @inline()
  28. def autoEndPosOpt[T <: Tree](start: Int)(body: ⇒ T): T
    Annotations
    @inline()
  29. def autoPos[T <: Tree](body: ⇒ T): T
  30. def autoPosOpt[T <: Tree](body: ⇒ T): T
  31. def autoPosTry[T <: Tree](body: ⇒ Try[T]): Try[T]
  32. def autoPrevPos[T <: Tree](body: ⇒ T): T
    Annotations
    @inline()
  33. def batchSource(statpf: PartialFunction[Token, Stat] = topStat): Source
  34. def blockStatSeq(allowRepeated: Boolean = false): collection.immutable.List[Stat]
  35. def bound[T](implicit arg0: ClassTag[T]): Option[Type]
  36. def caseClause(forceSingleExpr: Boolean = false): Case
  37. def caseClauses(): collection.immutable.List[Case]
  38. def caseClausesIfAny(): Option[collection.immutable.List[Case]]
  39. def checkAssoc(op: Name, leftAssoc: Boolean): Unit
    Annotations
    @inline()
  40. def classDef(mods: collection.immutable.List[Mod]): Class
  41. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  42. final def commaSeparated[T <: Tree](part: ⇒ T)(implicit arg0: AstInfo[T], arg1: ClassTag[T]): collection.immutable.List[T]
    Annotations
    @inline()
  43. final def commaSeparatedWithIndex[T <: Tree](part: (Int) ⇒ T)(implicit arg0: AstInfo[T], arg1: ClassTag[T]): collection.immutable.List[T]
    Annotations
    @inline()
  44. def condExpr(): Term
  45. def constrInternal(): (Init, collection.immutable.List[Stat])
  46. def defOrDclOrSecondaryCtor(mods: collection.immutable.List[Mod], enumCaseAllowed: Boolean = false, secondaryConstructorAllowed: Boolean = false): Stat
  47. def derivesClasses(): collection.immutable.List[Type]
  48. final def dropAnyBraces[T](body: ⇒ T): T
    Annotations
    @inline()
  49. def ellipsis[T <: Tree](ell: Ellipsis, extraSkip: ⇒ Unit)(implicit arg0: AstInfo[T], arg1: ClassTag[T]): T
  50. def ellipsis[T <: Tree](ell: Ellipsis)(implicit arg0: AstInfo[T], arg1: ClassTag[T]): T
  51. def ellipsis[T <: Tree](ell: Ellipsis, rank: Int, extraSkip: ⇒ Unit = {})(implicit arg0: AstInfo[T], arg1: ClassTag[T]): T
  52. def endMarker(): Stat
  53. def ensureEarlyDef(tree: Stat): Stat
  54. 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
  55. 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
  56. 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
  57. 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
  58. def entryPointAmmonite(): MultiSource
  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 enumerators(): collection.immutable.List[Enumerator]
  80. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  81. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  82. def existentialStats(): collection.immutable.List[Stat]
  83. def expect[T <: Token](implicit arg0: ClassTag[T]): Unit
  84. def exportStmt(): Stat
  85. def expr(location: Location, allowRepeated: Boolean): Term
  86. def expr(): Term
  87. def exprSimpleType(): Type
  88. def exprTypeArgs(): ArgClause
  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 funDefOrDclOrExtensionOrSecondaryCtor(mods: collection.immutable.List[Mod]): Stat
  92. def funDefRest(mods: collection.immutable.List[Mod]): Stat
  93. def getAfterOptNewLine[A](body: ⇒ Option[A]): Option[A]
  94. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  95. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  96. def ifClause(mods: collection.immutable.List[Mod] = Nil): If
  97. def importStmt(): Import
  98. def importWildcardOrName(): Importee
  99. def importee(): Importee
  100. def importeeRename(from: Name): Importee
  101. def importees(): collection.immutable.List[Importee]
  102. def importer(): Importer
  103. var in: TokenIterator
  104. final def inBraces[T](body: ⇒ T): T
    Annotations
    @inline()
  105. final def inBracesOr[T](body: ⇒ T)(ifEmpty: ⇒ T): T
    Annotations
    @inline()
  106. final def inBracesOrNil[T](body: ⇒ collection.immutable.List[T]): collection.immutable.List[T]
    Annotations
    @inline()
  107. final def inBrackets[T](body: ⇒ T): T
    Annotations
    @inline()
  108. final def inParens[T](body: ⇒ T): T
    Annotations
    @inline()
  109. final def inParensOr[T](body: ⇒ T)(ifEmpty: ⇒ T): T
    Annotations
    @inline()
  110. final def indented[T](body: ⇒ T): T
    Annotations
    @inline()
  111. def init(): Init
  112. def initInsideConstructor(): Init
  113. def initInsideTemplate(): Init
  114. def initRest(typeParser: ⇒ Type, allowArgss: Boolean, insidePrimaryCtorAnnot: Boolean = false, allowBraces: Boolean = false, allowTypeSingleton: Boolean = true): Init
  115. 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.

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

    Default entry points into some pattern contexts.

  177. def patternTyp(): Type
  178. def patternTypeArgs(): ArgClause
  179. def peekIndex: Int
    Annotations
    @inline()
  180. def peekToken: Token
    Annotations
    @inline()
  181. def polyFunction(): PolyFunction
  182. def postfixExpr(allowRepeated: Boolean, location: Location = NoStat): Term
  183. def prefixExpr(allowRepeated: Boolean): Term
  184. def prevToken: Token
    Annotations
    @inline()
  185. def prevTokenPos: Int
    Annotations
    @inline()
  186. def primaryCtor(owner: TemplateOwner): Primary
  187. def qualId(): Term.Ref
  188. def quasiquoteCase(): Case
  189. def quasiquoteCtor(): Ctor
  190. def quasiquoteEnumerator(): Enumerator
  191. def quasiquoteExpr(): Term
  192. def quasiquoteImportee(): Importee
  193. def quasiquoteImporter(): Importer
  194. def quasiquoteInit(): Init
  195. def quasiquoteModifier(): Mod
  196. def quasiquotePattern(): Pat
  197. def quasiquoteSelf(): Self
  198. def quasiquoteSource(): Source
  199. def quasiquoteStat(): Stat
  200. def quasiquoteTemplate(): Template
  201. def quasiquoteTermParam(): Param
  202. def quasiquoteType(): Type
  203. def quasiquoteTypeParam(): Param
  204. def refineStat(): Option[Stat]
  205. def refineStatSeq(): collection.immutable.List[Stat]
  206. def rejectMod[M <: Mod](mods: collection.Iterable[Mod], errorMsg: String)(implicit tag: ClassTag[M]): Unit
  207. def rejectModCombination[M1 <: Mod, M2 <: Mod](mods: collection.Iterable[Mod], culpritOpt: ⇒ Option[String] = None)(implicit arg0: ClassTag[M1], arg1: ClassTag[M2]): Unit
  208. def rejectModWith[M <: Mod](m2: Mod, mods: collection.Iterable[Mod], culpritOpt: ⇒ Option[String] = None)(implicit arg0: ClassTag[M]): Unit
  209. final lazy val reporter: Reporter
  210. def secondaryCtor(mods: collection.immutable.List[Mod]): Secondary
  211. def secondaryCtorRest(mods: collection.immutable.List[Mod], name: This, paramss: collection.immutable.Seq[ParamClause]): Secondary
  212. def selector(t: Term): Select
    Annotations
    @inline()
  213. def selector(t: Term, startPos: Int): Select
  214. def seqPatterns(): collection.immutable.List[Pat]
  215. def simpleExpr(allowRepeated: Boolean): Term
  216. def source(): Source
  217. def stableId(): Term.Ref
  218. def startInfixType(): Type
  219. def startModType(): Type
  220. def stat(body: ⇒ Stat): Stat
  221. def statSeq[T <: Tree](statpf: PartialFunction[Token, T], errorMsg: String = "illegal start of definition"): collection.immutable.List[T]
  222. def statSeqBuf[T <: Tree](stats: ListBuffer[T], statpf: PartialFunction[Token, T], errorMsg: String = "illegal start of definition"): Boolean
  223. def summonClassifierFunc[A, B](implicit v: Classifier[A, B]): (A) ⇒ Boolean
  224. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  225. def syntaxErrorExpected[T <: Token](implicit arg0: ClassTag[T]): Nothing
  226. def template(owner: TemplateOwner, afterExtend: Boolean = false): Template
  227. def templateBodyOpt(owner: TemplateOwner): (Self, collection.immutable.List[Stat])
  228. def templateOpt(owner: TemplateOwner): Template
  229. def templateParents(afterExtend: Boolean = false): collection.immutable.List[Init]
  230. def templateStat(enumCaseAllowed: Boolean = false, secondaryConstructorAllowed: Boolean = false): PartialFunction[Token, Stat]
  231. def termName(): Term.Name
  232. def termParam(ownerIsCase: Boolean, ownerIsType: Boolean, mod: Option[ParamsType] = None)(paramIdx: Int): Param
  233. def termParamClauses(ownerIsType: Boolean, ownerIsCase: Boolean = false): collection.immutable.List[ParamClause]
  234. def tmplDef(mods: collection.immutable.List[Mod]): Stat
  235. def toString(): String
    Definition Classes
    AnyRef → Any
  236. def token: Token
    Annotations
    @inline()
  237. def tokenPos: Int
    Annotations
    @inline()
  238. 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]
  239. def topLevelTmplDef: Stat

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

  240. val topStat: PartialFunction[Token, Stat]
  241. def traitDef(mods: collection.immutable.List[Mod]): Trait
  242. implicit def treeToTreePos(tree: Tree): Pos
  243. def typ(): Type

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

  244. def typeBounds(): Bounds
  245. def typeDefOrDcl(mods: collection.immutable.List[Mod]): Member.Type with Stat
  246. def typeIndentedOpt(): Type
  247. def typeName(): Type.Name
  248. def typeOrInfixType(location: Location): Type
  249. def typeParam(ownerIsType: Boolean, ctxBoundsAllowed: Boolean, allowUnderscore: Boolean = true): Param
  250. def typedOpt(): Option[Type]
  251. def unquote[T <: Tree](implicit arg0: AstInfo[T]): T with Quasi
  252. def unquoteExpr(): Term
  253. def unquotePattern(): Pat
  254. def unquoteSeqPattern(): Pat
  255. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  256. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  257. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  258. def xmlLiteralPattern(): Pat
  259. def xmlPat(): Xml
  260. def xmlTerm(): Xml
  261. 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
  262. object AutoPos extends Pos with Product with Serializable
  263. object EndPosPreOutdent extends EndPos with Product with Serializable
  264. object OwnedByCaseClass extends TemplateOwner
  265. object OwnedByClass extends TemplateOwner
  266. object OwnedByEnum extends TemplateOwner
  267. object OwnedByObject extends TemplateOwner
  268. object OwnedByTrait extends TemplateOwner
  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

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