final class 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.
- Source
- Parsers.scala
- Alphabetic
- By Inheritance
- SeqContextSensitive
- PatternContextSensitive
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SeqContextSensitive(isSequenceOK: Boolean, isXML: Boolean)
- isSequenceOK
is a sequence pattern _* allowed?
- isXML
are we in an XML pattern?
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from SeqContextSensitive toany2stringadd[SeqContextSensitive] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (SeqContextSensitive, B)
- Implicit
- This member is added by an implicit conversion from SeqContextSensitive toArrowAssoc[SeqContextSensitive] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def annotType(): Global.Tree
AnnotType ::= SimpleType {Annotation}
- Definition Classes
- PatternContextSensitive
- final def argType(): Global.Tree
ArgType ::= Type
- Definition Classes
- SeqContextSensitive → PatternContextSensitive
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def badPattern3(): Global.Tree
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def compoundType(): Global.Tree
CompoundType ::= AnnotType {with AnnotType} [Refinement] | Refinement
- Definition Classes
- PatternContextSensitive
- def compoundTypeRest(t: Global.Tree): Global.Tree
- Definition Classes
- PatternContextSensitive
- def ensuring(cond: (SeqContextSensitive) => Boolean, msg: => Any): SeqContextSensitive
- Implicit
- This member is added by an implicit conversion from SeqContextSensitive toEnsuring[SeqContextSensitive] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (SeqContextSensitive) => Boolean): SeqContextSensitive
- Implicit
- This member is added by an implicit conversion from SeqContextSensitive toEnsuring[SeqContextSensitive] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): SeqContextSensitive
- Implicit
- This member is added by an implicit conversion from SeqContextSensitive toEnsuring[SeqContextSensitive] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): SeqContextSensitive
- Implicit
- This member is added by an implicit conversion from SeqContextSensitive toEnsuring[SeqContextSensitive] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from SeqContextSensitive toStringFormat[SeqContextSensitive] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def functionArgType(): Global.Tree
- Definition Classes
- SeqContextSensitive → PatternContextSensitive
- def functionTypes(): List[Global.Tree]
- Definition Classes
- PatternContextSensitive
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def infixType(mode: InfixMode.Value): Global.Tree
InfixType ::= CompoundType {id [nl] CompoundType}
- Definition Classes
- PatternContextSensitive
- def infixTypeRest(t: Global.Tree, mode: InfixMode.Value): Global.Tree
- Definition Classes
- PatternContextSensitive
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val isSequenceOK: Boolean
- val isXML: Boolean
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def pattern(): Global.Tree
Pattern ::= Pattern1 { `|` Pattern1 } SeqPattern ::= SeqPattern1 { `|` SeqPattern1 }
- def pattern1(): Global.Tree
Pattern1 ::= boundvarid `:` TypePat | `_` `:` TypePat | Pattern2 SeqPattern1 ::= boundvarid `:` TypePat | `_` `:` TypePat | [SeqPattern2]
- def pattern2(): Global.Tree
Pattern2 ::= id `@` Pattern3 | `_` `@` Pattern3 | Pattern3
- def pattern3(): Global.Tree
Pattern3 ::= SimplePattern | SimplePattern {Id [nl] SimplePattern}
- def patterns(): List[Global.Tree]
Patterns ::= Pattern { `,` Pattern } SeqPatterns ::= SeqPattern { `,` SeqPattern }
- def simplePattern(onError: () => Global.Tree): Global.Tree
- def simplePattern(): Global.Tree
SimplePattern ::= varid | `_` | literal | XmlPattern | StableId /[TypeArgs]/ [`(` [Patterns] `)`] | StableId [`(` [Patterns] `)`] | StableId [`(` [Patterns] `,` [varid `@`] `_` `*` `)`] | `(` [Patterns] `)`
XXX: Hook for IDE
- def simpleType(): Global.Tree
SimpleType ::= SimpleType TypeArgs | SimpleType `#` Id | StableId | Path `.` type | Literal | `(` Types `)` | WildcardType
- Definition Classes
- PatternContextSensitive
- final def simpleTypeRest(t: Global.Tree): Global.Tree
- Definition Classes
- PatternContextSensitive
- Annotations
- @tailrec()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def typ(): Global.Tree
Type ::= InfixType `=>` Type | `(` [`=>` Type] `)` `=>` Type | InfixType [ExistentialClause] ExistentialClause ::= forSome `{` ExistentialDcl {semi ExistentialDcl} `}` ExistentialDcl ::= type TypeDcl | val ValDcl
- Definition Classes
- PatternContextSensitive
- def typeArgs(): List[Global.Tree]
TypeArgs ::= `[` ArgType {`,` ArgType} `]`
- Definition Classes
- PatternContextSensitive
- def types(): List[Global.Tree]
Types ::= Type {`,` Type}
- Definition Classes
- PatternContextSensitive
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def →[B](y: B): (SeqContextSensitive, B)
- Implicit
- This member is added by an implicit conversion from SeqContextSensitive toArrowAssoc[SeqContextSensitive] 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.
The Scala compiler and reflection APIs.