ParseResult

Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def apply(source: SourceFile)(implicit state: State): ParseResult
def apply(sourceCode: String)(implicit state: State): ParseResult
def isIncomplete(sourceCode: String)(using Context): Boolean

Check if the input is incomplete.

Check if the input is incomplete.

This can be used in order to check if a newline can be inserted without having to evaluate the expression.