RegionControl

scala.meta.internal.parsers.RegionControl

All control statements

Attributes

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

Members list

Value members

Abstract methods

def isControlKeyword(token: Token): Boolean
def isTerminatingToken(token: Token): Boolean

Concrete methods

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 methods

def indent: Int

Attributes

Inherited from:
SepRegion
final override def isIndented: Boolean

Attributes

Definition Classes
Inherited from:
SepRegionNonIndented