scala.tools.nsc.ast.parser.Parsers

SourceFileParser

class SourceFileParser extends Parser

Source
Parsers.scala
Linear Supertypes
Parser, ParserCommon, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SourceFileParser
  2. Parser
  3. ParserCommon
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SourceFileParser(source: SourceFile)

Type Members

  1. trait PatternContextSensitive extends AnyRef

    Methods which implicitly propagate the context in which they were called: either in a pattern context or not.

  2. trait SeqContextSensitive extends PatternContextSensitive

    Methods which implicitly propagate whether the initial call took place in a context where sequences are allowed.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object InfixMode extends Enumeration

    modes for infix types

  7. def accept(token: Int): Int

    Consume one token of the specified type, or signal an error if it is not there.

    Consume one token of the specified type, or signal an error if it is not there.

    Definition Classes
    ParserParserCommon
  8. def acceptStatSep(): Unit

    semi = nl {nl} | ;' nl = \n' // where allowed

    semi = nl {nl} | ;' nl = \n' // where allowed

    Definition Classes
    Parser
  9. def acceptStatSepOpt(): Unit

    Definition Classes
    Parser
  10. def accessModifierOpt(): Modifiers

    AccessModifier ::= (private | protected) [AccessQualifier]

    AccessModifier ::= (private | protected) [AccessQualifier]

    Definition Classes
    Parser
  11. def accessQualifierOpt(mods: Modifiers): Modifiers

    AccessQualifier ::= "[" (Id | this) "]"

    AccessQualifier ::= "[" (Id | this) "]"

    Definition Classes
    Parser
  12. def annotTypeRest(t: Tree): Tree

    Definition Classes
    Parser
  13. def annotationExpr(): Tree

    Definition Classes
    Parser
  14. def annotations(skipNewLines: Boolean): List[Tree]

    Annotations ::= {@' SimpleType {ArgumentExprs}} ConsrAnnotations ::= {@' SimpleType ArgumentExprs}

    Annotations ::= {@' SimpleType {ArgumentExprs}} ConsrAnnotations ::= {@' SimpleType ArgumentExprs}

    Definition Classes
    Parser
  15. def argumentExprs(): List[Tree]

    ArgumentExprs ::= (' [Exprs] )' | [nl] BlockExpr

    ArgumentExprs ::= (' [Exprs] )' | [nl] BlockExpr

    Definition Classes
    Parser
  16. def argumentPatterns(): List[Tree]

    Definition Classes
    Parser
  17. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  18. var assumedClosingParens: Map[Int, Int]

    Definition Classes
    Parser
  19. def atPos[T <: Tree](pos: Position)(t: T): T

    Definition Classes
    Parser
  20. def atPos[T <: Tree](start: Int, point: Int, end: Int)(t: T): T

    Definition Classes
    Parser
  21. def atPos[T <: Tree](start: Int, point: Int)(t: T): T

    Definition Classes
    Parser
  22. def atPos[T <: Tree](offset: Int)(t: T): T

    Definition Classes
    Parser
  23. def block(): Tree

    Block ::= BlockStatSeq

    Block ::= BlockStatSeq

    Definition Classes
    Parser
    Note

    Return tree does not carry position.

  24. def blockExpr(): Tree

    BlockExpr ::= {' (CaseClauses | Block) }'

    BlockExpr ::= {' (CaseClauses | Block) }'

    Definition Classes
    Parser
  25. def blockStatSeq(): List[Tree]

    BlockStatSeq ::= { BlockStat semi } [ResultExpr] BlockStat ::= Import | Annotations [implicit] [lazy] Def | Annotations LocalModifiers TmplDef | Expr1 |

    BlockStatSeq ::= { BlockStat semi } [ResultExpr] BlockStat ::= Import | Annotations [implicit] [lazy] Def | Annotations LocalModifiers TmplDef | Expr1 |

    Definition Classes
    Parser
  26. def bound(tok: Int, default: TypeName): Tree

    Definition Classes
    Parser
  27. def caseBlock(): Tree

    Definition Classes
    Parser
  28. def caseClauses(): List[CaseDef]

    CaseClauses ::= CaseClause {CaseClause} CaseClause ::= case Pattern [Guard] =>' Block

    CaseClauses ::= CaseClause {CaseClause} CaseClause ::= case Pattern [Guard] =>' Block

    Definition Classes
    Parser
  29. def caseSeparated[T](part: ⇒ T): List[T]

    Definition Classes
    Parser
  30. def checkAssoc(offset: Int, op: Name, leftAssoc: Boolean): Unit

    Definition Classes
    Parser
  31. def checkLegalExistential(t: Tree): Unit

    Check that tree is a legal clause of a forSome

    Check that tree is a legal clause of a forSome

    Definition Classes
    Parser
  32. def checkNoEscapingPlaceholders[T](op: ⇒ T): T

    Definition Classes
    Parser
  33. def checkNotByNameOrVarargs(tpt: Tree): Unit

    Check that type parameter is not by name or repeated

    Check that type parameter is not by name or repeated

    Definition Classes
    Parser
  34. def checkSize(kind: String, size: Int, max: Int): Unit

    Definition Classes
    Parser
  35. def classDef(start: Int, mods: Modifiers): ClassDef

    ClassDef ::= Id [TypeParamClause] {Annotation} [AccessModifier] ClassParamClauses RequiresTypeOpt ClassTemplateOpt TraitDef ::= Id [TypeParamClause] RequiresTypeOpt TraitTemplateOpt

    ClassDef ::= Id [TypeParamClause] {Annotation} [AccessModifier] ClassParamClauses RequiresTypeOpt ClassTemplateOpt TraitDef ::= Id [TypeParamClause] RequiresTypeOpt TraitTemplateOpt

    Definition Classes
    Parser
  36. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. def commaSeparated[T](part: ⇒ T): List[T]

    Definition Classes
    Parser
  38. def compilationUnit(): Tree

    CompilationUnit ::= {package QualId semi} TopStatSeq

    CompilationUnit ::= {package QualId semi} TopStatSeq

    Definition Classes
    Parser
  39. def condExpr(): Tree

    Definition Classes
    Parser
  40. def constrBlock(vparamss: List[List[ValDef]]): Tree

    ConstrBlock ::= {' SelfInvocation {semi BlockStat} }'

    ConstrBlock ::= {' SelfInvocation {semi BlockStat} }'

    Definition Classes
    Parser
  41. def constrExpr(vparamss: List[List[ValDef]]): Tree

    ConstrExpr ::= SelfInvocation | ConstrBlock

    ConstrExpr ::= SelfInvocation | ConstrBlock

    Definition Classes
    Parser
  42. def constructorAnnotations(): List[Tree]

    Definition Classes
    Parser
  43. def convertToParam(tree: Tree): ValDef

    Convert tree to formal parameter

    Convert tree to formal parameter

    Definition Classes
    Parser
  44. def convertToParams(tree: Tree): List[ValDef]

    Convert tree to formal parameter list

    Convert tree to formal parameter list

    Definition Classes
    Parser
  45. def convertToTypeId(tree: Tree): Tree

    Convert (qual)ident to type identifier

    Convert (qual)ident to type identifier

    Definition Classes
    Parser
  46. def defOrDcl(pos: Int, mods: Modifiers): List[Tree]

    Def ::= val PatDef | var PatDef | def FunDef | type [nl] TypeDef | TmplDef Dcl ::= val PatDcl | var PatDcl | def FunDcl | type [nl] TypeDcl

    Def ::= val PatDef | var PatDef | def FunDef | type [nl] TypeDef | TmplDef Dcl ::= val PatDcl | var PatDcl | def FunDcl | type [nl] TypeDcl

    Definition Classes
    Parser
  47. def deprecationWarning(offset: Int, msg: String): Unit

    Definition Classes
    SourceFileParserParserCommon
  48. def enumerators(): List[Enumerator]

    Enumerators ::= Generator {semi Enumerator} Enumerator ::= Generator | Guard | val Pattern1 =' Expr

    Enumerators ::= Generator {semi Enumerator} Enumerator ::= Generator | Guard | val Pattern1 =' Expr

    Definition Classes
    Parser
  49. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  50. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  51. def equalsExpr(): Tree

    EqualsExpr ::= =' Expr

    EqualsExpr ::= =' Expr

    Definition Classes
    Parser
  52. def errorPatternTree: Ident

    Definition Classes
    Parser
  53. def errorTermTree: Literal

    Definition Classes
    Parser
  54. def errorTypeTree: TypeTree

    Definition Classes
    Parser
  55. def expectedMsg(token: Int): String

    Definition Classes
    Parser
  56. def expr(location: Int): Tree

    Definition Classes
    Parser
  57. def expr(): Tree

    Expr ::= (Bindings | [implicit'] Id | _') =>' Expr | Expr1 ResultExpr ::= (Bindings | Id :' CompoundType) =>' Block | Expr1 Expr1 ::= if (' Expr )' {nl} Expr semi]

    Expr ::= (Bindings | [implicit'] Id | _') =>' Expr | Expr1 ResultExpr ::= (Bindings | Id :' CompoundType) =>' Block | Expr1 Expr1 ::= if (' Expr )' {nl} Expr semi]

    Definition Classes
    Parser
  58. def expr0(location: Int): Tree

    Definition Classes
    Parser
  59. def exprSimpleType(): Tree

    Definition Classes
    Parser
  60. def exprTypeArgs(): List[Tree]

    Definition Classes
    Parser
  61. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  62. def freshName(prefix: String): Name

    Definition Classes
    SourceFileParserParserParserCommon
  63. def freshTermName(prefix: String): TermName

    Definition Classes
    SourceFileParserParserParserCommon
  64. def freshTypeName(prefix: String): TypeName

    Definition Classes
    SourceFileParserParserParserCommon
  65. def funDefOrDcl(start: Int, mods: Modifiers): Tree

    FunDef ::= FunSig :' Type =' Expr | FunSig [nl] {' Block }' | this ParamClause ParamClauses (=' ConstrExpr | [nl] ConstrBlock) FunDcl ::= FunSig [:' Type] FunSig ::= id [FunTypeParamClause] ParamClauses

    FunDef ::= FunSig :' Type =' Expr | FunSig [nl] {' Block }' | this ParamClause ParamClauses (=' ConstrExpr | [nl] ConstrBlock) FunDcl ::= FunSig [:' Type] FunSig ::= id [FunTypeParamClause] ParamClauses

    Definition Classes
    Parser
  66. def generator(enums: ListBuffer[Enumerator], eqOK: Boolean): Unit

    Generator ::= Pattern1 (<-' | '=') Expr [Guard]

    Generator ::= Pattern1 (<-' | '=') Expr [Guard]

    Definition Classes
    Parser
  67. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  68. def guard(): Tree

    Guard ::= if PostfixExpr

    Guard ::= if PostfixExpr

    Definition Classes
    Parser
  69. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  70. def ident(): Name

    Definition Classes
    Parser
  71. def ident(skipIt: Boolean): Name

    Assumed (provisionally) to be TermNames.

    Assumed (provisionally) to be TermNames.

    Definition Classes
    Parser
  72. def identForType(skipIt: Boolean): TypeName

    Definition Classes
    Parser
  73. def identForType(): TypeName

    For when it's known already to be a type name.

    For when it's known already to be a type name.

    Definition Classes
    Parser
  74. def implicitClosure(start: Int, location: Int): Tree

    Expr ::= implicit Id => Expr

    Expr ::= implicit Id => Expr

    Definition Classes
    Parser
  75. def importClause(): List[Tree]

    Import ::= import ImportExpr {,' ImportExpr}

    Import ::= import ImportExpr {,' ImportExpr}

    Definition Classes
    Parser
  76. def importExpr(): Tree

    ImportExpr ::= StableId .' (Id | _' | ImportSelectors)

    ImportExpr ::= StableId .' (Id | _' | ImportSelectors)

    Definition Classes
    Parser
  77. def importSelector(): ImportSelector

    ImportSelector ::= Id [=>' Id | =>' _']

    ImportSelector ::= Id [=>' Id | =>' _']

    Definition Classes
    Parser
  78. def importSelectors(): List[ImportSelector]

    ImportSelectors ::= {' {ImportSelector ,'} (ImportSelector | _') }'

    ImportSelectors ::= {' {ImportSelector ,'} (ImportSelector | _') }'

    Definition Classes
    Parser
  79. val in: SourceFileScanner

    Definition Classes
    SourceFileParserParserParserCommon
  80. def inBraces[T](body: ⇒ T): T

    Definition Classes
    ParserCommon
  81. def inBracesOrError[T](body: ⇒ T, alt: T): T

    Definition Classes
    ParserCommon
  82. def inBracesOrNil[T](body: ⇒ List[T]): List[T]

    Definition Classes
    ParserCommon
  83. def inBracesOrUnit[T](body: ⇒ Tree): Tree

    Definition Classes
    ParserCommon
  84. def inBrackets[T](body: ⇒ T): T

    Definition Classes
    ParserCommon
  85. def inParens[T](body: ⇒ T): T

    Methods inParensOrError and similar take a second argument which, should the next token not be the expected opener (e.

    Methods inParensOrError and similar take a second argument which, should the next token not be the expected opener (e.g. LPAREN) will be returned instead of the contents of the groupers. However in all cases accept(LPAREN) will be called, so a parse error will still result. If the grouping is optional, in.token should be tested before calling these methods.

    Definition Classes
    ParserCommon
  86. def inParensOrError[T](body: ⇒ T, alt: T): T

    Definition Classes
    ParserCommon
  87. def inParensOrNil[T](body: ⇒ List[T]): List[T]

    Definition Classes
    ParserCommon
  88. def inParensOrUnit[T](body: ⇒ Tree): Tree

    Definition Classes
    ParserCommon
  89. def incompleteInputError(msg: String): Unit

    Definition Classes
    SourceFileParserParser
  90. def isDclIntro: Boolean

    Definition Classes
    Parser
  91. def isDefIntro: Boolean

    Definition Classes
    Parser
  92. def isExprIntro: Boolean

    Definition Classes
    Parser
  93. def isExprIntroToken(token: Int): Boolean

    Definition Classes
    Parser
  94. def isIdent: Boolean

    Definition Classes
    Parser
  95. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  96. def isInterface(mods: Modifiers, body: List[Tree]): Boolean

    Definition Classes
    Parser
  97. def isLiteral: Boolean

    Definition Classes
    Parser
  98. def isLiteralToken(token: Int): Boolean

    Definition Classes
    Parser
  99. def isLocalModifier: Boolean

    Definition Classes
    Parser
  100. def isModifier: Boolean

    Definition Classes
    Parser
  101. def isNumericLit: Boolean

    Definition Classes
    Parser
  102. def isRawBar: Boolean

    Definition Classes
    Parser
  103. def isRawStar: Boolean

    Definition Classes
    Parser
  104. def isStatSep: Boolean

    Definition Classes
    Parser
  105. def isStatSep(token: Int): Boolean

    Definition Classes
    Parser
  106. def isStatSeqEnd: Boolean

    Definition Classes
    Parser
  107. def isTemplateIntro: Boolean

    Definition Classes
    Parser
  108. def isTypeIntro: Boolean

    Definition Classes
    Parser
  109. def isTypeIntroToken(token: Int): Boolean

    Definition Classes
    Parser
  110. def isUnaryOp: Boolean

    Definition Classes
    Parser
  111. def isWildcard(t: Tree): Boolean

    Definition Classes
    Parser
  112. def joinComment(trees: ⇒ List[Tree]): List[Tree]

    Join the comment associated with a definition

    Join the comment associated with a definition

    Definition Classes
    Parser
  113. def literal(isNegated: Boolean): Tree

    SimpleExpr ::= literal | symbol | null

    SimpleExpr ::= literal | symbol | null

    Definition Classes
    Parser
    Note

    The returned tree does not yet have a position

  114. def localDef(implicitMod: Int): List[Tree]

    overridable IDE hook for local definitions of blockStatSeq Here's an idea how to fill in start and end positions.

    overridable IDE hook for local definitions of blockStatSeq Here's an idea how to fill in start and end positions. def localDef : List[Tree] = { atEndPos { atStartPos(in.offset) { val annots = annotations(true) val mods = localModifiers() withAnnotations annots if (!(mods hasFlag ~(Flags.IMPLICIT | Flags.LAZY))) defOrDcl(mods) else List(tmplDef(mods)) } } (in.offset) }

    Definition Classes
    Parser
  115. def localModifiers(): Modifiers

    LocalModifiers ::= {LocalModifier} LocalModifier ::= abstract | final | sealed | implicit | lazy

    LocalModifiers ::= {LocalModifier} LocalModifier ::= abstract | final | sealed | implicit | lazy

    Definition Classes
    Parser
  116. def makeFilter(start: Int, tree: Tree): Filter

    Definition Classes
    Parser
  117. def makePackageObject(start: Int, objDef: ModuleDef): PackageDef

    Create a tree representing a package object, converting package object foo { .

    Create a tree representing a package object, converting package object foo { ... } to package foo { object package { ... } }

    Definition Classes
    Parser
  118. def makePackaging(start: Int, pkg: Tree, stats: List[Tree]): PackageDef

    Create a tree representing a packaging

    Create a tree representing a packaging

    Definition Classes
    Parser
  119. def makeParens(body: ⇒ List[Tree]): Parens

    Creates an actual Parens node (only used during parsing.

    Creates an actual Parens node (only used during parsing.)

    Definition Classes
    ParserCommon
  120. def mixinQualifierOpt(): TypeName

    MixinQualifier ::= [' Id ]'

    MixinQualifier ::= [' Id ]'

    Definition Classes
    Parser
  121. def modifiers(): Modifiers

    Modifiers ::= {Modifier} Modifier ::= LocalModifier | AccessModifier | override

    Modifiers ::= {Modifier} Modifier ::= LocalModifier | AccessModifier | override

    Definition Classes
    Parser
  122. def multipleArgumentExprs(): List[List[Tree]]

    A succession of argument lists.

    A succession of argument lists.

    Definition Classes
    Parser
  123. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  124. def newLineOpt(): Unit

    Definition Classes
    Parser
  125. def newLineOptWhenFollowedBy(token: Int): Unit

    Definition Classes
    Parser
  126. def newLineOptWhenFollowing(p: (Int) ⇒ Boolean): Unit

    Definition Classes
    Parser
  127. def newLinesOpt(): Unit

    Definition Classes
    Parser
  128. def newScanner: SourceFileScanner

  129. object noSeq extends SeqContextSensitive

    The implementation for parsing inside of patterns at points where sequences are disallowed.

  130. def nonLocalDefOrDcl: List[Tree]

    Definition Classes
    Parser
  131. final def notify(): Unit

    Definition Classes
    AnyRef
  132. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  133. def o2p(offset: Int): Position

    Definition Classes
    SourceFileParserParser
  134. def objectDef(start: Int, mods: Modifiers): ModuleDef

    ObjectDef ::= Id ClassTemplateOpt

    ObjectDef ::= Id ClassTemplateOpt

    Definition Classes
    Parser
  135. var opstack: List[OpInfo]

    Definition Classes
    Parser
  136. object outPattern extends PatternContextSensitive

    The implementation of the context sensitive methods for parsing outside of patterns.

  137. def packaging(start: Int): Tree

    Packaging ::= package QualId [nl] {' TopStatSeq }'

    Packaging ::= package QualId [nl] {' TopStatSeq }'

    Definition Classes
    Parser
  138. def paramClauses(owner: Name, contextBounds: List[Tree], ofCaseClass: Boolean): List[List[ValDef]]

    ParamClauses ::= {ParamClause} nl]

    ParamClauses ::= {ParamClause} nl]

    Definition Classes
    Parser
  139. def paramType(useStartAsPosition: Boolean): Tree

    Definition Classes
    Parser
  140. def paramType(): Tree

    ParamType ::= Type | =>' Type | Type *'

    ParamType ::= Type | =>' Type | Type *'

    Definition Classes
    Parser
  141. def parse(): Tree

    This is the general parse entry point.

    This is the general parse entry point.

    Definition Classes
    Parser
  142. def parseStartRule: () ⇒ Tree

    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.

    Definition Classes
    SourceFileParserParser
  143. def patDefOrDcl(pos: Int, mods: Modifiers): List[Tree]

    PatDef ::= Pattern2 {,' Pattern2} [:' Type] =' Expr ValDcl ::= Id {,' Id} :' Type VarDef ::= PatDef | Id {,' Id} :' Type =' _'

    PatDef ::= Pattern2 {,' Pattern2} [:' Type] =' Expr ValDcl ::= Id {,' Id} :' Type VarDef ::= PatDef | Id {,' Id} :' Type =' _'

    Definition Classes
    Parser
  144. def path(thisOK: Boolean, typeOK: Boolean): Tree

    Path ::= StableId | [Ident .'] this AnnotType ::= Path [.

    Path ::= StableId | [Ident .'] this AnnotType ::= Path [.' type]

    Definition Classes
    Parser
  145. def pattern(): Tree

    Default entry points into some pattern contexts.

    Default entry points into some pattern contexts.

    Definition Classes
    Parser
  146. def patterns(): List[Tree]

    Definition Classes
    Parser
  147. var placeholderParams: List[ValDef]

    The implicit parameters introduced by _' in the current expression. Parameters appear in reverse order

    The implicit parameters introduced by _' in the current expression. Parameters appear in reverse order

    Definition Classes
    Parser
  148. def placeholderTypeBoundary(op: ⇒ Tree): Tree

    Definition Classes
    Parser
  149. var placeholderTypes: List[TypeDef]

    The placeholderTypes introduced by _' in the current type. Parameters appear in reverse order

    The placeholderTypes introduced by _' in the current type. Parameters appear in reverse order

    Definition Classes
    Parser
  150. def postfixExpr(): Tree

    PostfixExpr ::= InfixExpr [Id [nl]] InfixExpr ::= PrefixExpr | InfixExpr Id [nl] InfixExpr

    PostfixExpr ::= InfixExpr [Id [nl]] InfixExpr ::= PrefixExpr | InfixExpr Id [nl] InfixExpr

    Definition Classes
    Parser
  151. def precedence(operator: Name): Int

    Definition Classes
    Parser
  152. def prefixExpr(): Tree

    PrefixExpr ::= [-' | +' | ~' | !' | &'] SimpleExpr

    PrefixExpr ::= [-' | +' | ~' | !' | &'] SimpleExpr

    Definition Classes
    Parser
  153. def qualId(): Tree

    QualId ::= Id {.' Id}

    QualId ::= Id {.' Id}

    Definition Classes
    Parser
  154. def r2p(start: Int, mid: Int, end: Int): Position

    Definition Classes
    SourceFileParserParser
  155. def readAnnots[T](part: ⇒ T): List[T]

    Definition Classes
    Parser
  156. def reduceStack(isExpr: Boolean, base: List[OpInfo], top0: Tree, prec: Int, leftAssoc: Boolean): Tree

    Definition Classes
    Parser
  157. def refineStatSeq(): List[Tree]

    RefineStatSeq ::= RefineStat {semi RefineStat} RefineStat ::= Dcl | type TypeDef |

    RefineStatSeq ::= RefineStat {semi RefineStat} RefineStat ::= Dcl | type TypeDef |

    Definition Classes
    Parser
  158. def refinement(): List[Tree]

    Refinement ::= [nl] {' RefineStat {semi RefineStat} }'

    Refinement ::= [nl] {' RefineStat {semi RefineStat} }'

    Definition Classes
    Parser
  159. def resetPackage(): Unit

    Definition Classes
    Parser
  160. def scriptBody(): Tree

    This is the parse entry point for code which is not self-contained, e.

    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().

    Definition Classes
    Parser
  161. def selector(t: Tree): Tree

    Definition Classes
    Parser
  162. def selectors(t: Tree, typeOK: Boolean, dotOffset: Int): Tree

    Definition Classes
    Parser
  163. def selfInvocation(vparamss: List[List[ValDef]]): Tree

    SelfInvocation ::= this ArgumentExprs {ArgumentExprs}

    SelfInvocation ::= this ArgumentExprs {ArgumentExprs}

    Definition Classes
    Parser
  164. object seqOK extends SeqContextSensitive

    The implementation for parsing inside of patterns at points where sequences are allowed.

  165. def seqPatterns(): List[Tree]

    Definition Classes
    Parser
  166. def simpleExpr(): Tree

    Definition Classes
    Parser
  167. def simpleExprRest(t: Tree, canApply: Boolean): Tree

    Definition Classes
    Parser
  168. def skip(targetToken: Int): Unit

    Attributes
    protected
    Definition Classes
    Parser
  169. val source: SourceFile

  170. def stableId(): Tree

    StableId ::= Id | Path .' Id | [id '.'] super [[' id ]'].

    StableId ::= Id | Path .' Id | [id '.'] super [[' id ]'].' id

    Definition Classes
    Parser
  171. def startAnnotType(): Tree

    Definition Classes
    Parser
  172. def startInfixType(): Tree

    Definition Classes
    Parser
  173. def statement(location: Int): Tree

    Definition Classes
    Parser
  174. object symbXMLBuilder extends SymbolicXMLBuilder

  175. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  176. def syntaxError(offset: Int, msg: String): Unit

    Definition Classes
    SourceFileParserParser
  177. def syntaxError(offset: Int, msg: String, skipIt: Boolean): Unit

    Definition Classes
    Parser
  178. def syntaxError(msg: String, skipIt: Boolean): Unit

    Definition Classes
    Parser
  179. def syntaxErrorOrIncomplete(msg: String, skipIt: Boolean): Unit

    Definition Classes
    Parser
  180. def template(isTrait: Boolean): (List[Tree], List[List[Tree]], ValDef, List[Tree])

    ClassTemplate ::= [EarlyDefs with] ClassParents [TemplateBody] TraitTemplate ::= [EarlyDefs with] TraitParents [TemplateBody] EarlyDefs ::= {' [EarlyDef {semi EarlyDef}] }' EarlyDef ::= Annotations Modifiers PatDef

    ClassTemplate ::= [EarlyDefs with] ClassParents [TemplateBody] TraitTemplate ::= [EarlyDefs with] TraitParents [TemplateBody] EarlyDefs ::= {' [EarlyDef {semi EarlyDef}] }' EarlyDef ::= Annotations Modifiers PatDef

    Definition Classes
    Parser
  181. def templateBody(isPre: Boolean): (ValDef, List[Tree])

    TemplateBody ::= [nl] {' TemplateStatSeq }'

    TemplateBody ::= [nl] {' TemplateStatSeq }'

    isPre

    specifies whether in early initializer (true) or not (false)

    Definition Classes
    Parser
  182. def templateBodyOpt(traitParentSeen: Boolean): (ValDef, List[Tree])

    Definition Classes
    Parser
  183. def templateOpt(mods: Modifiers, name: Name, constrMods: Modifiers, vparamss: List[List[ValDef]], tstart: Int): Template

    ClassTemplateOpt ::= 'extends' ClassTemplate | 'extends']

    ClassTemplateOpt ::= 'extends' ClassTemplate | 'extends']

    Definition Classes
    Parser
  184. def templateParents(isTrait: Boolean): (List[Tree], List[List[Tree]])

    ClassParents ::= AnnotType {(' [Exprs] )'} {with AnnotType} TraitParents ::= AnnotType {with AnnotType}

    ClassParents ::= AnnotType {(' [Exprs] )'} {with AnnotType} TraitParents ::= AnnotType {with AnnotType}

    Definition Classes
    Parser
  185. def templateStatSeq(isPre: Boolean): (ValDef, List[Tree])

    TemplateStatSeq ::= [id [:' Type] =>'] TemplateStat {semi TemplateStat} TemplateStat ::= Import | Annotations Modifiers Def | Annotations Modifiers Dcl | Expr1 | super ArgumentExprs {ArgumentExprs} |

    TemplateStatSeq ::= [id [:' Type] =>'] TemplateStat {semi TemplateStat} TemplateStat ::= Import | Annotations Modifiers Def | Annotations Modifiers Dcl | Expr1 | super ArgumentExprs {ArgumentExprs} |

    isPre

    specifies whether in early initializer (true) or not (false)

    Definition Classes
    Parser
  186. def tmplDef(pos: Int, mods: Modifiers): Tree

    TmplDef ::= [case] class ClassDef | [case] object ObjectDef | [override] trait TraitDef

    TmplDef ::= [case] class ClassDef | [case] object ObjectDef | [override] trait TraitDef

    Definition Classes
    Parser
  187. def toString(): String

    Definition Classes
    AnyRef → Any
  188. def tokenSeparated[T](separator: Int, sepFirst: Boolean, part: ⇒ T): List[T]

    part { sep part } Or if sepFirst is true, { sep part }

    part { sep part } Or if sepFirst is true, { sep part }

    Definition Classes
    Parser
  189. def topLevelTmplDef: Tree

    Hook for IDE, for top-level classes/objects

    Hook for IDE, for top-level classes/objects

    Definition Classes
    Parser
  190. def topStatSeq(): List[Tree]

    TopStatSeq ::= TopStat {semi TopStat} TopStat ::= Annotations Modifiers TmplDef | Packaging | package object objectDef | Import |

    TopStatSeq ::= TopStat {semi TopStat} TopStat ::= Annotations Modifiers TmplDef | Packaging | package object objectDef | Import |

    Definition Classes
    Parser
  191. object treeBuilder extends TreeBuilder

  192. def typ(): Tree

    These are default entry points into the pattern context sensitive methods: they are all initiated from non-pattern context.

    These are default entry points into the pattern context sensitive methods: they are all initiated from non-pattern context.

    Definition Classes
    Parser
  193. def typeBounds(): TypeBoundsTree

    TypeBounds ::= [>:' Type] [<:' Type]

    TypeBounds ::= [>:' Type] [<:' Type]

    Definition Classes
    Parser
  194. def typeDefOrDcl(start: Int, mods: Modifiers): Tree

    TypeDef ::= type Id [TypeParamClause] =' Type TypeDcl ::= type Id [TypeParamClause] TypeBounds

    TypeDef ::= type Id [TypeParamClause] =' Type TypeDcl ::= type Id [TypeParamClause] TypeBounds

    Definition Classes
    Parser
  195. def typeOrInfixType(location: Int): Tree

    Definition Classes
    Parser
  196. def typeParamClauseOpt(owner: Name, contextBoundBuf: ListBuffer[Tree]): List[TypeDef]

    TypeParamClauseOpt ::= [TypeParamClause] TypeParamClause ::= [' VariantTypeParam {,' VariantTypeParam} ]'] VariantTypeParam ::= {Annotation} [+' | -'] TypeParam FunTypeParamClauseOpt ::= [FunTypeParamClause] FunTypeParamClause ::= [' TypeParam {,' TypeParam} ]'] TypeParam ::= Id TypeParamClauseOpt TypeBounds {<% Type} {":" Type}

    TypeParamClauseOpt ::= [TypeParamClause] TypeParamClause ::= [' VariantTypeParam {,' VariantTypeParam} ]'] VariantTypeParam ::= {Annotation} [+' | -'] TypeParam FunTypeParamClauseOpt ::= [FunTypeParamClause] FunTypeParamClause ::= [' TypeParam {,' TypeParam} ]'] TypeParam ::= Id TypeParamClauseOpt TypeBounds {<% Type} {":" Type}

    Definition Classes
    Parser
  197. def typedOpt(): Tree

    TypedOpt ::= [:' Type]

    TypedOpt ::= [:' Type]

    Definition Classes
    Parser
  198. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  199. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  200. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  201. def warning(offset: Int, msg: String): Unit

    Definition Classes
    SourceFileParserParser
  202. def warning(msg: String): Unit

    Definition Classes
    Parser
  203. def wildcardOrIdent(): Name

    Definition Classes
    Parser
  204. def wildcardType(start: Int): Ident

    WildcardType ::= _' TypeBounds

    WildcardType ::= _' TypeBounds

    Definition Classes
    Parser
  205. def xmlLiteral(): Tree

    Definition Classes
    SourceFileParserParser
  206. def xmlLiteralPattern(): Tree

    Definition Classes
    SourceFileParserParser
  207. lazy val xmlp: MarkupParser

    the markup parser

Inherited from Parser

Inherited from ParserCommon

Inherited from AnyRef

Inherited from Any