Parsers

dotty.tools.dotc.parsing.Parsers
object Parsers

Attributes

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

Members list

Type members

Classlikes

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

Attributes

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

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class OutlineParser(source: SourceFile)(using x$2: Context) extends Parser, 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

Supertypes
class Parser
class ParserCommon
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class ParserCommon
class Object
trait Matchable
class Any
Known subtypes
enum ParamOwner

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum ParseKind

Attributes

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

Attributes

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

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class JavaParser
class Parser
class ScriptParser
Show all
object StageKind

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
StageKind.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])
def +++=(x: Tree): ListBuffer[Tree]