org.scalamacros.paradise.parser.Parsers

SourceFileParser

class SourceFileParser extends Parser

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

Instance Constructors

  1. new SourceFileParser(source: SourceFile)

Type Members

  1. class ParserTreeBuilder extends TreeBuilder

    Definition Classes
    Parser
  2. trait PatternContextSensitive extends AnyRef

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

  3. 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: Parsers.Token): Parsers.Offset

    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(): scala.tools.nsc.Global.Modifiers

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

    AccessQualifier ::= `[' (Id | this) `]'
    Definition Classes
    Parser
  12. def annotTypeRest(t: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  13. def annotationExpr(): scala.tools.nsc.Global.Tree

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

    Annotations      ::= {`@' SimpleType {ArgumentExprs}}
    ConsrAnnotations ::= {`@' SimpleType ArgumentExprs}
    Definition Classes
    Parser
  15. def argumentExprs(): List[scala.tools.nsc.Global.Tree]

    ArgumentExprs ::= `(' [Exprs] `)'
    | [nl] BlockExpr
    Definition Classes
    Parser
  16. def argumentPatterns(): List[scala.tools.nsc.Global.Tree]

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

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

    Definition Classes
    Parser
  19. def atInPos[T <: scala.tools.nsc.Global.Tree](t: T): T

    Definition Classes
    Parser
  20. def atPos[T <: scala.tools.nsc.Global.Tree](pos: Position)(t: T): T

    Definition Classes
    Parser
  21. def atPos[T <: scala.tools.nsc.Global.Tree](start: Parsers.Offset, point: Parsers.Offset, end: Parsers.Offset)(t: T): T

    Definition Classes
    Parser
  22. def atPos[T <: scala.tools.nsc.Global.Tree](start: Parsers.Offset, point: Parsers.Offset)(t: T): T

    Definition Classes
    Parser
  23. def atPos[T <: scala.tools.nsc.Global.Tree](offset: Parsers.Offset)(t: T): T

    Definition Classes
    Parser
  24. def block(): scala.tools.nsc.Global.Tree

    Block ::= BlockStatSeq
    Definition Classes
    Parser
    Note

    Return tree does not carry position.

  25. def blockExpr(): scala.tools.nsc.Global.Tree

    BlockExpr ::= `{' (CaseClauses | Block) `}'
    Definition Classes
    Parser
  26. def blockStatSeq(): List[scala.tools.nsc.Global.Tree]

    BlockStatSeq ::= { BlockStat semi } [ResultExpr]
    BlockStat    ::= Import
                   | Annotations [implicit] [lazy] Def
                   | Annotations LocalModifiers TmplDef
                   | Expr1
                   |
    Definition Classes
    Parser
  27. def bound(tok: Int, default: scala.tools.nsc.Global.TypeName): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  28. def caseBlock(): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  29. def caseClause(): scala.tools.nsc.Global.CaseDef

    Definition Classes
    Parser
  30. def caseClauses(): List[scala.tools.nsc.Global.CaseDef]

    CaseClauses ::= CaseClause {CaseClause}
    CaseClause  ::= case Pattern [Guard] `=>' Block
    Definition Classes
    Parser
  31. final def caseSeparated[T](part: ⇒ T): List[T]

    Definition Classes
    Parser
    Annotations
    @inline()
  32. def checkAssoc(offset: Parsers.Offset, op: scala.tools.nsc.Global.Name, leftAssoc: Boolean): Unit

    Definition Classes
    Parser
  33. def checkHeadAssoc(leftAssoc: Boolean): Unit

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

    Definition Classes
    Parser
  35. def checkNotByNameOrVarargs(tpt: scala.tools.nsc.Global.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
  36. def classDef(start: Parsers.Offset, mods: scala.tools.nsc.Global.Modifiers): scala.tools.nsc.Global.ClassDef

    ClassDef ::= Id [TypeParamClause] {Annotation}
                 [AccessModifier] ClassParamClauses RequiresTypeOpt ClassTemplateOpt
    TraitDef ::= Id [TypeParamClause] RequiresTypeOpt TraitTemplateOpt
    Definition Classes
    Parser
  37. def clone(): AnyRef

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

    Definition Classes
    Parser
    Annotations
    @inline()
  39. def compilationUnit(): scala.tools.nsc.Global.PackageDef

    CompilationUnit ::= {package QualId semi} TopStatSeq
    Definition Classes
    Parser
  40. def condExpr(): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  41. def constrBlock(vparamss: List[List[scala.tools.nsc.Global.ValDef]]): scala.tools.nsc.Global.Tree

    ConstrBlock    ::=  `{' SelfInvocation {semi BlockStat} `}'
    Definition Classes
    Parser
  42. def constrExpr(vparamss: List[List[scala.tools.nsc.Global.ValDef]]): scala.tools.nsc.Global.Tree

    ConstrExpr      ::=  SelfInvocation
    |  ConstrBlock
    Definition Classes
    Parser
  43. def constructorAnnotations(): List[scala.tools.nsc.Global.Tree]

    Definition Classes
    Parser
  44. def convertToParam(tree: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.ValDef

    Convert tree to formal parameter.

    Convert tree to formal parameter.

    Definition Classes
    Parser
  45. def convertToParams(tree: scala.tools.nsc.Global.Tree): List[scala.tools.nsc.Global.ValDef]

    Convert tree to formal parameter list.

    Convert tree to formal parameter list.

    Definition Classes
    Parser
  46. def convertToTypeId(tree: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

    Convert (qual)ident to type identifier.

    Convert (qual)ident to type identifier.

    Definition Classes
    Parser
  47. def defOrDcl(pos: Parsers.Offset, mods: scala.tools.nsc.Global.Modifiers): List[scala.tools.nsc.Global.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
  48. def deprecationWarning(offset: Parsers.Offset, msg: String): Unit

    Definition Classes
    SourceFileParserParserCommon
  49. final def dropAnyBraces[T](body: ⇒ T): T

    Definition Classes
    ParserCommon
    Annotations
    @inline()
  50. def ensureEarlyDef(tree: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  51. def enumerator(isFirst: Boolean, allowNestedIf: Boolean = true): List[scala.tools.nsc.Global.Tree]

    Definition Classes
    Parser
  52. def enumerators(): List[scala.tools.nsc.Global.Tree]

    Enumerators ::= Generator {semi Enumerator}
    Enumerator  ::=  Generator
                  |  Guard
                  |  val Pattern1 `=' Expr
    Definition Classes
    Parser
  53. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  55. def errorPatternTree: scala.tools.nsc.Global.Ident

    Definition Classes
    Parser
  56. def errorTermTree: scala.tools.nsc.Global.Literal

    Definition Classes
    Parser
  57. def errorTypeTree: scala.tools.nsc.Global.TypeTree

    Definition Classes
    Parser
  58. def expectedMsg(token: Parsers.Token): String

    Definition Classes
    Parser
  59. def expectedMsgTemplate(exp: String, fnd: String): String

    Definition Classes
    Parser
  60. def expr(location: Location): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  61. def expr(): scala.tools.nsc.Global.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
  62. def expr0(location: Location): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  63. def exprSimpleType(): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  64. def exprTypeArgs(): List[scala.tools.nsc.Global.Tree]

    Definition Classes
    Parser
  65. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  66. def finishBinaryOp(isExpr: Boolean, opinfo: OpInfo, rhs: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  67. def finishPostfixOp(start: Int, base: List[OpInfo], opinfo: OpInfo): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  68. implicit def fresh: FreshNameCreator

    Definition Classes
    Parser
  69. def funDefOrDcl(start: Int, mods: scala.tools.nsc.Global.Modifiers): scala.tools.nsc.Global.Tree

    FunDef ::= FunSig [`:' Type] `=' [`macro'] Expr
            |  FunSig [nl] `{' Block `}'
            |  `this' ParamClause ParamClauses
                   (`=' ConstrExpr | [nl] ConstrBlock)
    FunDcl ::= FunSig [`:' Type]
    FunSig ::= id [FunTypeParamClause] ParamClauses
    Definition Classes
    Parser
  70. def funDefRest(start: Parsers.Offset, nameOffset: Parsers.Offset, mods: scala.tools.nsc.Global.Modifiers, name: scala.tools.nsc.Global.Name): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  71. def generator(eqOK: Boolean, allowNestedIf: Boolean = true): List[scala.tools.nsc.Global.Tree]

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

    Definition Classes
    AnyRef → Any
  73. def guard(): scala.tools.nsc.Global.Tree

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

    Definition Classes
    AnyRef → Any
  75. def ident(): scala.tools.nsc.Global.Name

    Definition Classes
    Parser
  76. def ident(skipIt: Boolean): scala.tools.nsc.Global.Name

    Assumed (provisionally) to be TermNames.

    Assumed (provisionally) to be TermNames.

    Definition Classes
    Parser
  77. def identForType(skipIt: Boolean): scala.tools.nsc.Global.TypeName

    Definition Classes
    Parser
  78. def identForType(): scala.tools.nsc.Global.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
  79. def identOrMacro(): scala.tools.nsc.Global.Name

    Definition Classes
    Parser
  80. def implicitClosure(start: Parsers.Offset, location: Location): scala.tools.nsc.Global.Tree

    Expr ::= implicit Id => Expr
    Definition Classes
    Parser
  81. def importClause(): List[scala.tools.nsc.Global.Tree]

    Import  ::= import ImportExpr {`,' ImportExpr}
    Definition Classes
    Parser
  82. def importExpr(): scala.tools.nsc.Global.Tree

    ImportExpr ::= StableId `.' (Id | `_' | ImportSelectors)
    Definition Classes
    Parser
  83. def importSelector(): scala.tools.nsc.Global.ImportSelector

    ImportSelector ::= Id [`=>' Id | `=>' `_']
    Definition Classes
    Parser
  84. def importSelectors(): List[scala.tools.nsc.Global.ImportSelector]

    ImportSelectors ::= `{' {ImportSelector `,'} (ImportSelector | `_') `}'
    Definition Classes
    Parser
  85. val in: Parsers.Scanner

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

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

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

    Definition Classes
    ParserCommon
    Annotations
    @inline()
  89. final def inBracesOrUnit[T](body: ⇒ scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

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

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

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

    Definition Classes
    ParserCommon
    Annotations
    @inline()
  94. final def inParensOrUnit[T](body: ⇒ scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

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

    Definition Classes
    SourceFileParserParser
  96. def isAnnotation: Boolean

    Definition Classes
    Parser
  97. def isCaseDefEnd: Boolean

    Definition Classes
    Parser
  98. def isDclIntro: Boolean

    Definition Classes
    Parser
  99. def isDefIntro: Boolean

    Definition Classes
    Parser
  100. def isExprIntro: Boolean

    Definition Classes
    Parser
  101. def isExprIntroToken(token: Parsers.Token): Boolean

    Definition Classes
    Parser
  102. def isIdent: Boolean

    Definition Classes
    Parser
  103. def isIdentExcept(except: scala.tools.nsc.Global.Name): Boolean

    Definition Classes
    Parser
  104. def isIdentOf(name: scala.tools.nsc.Global.Name): Boolean

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

    Definition Classes
    Any
  106. def isLiteral: Boolean

    Definition Classes
    Parser
  107. def isLiteralToken(token: Parsers.Token): Boolean

    Definition Classes
    Parser
  108. def isLocalModifier: Boolean

    Definition Classes
    Parser
  109. def isMacro: Boolean

    Definition Classes
    Parser
  110. def isModifier: Boolean

    Definition Classes
    Parser
  111. def isNumericLit: Boolean

    Definition Classes
    Parser
  112. def isRawBar: Boolean

    Definition Classes
    Parser
  113. def isRawStar: Boolean

    Definition Classes
    Parser
  114. def isStatSep: Boolean

    Definition Classes
    Parser
  115. def isStatSep(token: Parsers.Token): Boolean

    Definition Classes
    Parser
  116. def isStatSeqEnd: Boolean

    Definition Classes
    Parser
  117. def isTemplateIntro: Boolean

    Definition Classes
    Parser
  118. def isTypeIntroToken(token: Parsers.Token): Boolean

    Definition Classes
    Parser
  119. def isTypedParam(t: scala.tools.nsc.Global.Tree): Boolean

    Definition Classes
    Parser
  120. def isUnaryOp: Boolean

    Definition Classes
    Parser
  121. def isWildcard(t: scala.tools.nsc.Global.Tree): Boolean

    Definition Classes
    Parser
  122. def joinComment(trees: ⇒ List[scala.tools.nsc.Global.Tree]): List[scala.tools.nsc.Global.Tree]

    A hook for joining the comment associated with a definition.

    A hook for joining the comment associated with a definition. Overridden by scaladoc.

    Definition Classes
    Parser
  123. def literal(isNegated: Boolean = false, inPattern: Boolean = false, start: Parsers.Offset = in.offset): scala.tools.nsc.Global.Tree

    SimpleExpr    ::= literal
    | symbol
    | null
    Definition Classes
    Parser
  124. def localDef(implicitMod: Int): List[scala.tools.nsc.Global.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(skipNewLines = true) val mods = localModifiers() withAnnotations annots if (!(mods hasFlag ~(Flags.IMPLICIT | Flags.LAZY))) defOrDcl(mods) else List(tmplDef(mods)) } } (in.offset) }

    Definition Classes
    Parser
  125. def localModifiers(): scala.tools.nsc.Global.Modifiers

    LocalModifiers ::= {LocalModifier}
    LocalModifier  ::= abstract | final | sealed | implicit | lazy
    Definition Classes
    Parser
  126. final def lookingAhead[T](body: ⇒ T): T

    Scoping operator used to temporarily look into the future.

    Scoping operator used to temporarily look into the future. Backs up scanner data before evaluating a block and restores it after.

    Definition Classes
    Parser
    Annotations
    @inline()
  127. def makeEmptyPackage(start: Parsers.Offset, stats: List[scala.tools.nsc.Global.Tree]): scala.tools.nsc.Global.PackageDef

    Definition Classes
    Parser
  128. def makeFilter(start: Parsers.Offset, tree: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Apply

    Definition Classes
    Parser
  129. def makePackageObject(start: Parsers.Offset, objDef: scala.tools.nsc.Global.ModuleDef): scala.tools.nsc.Global.PackageDef

    Definition Classes
    Parser
  130. def makePackaging(start: Parsers.Offset, pkg: scala.tools.nsc.Global.Tree, stats: List[scala.tools.nsc.Global.Tree]): scala.tools.nsc.Global.PackageDef

    Create a tree representing a packaging.

    Create a tree representing a packaging.

    Definition Classes
    Parser
  131. final def makeParens(body: ⇒ List[scala.tools.nsc.Global.Tree]): scala.tools.nsc.Global.Parens

    Creates an actual Parens node (only used during parsing.

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

    Definition Classes
    ParserCommon
    Annotations
    @inline()
  132. def mixinQualifierOpt(): scala.tools.nsc.Global.TypeName

    MixinQualifier ::= `[' Id `]'
    Definition Classes
    Parser
  133. def modifiers(): scala.tools.nsc.Global.Modifiers

    Modifiers ::= {Modifier}
    Modifier  ::= LocalModifier
                |  AccessModifier
                |  override
    Definition Classes
    Parser
  134. def multipleArgumentExprs(): List[List[scala.tools.nsc.Global.Tree]]

    A succession of argument lists.

    A succession of argument lists.

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

    Definition Classes
    AnyRef
  136. def newLineOpt(): Unit

    Definition Classes
    Parser
  137. def newLineOptWhenFollowedBy(token: Parsers.Offset): Unit

    Definition Classes
    Parser
  138. def newLineOptWhenFollowing(p: (Parsers.Token) ⇒ Boolean): Unit

    Definition Classes
    Parser
  139. def newLinesOpt(): Unit

    Definition Classes
    Parser
  140. def newScanner(): Parsers.Scanner

  141. object noSeq extends SeqContextSensitive

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

  142. def nonLocalDefOrDcl: List[scala.tools.nsc.Global.Tree]

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

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

    Definition Classes
    AnyRef
  145. def o2p(offset: Parsers.Offset): Position

    Definition Classes
    Parser
  146. def objectDef(start: Parsers.Offset, mods: scala.tools.nsc.Global.Modifiers): scala.tools.nsc.Global.ModuleDef

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

    Definition Classes
    Parser
  148. object outPattern extends PatternContextSensitive

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

  149. def packageObjectDef(start: Parsers.Offset): scala.tools.nsc.Global.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
  150. def packageOrPackageObject(start: Parsers.Offset): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  151. def param(owner: scala.tools.nsc.Global.Name, implicitmod: Int, caseParam: Boolean): scala.tools.nsc.Global.ValDef

    Definition Classes
    Parser
  152. def paramClauses(owner: scala.tools.nsc.Global.Name, contextBounds: List[scala.tools.nsc.Global.Tree], ofCaseClass: Boolean): List[List[scala.tools.nsc.Global.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
  153. def paramType(useStartAsPosition: Boolean): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  154. def paramType(): scala.tools.nsc.Global.Tree

    ParamType ::= Type | `=>' Type | Type `*'
    Definition Classes
    Parser
  155. def parse(): scala.tools.nsc.Global.Tree

    This is the general parse entry point.

    This is the general parse entry point.

    Definition Classes
    Parser
  156. def parseRule[T](rule: (SourceFileParser.this.type) ⇒ T): T

    Definition Classes
    Parser
  157. def parseStartRule: () ⇒ scala.tools.nsc.Global.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
  158. def parseStats(): List[scala.tools.nsc.Global.Tree]

    These are alternative entry points for repl, script runner, toolbox and parsing in macros.

    These are alternative entry points for repl, script runner, toolbox and parsing in macros.

    Definition Classes
    Parser
  159. def parseStatsOrPackages(): List[scala.tools.nsc.Global.Tree]

    Definition Classes
    Parser
  160. def patDefOrDcl(pos: Int, mods: scala.tools.nsc.Global.Modifiers): List[scala.tools.nsc.Global.Tree]

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

    Path       ::= StableId
                |  [Ident `.'] this
    AnnotType ::= Path [`.' type]
    Definition Classes
    Parser
  162. def pattern(): scala.tools.nsc.Global.Tree

    Default entry points into some pattern contexts.

    Default entry points into some pattern contexts.

    Definition Classes
    Parser
  163. def peekingAhead(tree: ⇒ scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

    Perform an operation while peeking ahead.

    Perform an operation while peeking ahead. Pushback if the operation yields an empty tree or blows to pieces.

    Definition Classes
    Parser
    Annotations
    @inline()
  164. var placeholderParams: List[scala.tools.nsc.Global.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
  165. def placeholderTypeBoundary(op: ⇒ scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  166. var placeholderTypes: List[scala.tools.nsc.Global.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
  167. def postfixExpr(): scala.tools.nsc.Global.Tree

    PostfixExpr   ::= InfixExpr [Id [nl]]
    InfixExpr     ::= PrefixExpr
                    | InfixExpr Id [nl] InfixExpr
    Definition Classes
    Parser
  168. def prefixExpr(): scala.tools.nsc.Global.Tree

    PrefixExpr   ::= [`-' | `+' | `~' | `!' | `&'] SimpleExpr
    Definition Classes
    Parser
  169. def qualId(): scala.tools.nsc.Global.Tree

    QualId ::= Id {`.' Id}
    Definition Classes
    Parser
  170. def r2p(offset: Parsers.Offset): Position

    Definition Classes
    Parser
  171. def r2p(start: Parsers.Offset, mid: Parsers.Offset): Position

    Definition Classes
    Parser
  172. def r2p(start: Parsers.Offset, mid: Parsers.Offset, end: Parsers.Offset): Position

    Definition Classes
    Parser
  173. def rawIdent(): scala.tools.nsc.Global.Name

    Definition Classes
    Parser
  174. def readAnnots(part: ⇒ scala.tools.nsc.Global.Tree): List[scala.tools.nsc.Global.Tree]

    Definition Classes
    Parser
  175. def reduceExprStack(base: List[OpInfo], top: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  176. def reducePatternStack(base: List[OpInfo], top: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  177. def reduceStack(isExpr: Boolean, base: List[OpInfo], top: scala.tools.nsc.Global.Tree, opPrecedence: Precedence, leftAssoc: Boolean): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  178. def reduceStack(isExpr: Boolean, base: List[OpInfo], top: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  179. def refineStat(): List[scala.tools.nsc.Global.Tree]

    Definition Classes
    Parser
  180. def refineStatSeq(): List[scala.tools.nsc.Global.Tree]

    RefineStatSeq    ::= RefineStat {semi RefineStat}
    RefineStat       ::= Dcl
                       | type TypeDef
                       |
    Definition Classes
    Parser
  181. def refinement(): List[scala.tools.nsc.Global.Tree]

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

    Definition Classes
    Parser
  183. def scriptBody(): scala.tools.nsc.Global.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
  184. def selector(t: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  185. def selectors(t: scala.tools.nsc.Global.Tree, typeOK: Boolean, dotOffset: Parsers.Offset): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  186. def selfInvocation(vparamss: List[List[scala.tools.nsc.Global.ValDef]]): scala.tools.nsc.Global.Tree

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

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

  188. def seqPatterns(): List[scala.tools.nsc.Global.Tree]

    Definition Classes
    Parser
  189. def setInPos[T <: scala.tools.nsc.Global.Tree](t: T): T

    Definition Classes
    Parser
  190. def simpleExpr(): scala.tools.nsc.Global.Tree

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

    Definition Classes
    Parser
  192. def skip(targetToken: Parsers.Token): Unit

    Attributes
    protected
    Definition Classes
    Parser
  193. val source: SourceFile

    Definition Classes
    SourceFileParserParser
  194. def stableId(): scala.tools.nsc.Global.Tree

    StableId ::= Id
    |  Path `.' Id
    |  [id `.'] super [`[' id `]']`.' id
    Definition Classes
    Parser
  195. def startAnnotType(): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  196. def startInfixType(): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  197. def statSeq(stat: PartialFunction[Parsers.Token, List[scala.tools.nsc.Global.Tree]], errorMsg: String = "illegal start of definition"): List[scala.tools.nsc.Global.Tree]

    Definition Classes
    Parser
  198. def statement(location: Location): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  199. object symbXMLBuilder extends SymbolicXMLBuilder

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

    Definition Classes
    AnyRef
  201. def syntaxError(offset: Parsers.Offset, msg: String): Unit

    Definition Classes
    SourceFileParserParser
  202. def syntaxError(offset: Parsers.Offset, msg: String, skipIt: Boolean): Unit

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

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

    Definition Classes
    Parser
  205. def syntaxErrorOrIncompleteAnd[T](msg: String, skipIt: Boolean)(and: T): T

    Definition Classes
    Parser
  206. def template(): (List[scala.tools.nsc.Global.Tree], scala.tools.nsc.Global.ValDef, List[scala.tools.nsc.Global.Tree])

    ClassTemplate ::= [EarlyDefs with] ClassParents [TemplateBody]
    TraitTemplate ::= [EarlyDefs with] TraitParents [TemplateBody]
    EarlyDefs     ::= `{' [EarlyDef {semi EarlyDef}] `}'
    EarlyDef      ::= Annotations Modifiers PatDef
    Definition Classes
    Parser
  207. def templateBody(isPre: Boolean): (scala.tools.nsc.Global.ValDef, List[scala.tools.nsc.Global.Tree])

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

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

    Definition Classes
    Parser
  208. def templateBodyOpt(parenMeansSyntaxError: Boolean): (scala.tools.nsc.Global.ValDef, List[scala.tools.nsc.Global.Tree])

    Definition Classes
    Parser
  209. def templateOpt(mods: scala.tools.nsc.Global.Modifiers, name: scala.tools.nsc.Global.Name, constrMods: scala.tools.nsc.Global.Modifiers, vparamss: List[List[scala.tools.nsc.Global.ValDef]], tstart: Parsers.Offset): scala.tools.nsc.Global.Template

    ClassTemplateOpt ::= `extends' ClassTemplate | [[`extends'] TemplateBody]
    TraitTemplateOpt ::= TraitExtends TraitTemplate | [[`extends'] TemplateBody] | `<:' TemplateBody
    TraitExtends     ::= `extends' | `<:'
    Definition Classes
    Parser
  210. def templateOrTopStatSeq(): List[scala.tools.nsc.Global.Tree]

    Definition Classes
    Parser
  211. def templateParents(): List[scala.tools.nsc.Global.Tree]

    ClassParents       ::= AnnotType {`(' [Exprs] `)'} {with AnnotType}
    TraitParents       ::= AnnotType {with AnnotType}
    Definition Classes
    Parser
  212. def templateStat: PartialFunction[Parsers.Token, List[scala.tools.nsc.Global.Tree]]

    Definition Classes
    Parser
  213. def templateStatSeq(isPre: Boolean): (scala.tools.nsc.Global.ValDef, List[scala.tools.nsc.Global.Tree])

    TemplateStatSeq  ::= [id [`:' Type] `=>'] TemplateStats
    isPre

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

    Definition Classes
    Parser
  214. def templateStats(): List[scala.tools.nsc.Global.Tree]

    TemplateStats    ::= TemplateStat {semi TemplateStat}
    TemplateStat     ::= Import
                       | Annotations Modifiers Def
                       | Annotations Modifiers Dcl
                       | Expr1
                       | super ArgumentExprs {ArgumentExprs}
                       |
    Definition Classes
    Parser
  215. def tmplDef(pos: Parsers.Offset, mods: scala.tools.nsc.Global.Modifiers): scala.tools.nsc.Global.Tree

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

    Definition Classes
    AnyRef → Any
  217. final def tokenSeparated[T](separator: Parsers.Token, 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
  218. def topLevelTmplDef: scala.tools.nsc.Global.Tree

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

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

    Definition Classes
    Parser
  219. def topStat: PartialFunction[Parsers.Token, List[scala.tools.nsc.Global.Tree]]

    Definition Classes
    Parser
  220. def topStatSeq(): List[scala.tools.nsc.Global.Tree]

    TopStatSeq ::= TopStat {semi TopStat}
    TopStat ::= Annotations Modifiers TmplDef
              | Packaging
              | package object objectDef
              | Import
              |
    Definition Classes
    Parser
  221. val treeBuilder: ParserTreeBuilder

    Definition Classes
    Parser
  222. def typ(): scala.tools.nsc.Global.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
  223. def typeBounds(): scala.tools.nsc.Global.TypeBoundsTree

    TypeBounds ::= [`>:' Type] [`<:' Type]
    Definition Classes
    Parser
  224. def typeDefOrDcl(start: Parsers.Offset, mods: scala.tools.nsc.Global.Modifiers): scala.tools.nsc.Global.Tree

    TypeDef ::= type Id [TypeParamClause] `=' Type
              | FunSig `=' Expr
    TypeDcl ::= type Id [TypeParamClause] TypeBounds
    Definition Classes
    Parser
  225. def typeOrInfixType(location: Location): scala.tools.nsc.Global.Tree

    Definition Classes
    Parser
  226. def typeParamClauseOpt(owner: scala.tools.nsc.Global.Name, contextBoundBuf: ListBuffer[scala.tools.nsc.Global.Tree]): List[scala.tools.nsc.Global.TypeDef]

    TypeParamClauseOpt    ::= [TypeParamClause]
    TypeParamClause       ::= `[' VariantTypeParam {`,' VariantTypeParam} `]']
    VariantTypeParam      ::= {Annotation} [`+' | `-'] TypeParam
    FunTypeParamClauseOpt ::= [FunTypeParamClause]
    FunTypeParamClause    ::= `[' TypeParam {`,' TypeParam} `]']
    TypeParam             ::= Id TypeParamClauseOpt TypeBounds {<% Type} {":" Type}
    Definition Classes
    Parser
  227. def typedOpt(): scala.tools.nsc.Global.Tree

    TypedOpt ::= [`:' Type]
    Definition Classes
    Parser
  228. def unit: scala.tools.nsc.Global.CompilationUnit

    Definition Classes
    SourceFileParserParser
  229. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  232. def warning(offset: Parsers.Offset, msg: String): Unit

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

    Definition Classes
    Parser
  234. def wildcardOrIdent(): scala.tools.nsc.Global.Name

    Definition Classes
    Parser
  235. def wildcardType(start: Parsers.Offset): scala.tools.nsc.Global.Ident

    WildcardType ::= `_' TypeBounds
    Definition Classes
    Parser
  236. def xmlLiteral(): scala.tools.nsc.Global.Tree

    Definition Classes
    SourceFileParserParser
  237. def xmlLiteralPattern(): scala.tools.nsc.Global.Tree

    Definition Classes
    SourceFileParserParser
  238. object xmlSeqOK extends SeqContextSensitive

    For use from xml pattern, where sequence is allowed and encouraged.

  239. def xmlSeqPatterns(): List[scala.tools.nsc.Global.Tree]

    Definition Classes
    Parser

Deprecated Value Members

  1. def precedence(operator: scala.tools.nsc.Global.Name): Int

    Definition Classes
    Parser
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) Use scala.reflect.internal.Precedence

Inherited from Parser

Inherited from Parsers.ParserCommon

Inherited from AnyRef

Inherited from Any

Ungrouped