Parsers

dotty.tools.dotc.parsing.Parsers$
object Parsers

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Parsers.type

Members list

Concise view

Type members

Classlikes

enum Location(val inParens: Boolean, val inPattern: Boolean, val inArgs: Boolean)

Attributes

Graph
Supertypes
trait Enum
trait Product
trait Equals
class Object
trait Matchable
class Any
case class OpInfo(operand: Tree, operator: Ident, offset: Offset)

Attributes

Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
class OutlineParser(source: SourceFile)(using x$2: Context) extends Parser with OutlineParserCommon

OutlineParser parses top-level declarations in source to find declared classes, ignoring their bodies (which must only have balanced braces). This is used to map class names to defining sources.

OutlineParser parses top-level declarations in source to find declared classes, ignoring their bodies (which must only have balanced braces). This is used to map class names to defining sources.

Attributes

Graph
Supertypes
class Parser
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Graph
Supertypes
trait Enum
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
trait Enum
trait Product
trait Equals
class Object
trait Matchable
class Any
class Parser(source: SourceFile)(using x$2: Context) extends ParserCommon

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
abstract class ParserCommon(val source: SourceFile)(using x$2: Context)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object StageKind

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Types

type StageKind = Int

Value members

Concrete methods

def parser(source: SourceFile)(using Context): Parser

The parse starting point depends on whether the source file is self-contained: if not, the AST will be supplemented.

The parse starting point depends on whether the source file is self-contained: if not, the AST will be supplemented.

Attributes

Extensions

Extensions

extension (buf: ListBuffer[Tree])