Dotty Documentation

0.15.0-bin-SNAPSHOT

class ScriptParser
extends Parser

[-] Constructors

ScriptParser ( source: SourceFile )
ScriptParser ( implicit ctx: Context )

[-] Members

[+] private implicit val ctx : Context
[+] private val source : SourceFile
[+] override def parse ( ) : Tree

This is the parse entry point for code which is not self-contained, e.g. a script which is a series of template statements. They will be swaddled in Trees until the AST is equivalent to the one returned by compilationUnit().