org.scalamacros.paradise.parser.Parsers

Parser

abstract class Parser extends ParserCommon

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

Instance Constructors

  1. new Parser()

Type Members

  1. class ParserTreeBuilder extends TreeBuilder

  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.

Abstract Value Members

  1. abstract def deprecationWarning(off: Parsers.Offset, msg: String): Unit

    Definition Classes
    ParserCommon
  2. abstract val in: Parsers.Scanner

    Definition Classes
    ParserParserCommon
  3. abstract def incompleteInputError(msg: String): Unit

  4. abstract def parseStartRule: () ⇒ scala.tools.nsc.Global.Tree

  5. abstract def source: SourceFile

  6. abstract def syntaxError(offset: Parsers.Offset, msg: String): Unit

  7. abstract def unit: scala.tools.nsc.Global.CompilationUnit

  8. abstract def warning(offset: Parsers.Offset, msg: String): Unit

  9. abstract def xmlLiteral(): scala.tools.nsc.Global.Tree

  10. abstract def xmlLiteralPattern(): scala.tools.nsc.Global.Tree

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

  10. def accessModifierOpt(): scala.tools.nsc.Global.Modifiers

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

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

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

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

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

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

  17. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

    Block ::= BlockStatSeq
    Note

    Return tree does not carry position.

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

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

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

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

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

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

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

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

  33. def checkHeadAssoc(leftAssoc: Boolean): Unit

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

  35. def checkNotByNameOrVarargs(tpt: scala.tools.nsc.Global.Tree): Unit

    Check that type parameter is not by name or repeated.

  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
  37. def clone(): AnyRef

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

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

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

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

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

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

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

    Convert tree to formal parameter.

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

    Convert tree to formal parameter list.

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

    Convert (qual)ident to type identifier.

  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
  48. final def dropAnyBraces[T](body: ⇒ T): T

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

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

  51. def enumerators(): List[scala.tools.nsc.Global.Tree]

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

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

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

  55. def errorTermTree: scala.tools.nsc.Global.Literal

  56. def errorTypeTree: scala.tools.nsc.Global.TypeTree

  57. def expectedMsg(token: Parsers.Token): String

  58. def expectedMsgTemplate(exp: String, fnd: String): String

  59. def expr(location: Location): scala.tools.nsc.Global.Tree

  60. 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}
                 | `:' `_' `*'
  61. def expr0(location: Location): scala.tools.nsc.Global.Tree

  62. def exprSimpleType(): scala.tools.nsc.Global.Tree

  63. def exprTypeArgs(): List[scala.tools.nsc.Global.Tree]

  64. def finalize(): Unit

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

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

  67. implicit def fresh: FreshNameCreator

  68. 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
  69. 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

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

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

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

    Guard ::= if PostfixExpr
  73. def hashCode(): Int

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

  75. def ident(skipIt: Boolean): scala.tools.nsc.Global.Name

    Assumed (provisionally) to be TermNames.

  76. def identForType(skipIt: Boolean): scala.tools.nsc.Global.TypeName

  77. def identForType(): scala.tools.nsc.Global.TypeName

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

  78. def identOrMacro(): scala.tools.nsc.Global.Name

  79. def implicitClosure(start: Parsers.Offset, location: Location): scala.tools.nsc.Global.Tree

    Expr ::= implicit Id => Expr
  80. def importClause(): List[scala.tools.nsc.Global.Tree]

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

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

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

    ImportSelectors ::= `{' {ImportSelector `,'} (ImportSelector | `_') `}'
  84. final def inBraces[T](body: ⇒ T): T

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

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

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

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

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

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

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

    Definition Classes
    ParserCommon
    Annotations
    @inline()
  93. def isAnnotation: Boolean

  94. def isCaseDefEnd: Boolean

  95. def isDclIntro: Boolean

  96. def isDefIntro: Boolean

  97. def isExprIntro: Boolean

  98. def isExprIntroToken(token: Parsers.Token): Boolean

  99. def isIdent: Boolean

  100. def isIdentExcept(except: scala.tools.nsc.Global.Name): Boolean

  101. def isIdentOf(name: scala.tools.nsc.Global.Name): Boolean

  102. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  103. def isLiteral: Boolean

  104. def isLiteralToken(token: Parsers.Token): Boolean

  105. def isLocalModifier: Boolean

  106. def isMacro: Boolean

  107. def isModifier: Boolean

  108. def isNumericLit: Boolean

  109. def isRawBar: Boolean

  110. def isRawStar: Boolean

  111. def isStatSep: Boolean

  112. def isStatSep(token: Parsers.Token): Boolean

  113. def isStatSeqEnd: Boolean

  114. def isTemplateIntro: Boolean

  115. def isTypeIntroToken(token: Parsers.Token): Boolean

  116. def isTypedParam(t: scala.tools.nsc.Global.Tree): Boolean

  117. def isUnaryOp: Boolean

  118. def isWildcard(t: scala.tools.nsc.Global.Tree): Boolean

  119. 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.

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

    SimpleExpr    ::= literal
    | symbol
    | null
  121. 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) }

  122. def localModifiers(): scala.tools.nsc.Global.Modifiers

    LocalModifiers ::= {LocalModifier}
    LocalModifier  ::= abstract | final | sealed | implicit | lazy
  123. 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.

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

  125. def makeFilter(start: Parsers.Offset, tree: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Apply

  126. def makePackageObject(start: Parsers.Offset, objDef: scala.tools.nsc.Global.ModuleDef): scala.tools.nsc.Global.PackageDef

  127. 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.

  128. 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()
  129. def mixinQualifierOpt(): scala.tools.nsc.Global.TypeName

    MixinQualifier ::= `[' Id `]'
  130. def modifiers(): scala.tools.nsc.Global.Modifiers

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

    A succession of argument lists.

  132. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  133. def newLineOpt(): Unit

  134. def newLineOptWhenFollowedBy(token: Parsers.Offset): Unit

  135. def newLineOptWhenFollowing(p: (Parsers.Token) ⇒ Boolean): Unit

  136. def newLinesOpt(): Unit

  137. object noSeq extends SeqContextSensitive

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

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

  139. final def notify(): Unit

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

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

  142. def objectDef(start: Parsers.Offset, mods: scala.tools.nsc.Global.Modifiers): scala.tools.nsc.Global.ModuleDef

    ObjectDef       ::= Id ClassTemplateOpt
  143. var opstack: List[OpInfo]

  144. object outPattern extends PatternContextSensitive

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

  145. 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` { ... }
    }
  146. def packageOrPackageObject(start: Parsers.Offset): scala.tools.nsc.Global.Tree

  147. def param(owner: scala.tools.nsc.Global.Name, implicitmod: Int, caseParam: Boolean): scala.tools.nsc.Global.ValDef

  148. 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]
  149. def paramType(useStartAsPosition: Boolean): scala.tools.nsc.Global.Tree

  150. def paramType(): scala.tools.nsc.Global.Tree

    ParamType ::= Type | `=>' Type | Type `*'
  151. def parse(): scala.tools.nsc.Global.Tree

    This is the general parse entry point.

  152. def parseRule[T](rule: (Parser.this.type) ⇒ T): T

  153. def parseStats(): List[scala.tools.nsc.Global.Tree]

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

  154. def parseStatsOrPackages(): List[scala.tools.nsc.Global.Tree]

  155. 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 `=' `_'
  156. def path(thisOK: Boolean, typeOK: Boolean): scala.tools.nsc.Global.Tree

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

    Default entry points into some pattern contexts.

  158. 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.

    Annotations
    @inline()
  159. 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.

  160. def placeholderTypeBoundary(op: ⇒ scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

  161. 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.

  162. def postfixExpr(): scala.tools.nsc.Global.Tree

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

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

    QualId ::= Id {`.' Id}
  165. def r2p(offset: Parsers.Offset): Position

  166. def r2p(start: Parsers.Offset, mid: Parsers.Offset): Position

  167. def r2p(start: Parsers.Offset, mid: Parsers.Offset, end: Parsers.Offset): Position

  168. def rawIdent(): scala.tools.nsc.Global.Name

  169. def readAnnots(part: ⇒ scala.tools.nsc.Global.Tree): List[scala.tools.nsc.Global.Tree]

  170. def reduceExprStack(base: List[OpInfo], top: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

  171. def reducePatternStack(base: List[OpInfo], top: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

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

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

  174. def refineStat(): List[scala.tools.nsc.Global.Tree]

  175. def refineStatSeq(): List[scala.tools.nsc.Global.Tree]

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

    Refinement ::= [nl] `{' RefineStat {semi RefineStat} `}'
  177. def resetPackage(): Unit

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

  179. def selector(t: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

  180. def selectors(t: scala.tools.nsc.Global.Tree, typeOK: Boolean, dotOffset: Parsers.Offset): scala.tools.nsc.Global.Tree

  181. def selfInvocation(vparamss: List[List[scala.tools.nsc.Global.ValDef]]): scala.tools.nsc.Global.Tree

    SelfInvocation  ::= this ArgumentExprs {ArgumentExprs}
  182. object seqOK extends SeqContextSensitive

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

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

  184. def setInPos[T <: scala.tools.nsc.Global.Tree](t: T): T

  185. def simpleExpr(): scala.tools.nsc.Global.Tree

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

  187. def skip(targetToken: Parsers.Token): Unit

    Attributes
    protected
  188. def stableId(): scala.tools.nsc.Global.Tree

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

  190. def startInfixType(): scala.tools.nsc.Global.Tree

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

  192. def statement(location: Location): scala.tools.nsc.Global.Tree

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

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

  195. def syntaxError(msg: String, skipIt: Boolean): Unit

  196. def syntaxErrorOrIncomplete(msg: String, skipIt: Boolean): Unit

  197. def syntaxErrorOrIncompleteAnd[T](msg: String, skipIt: Boolean)(and: T): T

  198. 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
  199. 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)

  200. def templateBodyOpt(parenMeansSyntaxError: Boolean): (scala.tools.nsc.Global.ValDef, List[scala.tools.nsc.Global.Tree])

  201. 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' | `<:'
  202. def templateOrTopStatSeq(): List[scala.tools.nsc.Global.Tree]

  203. def templateParents(): List[scala.tools.nsc.Global.Tree]

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

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

  206. def templateStats(): List[scala.tools.nsc.Global.Tree]

    TemplateStats    ::= TemplateStat {semi TemplateStat}
    TemplateStat     ::= Import
                       | Annotations Modifiers Def
                       | Annotations Modifiers Dcl
                       | Expr1
                       | super ArgumentExprs {ArgumentExprs}
                       |
  207. 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
  208. def toString(): String

    Definition Classes
    AnyRef → Any
  209. 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 } }}}

  210. def topLevelTmplDef: scala.tools.nsc.Global.Tree

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

  211. def topStat: PartialFunction[Parsers.Token, List[scala.tools.nsc.Global.Tree]]

  212. def topStatSeq(): List[scala.tools.nsc.Global.Tree]

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

  214. 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.

  215. def typeBounds(): scala.tools.nsc.Global.TypeBoundsTree

    TypeBounds ::= [`>:' Type] [`<:' Type]
  216. 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
  217. def typeOrInfixType(location: Location): scala.tools.nsc.Global.Tree

  218. 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}
  219. def typedOpt(): scala.tools.nsc.Global.Tree

    TypedOpt ::= [`:' Type]
  220. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  223. def warning(msg: String): Unit

  224. def wildcardOrIdent(): scala.tools.nsc.Global.Name

  225. def wildcardType(start: Parsers.Offset): scala.tools.nsc.Global.Ident

    WildcardType ::= `_' TypeBounds
  226. object xmlSeqOK extends SeqContextSensitive

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

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

Deprecated Value Members

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

    Annotations
    @deprecated
    Deprecated

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

Inherited from Parsers.ParserCommon

Inherited from AnyRef

Inherited from Any

Ungrouped