scala.meta.internal.parsers.ScalametaParser
See theScalametaParser companion object
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object patInfixContextobject termInfixContext
object OwnedByCaseClass extends TemplateOwner
Attributes
- Supertypes
- Self type
-
OwnedByCaseClass.type
object OwnedByClass extends TemplateOwner
Attributes
- Supertypes
- Self type
-
OwnedByClass.type
object OwnedByEnum extends TemplateOwner
Attributes
- Supertypes
- Self type
-
OwnedByEnum.type
object OwnedByGiven extends TemplateOwner
Attributes
- Supertypes
- Self type
-
OwnedByGiven.type
object OwnedByObject extends TemplateOwner
Attributes
- Supertypes
- Self type
-
OwnedByObject.type
object OwnedByTrait extends TemplateOwner
Attributes
- Supertypes
- Self type
-
OwnedByTrait.type
trait PatternContextSensitive
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.
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.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait SeqContextSensitiveobject noSeqobject noSeqWithNamedobject seqOKobject seqOKWithNamedobject outPatternShow all
trait SeqContextSensitive extends PatternContextSensitive
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.
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.
Attributes
- Supertypes
- Known subtypes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object OwnedByCaseClassobject OwnedByClassobject OwnedByEnumobject OwnedByGivenobject OwnedByObjectobject OwnedByTraitShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
object noSeq extends SeqContextSensitive
The implementation for parsing inside of patterns at points where sequences are disallowed.
The implementation for parsing inside of patterns at points where sequences are disallowed.
Attributes
- Supertypes
- Self type
-
noSeq.type
object noSeqWithNamed extends SeqContextSensitive
Attributes
- Supertypes
- Self type
-
noSeqWithNamed.type
object outPattern extends PatternContextSensitive
The implementation of the context sensitive methods for parsing outside of patterns.
The implementation of the context sensitive methods for parsing outside of patterns.
Attributes
- Supertypes
- Self type
-
outPattern.type
object patInfixContext extends InfixContext
Attributes
- Supertypes
- Self type
-
patInfixContext.type
object seqOK extends SeqContextSensitive
The implementation for parsing inside of patterns at points where sequences are allowed.
The implementation for parsing inside of patterns at points where sequences are allowed.
Attributes
- Supertypes
- Self type
-
seqOK.type
object seqOKWithNamed extends SeqContextSensitive
Attributes
- Supertypes
- Self type
-
seqOKWithNamed.type
object termInfixContext extends InfixContext
Attributes
- Supertypes
- Self type
-
termInfixContext.type
Value members
Concrete methods
Consume one token of the specified type, or signal an error if it is not there.
Consume one token of the specified type, or signal an error if it is not there.
Attributes
Scoping operator used to temporarily look into the future. Backs up token iterator before evaluating a block and restores it after.
Scoping operator used to temporarily look into the future. Backs up token iterator before evaluating a block and restores it after.
Attributes
def annotsBuf[T >: Annot](annots: ListBuffer[T], skipNewLines: Boolean, insidePrimaryCtorAnnot: Boolean, allowArgss: Boolean): Unit
def defOrDclOrSecondaryCtor(mods: List[Mod], enumCaseAllowed: Boolean, secondaryConstructorAllowed: Boolean): Stat
def initRest(typeParser: => Type, allowArgss: Boolean, insidePrimaryCtorAnnot: Boolean, allowBraces: Boolean, allowTypeSingleton: Boolean): Init
def initRestAt(startPos: StartPos, tpe: Type)(allowArgss: Boolean, insidePrimaryCtorAnnot: Boolean, allowBraces: Boolean, allowSingleton: Boolean): Init
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.
Attributes
def memberParamClauseGroup(isFirst: Boolean, ownerIsType: Boolean, ownerIsCase: Boolean, allowUnderscore: Boolean): Option[ParamClauseGroup]
Default entry points into some pattern contexts.
Default entry points into some pattern contexts.
Attributes
def statSeqBuf[T <: Tree](stats: ListBuffer[T], statpf: PartialFunction[Token, T], errorMsg: String): Boolean
def templateStat(enumCaseAllowed: Boolean, secondaryConstructorAllowed: Boolean): PartialFunction[Token, Stat]
def termParam(ownerIsCase: Boolean, ownerIsType: Boolean, mod: Option[ParamsType], allowAnonName: Boolean)(paramIdx: Int): Param
final def tokenSeparated[Sep : ClassTag, T <: Tree : ClassTag](sepFirst: Boolean, part: Int => T): List[T]
Hook for IDE, for top-level classes/objects.
Hook for IDE, for top-level classes/objects.
Attributes
These are default entry points into the pattern context sensitive methods: they are all initiated from non-pattern context.
These are default entry points into the pattern context sensitive methods: they are all initiated from non-pattern context.
Attributes
Concrete fields
Implicits
Implicits
In this article