ParseResult

object ParseResult
Companion
class
class Object
trait Matchable
class Any

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.