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
    
    Definition Classes
    Parser
  9. def acceptStatSepOpt(): Unit

    Definition Classes
    Parser
  10. def accessModifierOpt(): Modifiers

     AccessModifier ::= (private | protected) [AccessQualifier]
    
    Definition Classes
    Parser
  11. def accessQualifierOpt(mods: Modifiers): Modifiers

     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}
    
    Definition Classes
    Parser
  15. def argumentExprs(): List[Tree]

     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
    
    Definition Classes
    Parser
    Note

    Return tree does not carry position.

  24. def blockExpr(): Tree

     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
                    |
    
    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
    
    Definition Classes
    Parser
  29. final def caseSeparated[T](part: ⇒ T): List[T]

    Definition Classes
    Parser
    Annotations
    @inline()
  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
    
    Definition Classes
    Parser
  36. def clone(): AnyRef

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

    Definition Classes
    Parser
    Annotations
    @inline()
  38. def compilationUnit(): Tree

     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} `}'
    
    Definition Classes
    Parser
  41. def constrExpr(vparamss: List[List[ValDef]]): Tree

     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
    
    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
    
    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
    
    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] else Expr]
                  | try (`{' Block `}' | Expr) [catch `{' CaseClauses `}'] [finally Expr]
                  | while `(' Expr `)' {nl} Expr
                  | do Expr [semi] while `(' Expr `)'
                  | for (`(' Enumerators `)' | `{' Enumerators `}') {nl} [yield] Expr
                  | throw Expr
                  | return [Expr]
                  | [SimpleExpr `.'] Id `=' Expr
                  | SimpleExpr1 ArgumentExprs `=' Expr
                  | PostfixExpr Ascription
                  | PostfixExpr match `{' CaseClauses `}'
     Bindings   ::= `(' [Binding {`,' Binding}] `)'
     Binding    ::= (Id | `_') [`:' Type]
     Ascription ::= `:' CompoundType
                  | `:' Annotation {Annotation}
                  | `:' `_' `*'
    
    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)
              | `macro' FunSig [`:' Type] `=' Expr
     FunDcl ::= FunSig [`:' Type]
     FunSig ::= id [FunTypeParamClause] ParamClauses
    
    Definition Classes
    Parser
  66. def funDefRest(start: Int, nameOffset: Int, mods: Modifiers, name: Name): Tree

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

     Generator ::= Pattern1 (`<-' | `=') Expr [Guard]
    
    Definition Classes
    Parser
  68. final def getClass(): Class[_]

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

     Guard ::= if PostfixExpr
    
    Definition Classes
    Parser
  70. def hashCode(): Int

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

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

    Assumed (provisionally) to be TermNames.

    Assumed (provisionally) to be TermNames.

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

    Definition Classes
    Parser
  74. 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
  75. def implicitClosure(start: Int, location: Int): Tree

     Expr ::= implicit Id => Expr
    
    Definition Classes
    Parser
  76. def importClause(): List[Tree]

     Import  ::= import ImportExpr {`,' ImportExpr}
    
    Definition Classes
    Parser
  77. def importExpr(): Tree

     ImportExpr ::= StableId `.' (Id | `_' | ImportSelectors)
    
    Definition Classes
    Parser
  78. def importSelector(): ImportSelector

     ImportSelector ::= Id [`=>' Id | `=>' `_']
    
    Definition Classes
    Parser
  79. def importSelectors(): List[ImportSelector]

     ImportSelectors ::= `{' {ImportSelector `,'} (ImportSelector | `_') `}'
    
    Definition Classes
    Parser
  80. val in: SourceFileScanner

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

    Definition Classes
    ParserCommon
    Annotations
    @inline()
  82. final def inBracesOrError[T](body: ⇒ T, alt: T): T

    Definition Classes
    ParserCommon
    Annotations
    @inline()
  83. final def inBracesOrNil[T](body: ⇒ List[T]): List[T]

    Definition Classes
    ParserCommon
    Annotations
    @inline()
  84. final def inBracesOrUnit[T](body: ⇒ Tree): Tree

    Definition Classes
    ParserCommon
    Annotations
    @inline()
  85. final def inBrackets[T](body: ⇒ T): T

    Definition Classes
    ParserCommon
    Annotations
    @inline()
  86. final 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
    Annotations
    @inline()
  87. final def inParensOrError[T](body: ⇒ T, alt: T): T

    Definition Classes
    ParserCommon
    Annotations
    @inline()
  88. final def inParensOrNil[T](body: ⇒ List[T]): List[T]

    Definition Classes
    ParserCommon
    Annotations
    @inline()
  89. final def inParensOrUnit[T](body: ⇒ Tree): Tree

    Definition Classes
    ParserCommon
    Annotations
    @inline()
  90. def incompleteInputError(msg: String): Unit

    Definition Classes
    SourceFileParserParser
  91. def isDclIntro: Boolean

    Definition Classes
    Parser
  92. def isDefIntro: Boolean

    Definition Classes
    Parser
  93. def isExprIntro: Boolean

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

    Definition Classes
    Parser
  95. def isIdent: Boolean

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

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

    Definition Classes
    Parser
  98. def isLiteral: Boolean

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

    Definition Classes
    Parser
  100. def isLocalModifier: Boolean

    Definition Classes
    Parser
  101. def isModifier: Boolean

    Definition Classes
    Parser
  102. def isNumericLit: Boolean

    Definition Classes
    Parser
  103. def isRawBar: Boolean

    Definition Classes
    Parser
  104. def isRawStar: Boolean

    Definition Classes
    Parser
  105. def isStatSep: Boolean

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

    Definition Classes
    Parser
  107. def isStatSeqEnd: Boolean

    Definition Classes
    Parser
  108. def isTemplateIntro: Boolean

    Definition Classes
    Parser
  109. def isTypeIntro: Boolean

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

    Definition Classes
    Parser
  111. def isUnaryOp: Boolean

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

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

    Join the comment associated with a definition.

    Join the comment associated with a definition.

    Definition Classes
    Parser
  114. def literal(isNegated: Boolean = false): Tree

     SimpleExpr    ::= literal
                     | symbol
                     | null
    
    Definition Classes
    Parser
    Note

    The returned tree does not yet have a position

  115. 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
  116. def localModifiers(): Modifiers

     LocalModifiers ::= {LocalModifier}
     LocalModifier  ::= abstract | final | sealed | implicit | lazy
    
    Definition Classes
    Parser
  117. def makeFilter(start: Int, tree: Tree): Filter

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

    Create a tree representing a package object, converting

    Create a tree representing a package object, converting

       package object foo { ... }
    

    to

       package foo {
         object `package` { ... }
       }
    
    Definition Classes
    Parser
  119. 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
  120. final 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
    Annotations
    @inline()
  121. def mixinQualifierOpt(): TypeName

      MixinQualifier ::= `[' Id `]'
    
    Definition Classes
    Parser
  122. def modifiers(): Modifiers

     Modifiers ::= {Modifier}
     Modifier  ::= LocalModifier
                 |  AccessModifier
                 |  override
    
    Definition Classes
    Parser
  123. def multipleArgumentExprs(): List[List[Tree]]

    A succession of argument lists.

    A succession of argument lists.

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

    Definition Classes
    AnyRef
  125. def newLineOpt(): Unit

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

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

    Definition Classes
    Parser
  128. def newLinesOpt(): Unit

    Definition Classes
    Parser
  129. def newScanner: SourceFileScanner

  130. object noSeq extends SeqContextSensitive

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

  131. def nonLocalDefOrDcl: List[Tree]

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

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

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

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

     ObjectDef       ::= Id ClassTemplateOpt
    
    Definition Classes
    Parser
  136. var opstack: List[OpInfo]

    Definition Classes
    Parser
  137. object outPattern extends PatternContextSensitive

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

  138. def packaging(start: Int): Tree

     Packaging ::= package QualId [nl] `{' TopStatSeq `}'
    
    Definition Classes
    Parser
  139. def paramClauses(owner: Name, contextBounds: List[Tree], ofCaseClass: Boolean): List[List[ValDef]]

     ParamClauses      ::= {ParamClause} [[nl] `(' implicit Params `)']
     ParamClause       ::= [nl] `(' [Params] `)'
     Params            ::= Param {`,' Param}
     Param             ::= {Annotation} Id [`:' ParamType] [`=' Expr]
     ClassParamClauses ::= {ClassParamClause} [[nl] `(' implicit ClassParams `)']
     ClassParamClause  ::= [nl] `(' [ClassParams] `)'
     ClassParams       ::= ClassParam {`,' ClassParam}
     ClassParam        ::= {Annotation}  [{Modifier} (`val' | `var')] Id [`:' ParamType] [`=' Expr]
    
    Definition Classes
    Parser
  140. def paramType(useStartAsPosition: Boolean): Tree

    Definition Classes
    Parser
  141. def paramType(): Tree

     ParamType ::= Type | `=>' Type | Type `*'
    
    Definition Classes
    Parser
  142. def parse(): Tree

    This is the general parse entry point.

    This is the general parse entry point.

    Definition Classes
    Parser
  143. 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
  144. def patDefOrDcl(pos: Int, mods: Modifiers): List[Tree]

     PatDef ::= Pattern2 {`,' Pattern2} [`:' Type] `=' Expr
     ValDcl ::= Id {`,' Id} `:' Type
     VarDef ::= PatDef | Id {`,' Id} `:' Type `=' `_'
    
    Definition Classes
    Parser
  145. def path(thisOK: Boolean, typeOK: Boolean): Tree

     Path       ::= StableId
                 |  [Ident `.'] this
     AnnotType ::= Path [`.' type]
    
    Definition Classes
    Parser
  146. def pattern(): Tree

    Default entry points into some pattern contexts.

    Default entry points into some pattern contexts.

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

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

    The implicit parameters introduced by _ in the current expression.

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

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

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

    The placeholderTypes introduced by _ in the current type.

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

    Definition Classes
    Parser
  151. def postfixExpr(): Tree

     PostfixExpr   ::= InfixExpr [Id [nl]]
     InfixExpr     ::= PrefixExpr
                     | InfixExpr Id [nl] InfixExpr
    
    Definition Classes
    Parser
  152. def precedence(operator: Name): Int

    Definition Classes
    Parser
  153. def prefixExpr(): Tree

     PrefixExpr   ::= [`-' | `+' | `~' | `!' | `&'] SimpleExpr
    
    Definition Classes
    Parser
  154. def qualId(): Tree

      QualId ::= Id {`.' Id}
    
    Definition Classes
    Parser
  155. def r2p(start: Int, mid: Int, end: Int): Position

    Definition Classes
    SourceFileParserParser
  156. def rawIdent(): Name

    Definition Classes
    Parser
  157. final def readAnnots[T](part: ⇒ T): List[T]

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

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

     RefineStatSeq    ::= RefineStat {semi RefineStat}
     RefineStat       ::= Dcl
                        | type TypeDef
                        |
    
    Definition Classes
    Parser
  160. def refinement(): List[Tree]

     Refinement ::= [nl] `{' RefineStat {semi RefineStat} `}'
    
    Definition Classes
    Parser
  161. def resetPackage(): Unit

    Definition Classes
    Parser
  162. 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
  163. def selector(t: Tree): Tree

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

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

     SelfInvocation  ::= this ArgumentExprs {ArgumentExprs}
    
    Definition Classes
    Parser
  166. object seqOK extends SeqContextSensitive

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

  167. def seqPatterns(): List[Tree]

    Definition Classes
    Parser
  168. def simpleExpr(): Tree

     SimpleExpr    ::= new (ClassTemplate | TemplateBody)
                     |  BlockExpr
                     |  SimpleExpr1 [`_']
     SimpleExpr1   ::= literal
                     |  xLiteral
                     |  Path
                     |  `(' [Exprs] `)'
                     |  SimpleExpr `.' Id
                     |  SimpleExpr TypeArgs
                     |  SimpleExpr1 ArgumentExprs
    
    Definition Classes
    Parser
  169. def simpleExprRest(t: Tree, canApply: Boolean): Tree

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

    Attributes
    protected
    Definition Classes
    Parser
  171. val source: SourceFile

  172. def stableId(): Tree

     StableId ::= Id
               |  Path `.' Id
               |  [id `.'] super [`[' id `]']`.' id
    
    Definition Classes
    Parser
  173. def startAnnotType(): Tree

    Definition Classes
    Parser
  174. def startInfixType(): Tree

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

    Definition Classes
    Parser
  176. object symbXMLBuilder extends SymbolicXMLBuilder

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

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

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

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

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

    Definition Classes
    Parser
  182. 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
    
    Definition Classes
    Parser
  183. def templateBody(isPre: Boolean): (ValDef, List[Tree])

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

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

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

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

     ClassTemplateOpt ::= `extends' ClassTemplate | [[`extends'] TemplateBody]
     TraitTemplateOpt ::= TraitExtends TraitTemplate | [[`extends'] TemplateBody] | `<:' TemplateBody
     TraitExtends     ::= `extends' | `<:'
    
    Definition Classes
    Parser
  186. def templateParents(isTrait: Boolean): (List[Tree], List[List[Tree]])

     ClassParents       ::= AnnotType {`(' [Exprs] `)'} {with AnnotType}
     TraitParents       ::= AnnotType {with AnnotType}
    
    Definition Classes
    Parser
  187. 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}
                        |
    
    isPre

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

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

     TmplDef ::= [case] class ClassDef
               |  [case] object ObjectDef
               |  [override] trait TraitDef
    
    Definition Classes
    Parser
  189. def toString(): String

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

    ,or if sepFirst is true,

     part { `sep` part } 
    

    ,or if sepFirst is true,

     { `sep` part } 
    

    . { sep part } }}} part { sep part } }}}

    Definition Classes
    Parser
  191. def topLevelTmplDef: Tree

    Hook for IDE, for top-level classes/objects.

    Hook for IDE, for top-level classes/objects.

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

     TopStatSeq ::= TopStat {semi TopStat}
     TopStat ::= Annotations Modifiers TmplDef
               | Packaging
               | package object objectDef
               | Import
               |
    
    Definition Classes
    Parser
  193. object treeBuilder extends TreeBuilder

  194. 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
  195. def typeBounds(): TypeBoundsTree

     TypeBounds ::= [`>:' Type] [`<:' Type]
    
    Definition Classes
    Parser
  196. def typeDefOrDcl(start: Int, mods: Modifiers): Tree

     TypeDef ::= type Id [TypeParamClause] `=' Type
               | `macro' FunSig `=' Expr
     TypeDcl ::= type Id [TypeParamClause] TypeBounds
    
    Definition Classes
    Parser
  197. def typeOrInfixType(location: Int): Tree

    Definition Classes
    Parser
  198. 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}
    
    Definition Classes
    Parser
  199. def typedOpt(): Tree

     TypedOpt ::= [`:' Type]
    
    Definition Classes
    Parser
  200. final def wait(): Unit

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

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

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

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

    Definition Classes
    Parser
  205. def wildcardOrIdent(): Name

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

     WildcardType ::= `_' TypeBounds
    
    Definition Classes
    Parser
  207. def xmlLiteral(): Tree

    Definition Classes
    SourceFileParserParser
  208. def xmlLiteralPattern(): Tree

    Definition Classes
    SourceFileParserParser
  209. lazy val xmlp: MarkupParser

    the markup parser

Inherited from Parser

Inherited from ParserCommon

Inherited from AnyRef

Inherited from Any