RegionControlCond

scala.meta.internal.parsers.RegionControlCond
sealed trait RegionControlCond extends RegionControl

Describes a scala3-style condition of an if or while which requires a terminating token.

Attributes

Graph
Supertypes
trait CanProduceLF
trait SepRegion
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Concrete methods

final def isTerminatingTokenRequired(): Boolean

Inherited methods

def indent: Int

Attributes

Inherited from:
SepRegion
final override def isIndented: Boolean

Attributes

Definition Classes
Inherited from:
SepRegionNonIndented
final def isNotTerminatingTokenIfOptional(token: Token): Boolean

In cases when we encounter a terminating token, the control region is completed.

In cases when we encounter a terminating token, the control region is completed.

However, in cases when it's optional, some other token could also possibly terminate the control region, and this method allows dealing with that special case.

Attributes

Inherited from:
RegionControl

Inherited and Abstract methods

def isControlKeyword(token: Token): Boolean

Attributes

Inherited from:
RegionControl
def isTerminatingToken(token: Token): Boolean

Attributes

Inherited from:
RegionControl