RegionControlMaybeBody

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

Describes the part of an if or while whose condition started with an opening parenthesis, after encountering the matching closing parenthesis; it might still continue a scala3-style condition or describe the body instead.

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