ParseResult

dotty.tools.repl.ParseResult$
See theParseResult companion trait
object ParseResult

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(source: SourceFile)(using state: State): ParseResult
def apply(sourceCode: String)(using state: State): ParseResult
def complete(sourceCode: String)(using 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.

Attributes