RegionControlMaybeCond

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

Describes the initial part of an if or while condition that started with an opening parenthesis, before the matching closing parenthesis has been encountered.

Attributes

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

Members list

Value members

Abstract methods

def asBody(): Option[RegionControl]

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