scala.tools.reflect.quasiquotes.Parsers.Parser

QuasiquoteParser

class QuasiquoteParser extends SourceFileParser

Self Type
QuasiquoteParser
Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. QuasiquoteParser
  2. SourceFileParser
  3. Parser
  4. ParserCommon
  5. AnyRef
  6. Any
Implicitly
  1. by StringAdd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new QuasiquoteParser(source0: 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. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from QuasiquoteParser to StringAdd[QuasiquoteParser] performed by method StringAdd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (QuasiquoteParser, B)

    Implicit information
    This member is added by an implicit conversion from QuasiquoteParser to ArrowAssoc[QuasiquoteParser] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  8. object InfixMode extends Enumeration

    Modes for infix types.

  9. def accept(token: Parser.Token): Parser.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
  10. def acceptStatSep(): Unit

    semi = nl {nl} | `;`
    nl  = `\n' // where allowed
    Definition Classes
    Parser
  11. def acceptStatSepOpt(): Unit

    Definition Classes
    Parser
  12. def accessModifierOpt(): nsc.Global.Modifiers

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

    AccessQualifier ::= `[' (Id | this) `]'
    Definition Classes
    Parser
  14. def allowTypelessParams: Boolean

    Definition Classes
    QuasiquoteParserParser
  15. def annotTypeRest(t: nsc.Global.Tree): nsc.Global.Tree

    Definition Classes
    Parser
  16. def annotationExpr(): nsc.Global.Tree

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

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

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

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

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

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

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

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

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

    Definition Classes
    Parser
  26. def atPos[T <: nsc.Global.Tree](offset: Parser.Offset)(t: T): T

    Definition Classes
    Parser
  27. def block(): nsc.Global.Tree

    Block ::= BlockStatSeq
    Definition Classes
    Parser
    Note

    Return tree does not carry position.

  28. def blockExpr(): nsc.Global.Tree

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

    BlockStatSeq ::= { BlockStat semi } [ResultExpr]
    BlockStat    ::= Import
                   | Annotations [implicit] [lazy] Def
                   | Annotations LocalModifiers TmplDef
                   | Expr1
                   |
    Definition Classes
    Parser
  30. def bound(tok: Parser.Token): nsc.Global.Tree

    Definition Classes
    Parser
  31. def caseBlock(): nsc.Global.Tree

    Definition Classes
    QuasiquoteParserParser
  32. def caseClause(): nsc.Global.CaseDef

    Definition Classes
    QuasiquoteParserParser
  33. def caseClauses(): List[nsc.Global.CaseDef]

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

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

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

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

    Definition Classes
    Parser
  38. def checkNotByNameOrVarargs(tpt: 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
  39. def classDef(start: Parser.Offset, mods: nsc.Global.Modifiers): nsc.Global.ClassDef

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

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

    Definition Classes
    Parser
    Annotations
    @inline()
  42. def compilationUnit(): nsc.Global.PackageDef

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

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

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

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

    Definition Classes
    Parser
  47. def convertToParam(tree: nsc.Global.Tree): nsc.Global.ValDef

    Convert tree to formal parameter.

    Convert tree to formal parameter.

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

    Convert tree to formal parameter list.

    Convert tree to formal parameter list.

    Definition Classes
    Parser
  49. def convertToTypeId(tree: nsc.Global.Tree): nsc.Global.Tree

    Convert (qual)ident to type identifier.

    Convert (qual)ident to type identifier.

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

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

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

    Definition Classes
    QuasiquoteParserParser
  54. def ensuring(cond: (QuasiquoteParser) ⇒ Boolean, msg: ⇒ Any): QuasiquoteParser

    Implicit information
    This member is added by an implicit conversion from QuasiquoteParser to Ensuring[QuasiquoteParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  55. def ensuring(cond: (QuasiquoteParser) ⇒ Boolean): QuasiquoteParser

    Implicit information
    This member is added by an implicit conversion from QuasiquoteParser to Ensuring[QuasiquoteParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  56. def ensuring(cond: Boolean, msg: ⇒ Any): QuasiquoteParser

    Implicit information
    This member is added by an implicit conversion from QuasiquoteParser to Ensuring[QuasiquoteParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  57. def ensuring(cond: Boolean): QuasiquoteParser

    Implicit information
    This member is added by an implicit conversion from QuasiquoteParser to Ensuring[QuasiquoteParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  58. def enumerator(isFirst: Boolean, allowNestedIf: Boolean = true): List[nsc.Global.Tree]

    Definition Classes
    QuasiquoteParserParser
  59. def enumerators(): List[nsc.Global.Tree]

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

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

    Definition Classes
    AnyRef → Any
  62. def errorPatternTree: nsc.Global.Ident

    Definition Classes
    Parser
  63. def errorTermTree: nsc.Global.Literal

    Definition Classes
    Parser
  64. def errorTypeTree: nsc.Global.TypeTree

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

    Definition Classes
    QuasiquoteParserParser
  66. def expectedMsgTemplate(exp: String, fnd: String): String

    Definition Classes
    Parser
  67. def expr(location: Parser.Location): nsc.Global.Tree

    Definition Classes
    Parser
  68. def expr(): 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
  69. def expr0(location: Parser.Location): nsc.Global.Tree

    Definition Classes
    Parser
  70. def exprSimpleType(): nsc.Global.Tree

    Definition Classes
    Parser
  71. def exprTypeArgs(): List[nsc.Global.Tree]

    Definition Classes
    Parser
  72. def finalize(): Unit

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

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

    Definition Classes
    Parser
  75. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from QuasiquoteParser to StringFormat[QuasiquoteParser] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  76. implicit lazy val fresh: FreshNameCreator

    Definition Classes
    QuasiquoteParserParser
  77. def funDefOrDcl(start: Int, mods: nsc.Global.Modifiers): 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
  78. def funDefRest(start: Parser.Offset, nameOffset: Parser.Offset, mods: nsc.Global.Modifiers, name: nsc.Global.Name): nsc.Global.Tree

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

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

    Definition Classes
    AnyRef → Any
  81. def guard(): nsc.Global.Tree

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

    Definition Classes
    AnyRef → Any
  83. def ident(): nsc.Global.Name

    Definition Classes
    Parser
  84. def ident(skipIt: Boolean): nsc.Global.Name

    Assumed (provisionally) to be TermNames.

    Assumed (provisionally) to be TermNames.

    Definition Classes
    Parser
  85. def identForType(skipIt: Boolean): nsc.Global.TypeName

    Definition Classes
    Parser
  86. def identForType(): 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
  87. def identOrMacro(): nsc.Global.Name

    Definition Classes
    Parser
  88. def implicitClosure(start: Parser.Offset, location: Parser.Location): nsc.Global.Tree

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    SourceFileParserParser
  104. def isAnnotation: Boolean

    Definition Classes
    QuasiquoteParserParser
  105. def isCaseDefEnd: Boolean

    Definition Classes
    Parser
  106. def isDclIntro: Boolean

    Definition Classes
    QuasiquoteParserParser
  107. def isDefIntro: Boolean

    Definition Classes
    Parser
  108. def isExprIntro: Boolean

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

    Definition Classes
    Parser
  110. def isHole(name: nsc.Global.Name): Boolean

  111. def isHole: Boolean

  112. def isIdent: Boolean

    Definition Classes
    Parser
  113. def isIdentExcept(except: nsc.Global.Name): Boolean

    Definition Classes
    Parser
  114. def isIdentOf(name: nsc.Global.Name): Boolean

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

    Definition Classes
    Any
  116. def isLiteral: Boolean

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

    Definition Classes
    Parser
  118. def isLocalModifier: Boolean

    Definition Classes
    QuasiquoteParserParser
  119. def isMacro: Boolean

    Definition Classes
    Parser
  120. def isModifier: Boolean

    Definition Classes
    QuasiquoteParserParser
  121. def isNumericLit: Boolean

    Definition Classes
    Parser
  122. def isRawBar: Boolean

    Definition Classes
    Parser
  123. def isRawStar: Boolean

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

    Definition Classes
    QuasiquoteParserParser
  125. def isStatSep: Boolean

    Definition Classes
    Parser
  126. def isStatSeqEnd: Boolean

    Definition Classes
    Parser
  127. def isTemplateIntro: Boolean

    Definition Classes
    QuasiquoteParserParser
  128. def isTypeIntroToken(token: Parser.Token): Boolean

    Definition Classes
    Parser
  129. def isTypedParam(tree: nsc.Global.Tree): Boolean

    Definition Classes
    QuasiquoteParserParser
  130. def isUnaryOp: Boolean

    Definition Classes
    Parser
  131. def isWildcard(t: nsc.Global.Tree): Boolean

    Definition Classes
    Parser
  132. def joinComment(trees: ⇒ List[nsc.Global.Tree]): List[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
  133. def literal(isNegated: Boolean = false, inPattern: Boolean = false, start: Parser.Offset = in.offset): nsc.Global.Tree

    SimpleExpr    ::= literal
    | symbol
    | null
    Definition Classes
    Parser
  134. def localDef(implicitMod: Int): List[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
  135. def localModifiers(): nsc.Global.Modifiers

    LocalModifiers ::= {LocalModifier}
    LocalModifier  ::= abstract | final | sealed | implicit | lazy
    Definition Classes
    Parser
  136. 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()
  137. def makeEmptyPackage(start: Parser.Offset, stats: List[nsc.Global.Tree]): nsc.Global.PackageDef

    Definition Classes
    Parser
  138. def makeFilter(start: Parser.Offset, tree: nsc.Global.Tree): nsc.Global.Apply

    Definition Classes
    Parser
  139. def makePackageObject(start: Parser.Offset, objDef: nsc.Global.ModuleDef): nsc.Global.PackageDef

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

    Create a tree representing a packaging.

    Create a tree representing a packaging.

    Definition Classes
    Parser
  141. final def makeParens(body: ⇒ List[nsc.Global.Tree]): 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()
  142. def mixinQualifierOpt(): nsc.Global.TypeName

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

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

    A succession of argument lists.

    A succession of argument lists.

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

    Definition Classes
    AnyRef
  146. def newLineOpt(): Unit

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

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

    Definition Classes
    Parser
  149. def newLinesOpt(): Unit

    Definition Classes
    Parser
  150. def newScanner(): Parser.Scanner

    Definition Classes
    SourceFileParser
  151. object noSeq extends SeqContextSensitive

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

  152. def nonLocalDefOrDcl: List[nsc.Global.Tree]

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

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

    Definition Classes
    AnyRef
  155. def o2p(offset: Parser.Offset): nsc.Global.Position

    Definition Classes
    Parser
  156. def objectDef(start: Parser.Offset, mods: nsc.Global.Modifiers): nsc.Global.ModuleDef

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

    Definition Classes
    Parser
  158. object outPattern extends PatternContextSensitive

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

  159. def packageObjectDef(start: Parser.Offset): 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
  160. def packageOrPackageObject(start: Parser.Offset): nsc.Global.Tree

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

    Definition Classes
    Parser
  163. def paramType(): nsc.Global.Tree

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

    This is the general parse entry point.

    This is the general parse entry point.

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

    Definition Classes
    Parser
  166. def parseStartRule: () ⇒ 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
  167. def parseStats(): List[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
  168. def parseStatsOrPackages(): List[nsc.Global.Tree]

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

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

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

    Default entry points into some pattern contexts.

    Default entry points into some pattern contexts.

    Definition Classes
    Parser
  172. def peekingAhead(tree: ⇒ nsc.Global.Tree): 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()
  173. var placeholderParams: List[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
  174. def placeholderTypeBoundary(op: ⇒ nsc.Global.Tree): nsc.Global.Tree

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

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

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

    QualId ::= Id {`.' Id}
    Definition Classes
    Parser
  179. def r2p(offset: Parser.Offset): nsc.Global.Position

    Definition Classes
    Parser
  180. def r2p(start: Parser.Offset, mid: Parser.Offset): nsc.Global.Position

    Definition Classes
    Parser
  181. def r2p(start: Parser.Offset, mid: Parser.Offset, end: Parser.Offset): nsc.Global.Position

    Definition Classes
    Parser
  182. def rawIdent(): nsc.Global.Name

    Definition Classes
    Parser
  183. def readAnnots(annot: ⇒ nsc.Global.Tree): List[nsc.Global.Tree]

    Definition Classes
    QuasiquoteParserParser
  184. def reduceExprStack(base: List[Parser.OpInfo], top: nsc.Global.Tree): nsc.Global.Tree

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

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

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

    Definition Classes
    Parser
  188. def refineStat(): List[nsc.Global.Tree]

    Definition Classes
    QuasiquoteParserParser
  189. def refineStatSeq(): List[nsc.Global.Tree]

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

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

    Definition Classes
    Parser
  192. def scriptBody(): 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
  193. def selector(t: nsc.Global.Tree): nsc.Global.Tree

    Definition Classes
    Parser
  194. def selectors(t: nsc.Global.Tree, typeOK: Boolean, dotOffset: Parser.Offset): nsc.Global.Tree

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

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

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

  197. def seqPatterns(): List[nsc.Global.Tree]

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

    Definition Classes
    Parser
  199. def simpleExpr(): nsc.Global.Tree

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

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

    Attributes
    protected
    Definition Classes
    Parser
  202. val source: SourceFile

    Definition Classes
    SourceFileParserParser
  203. def stableId(): nsc.Global.Tree

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

    Definition Classes
    Parser
  205. def startInfixType(): nsc.Global.Tree

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

    Definition Classes
    Parser
  207. def statement(location: Parser.Location): nsc.Global.Tree

    Definition Classes
    Parser
  208. object symbXMLBuilder extends SymbolicXMLBuilder

    Definition Classes
    SourceFileParser
  209. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  210. def syntaxError(offset: Parser.Offset, msg: String): Unit

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    Parser
  220. def templateParents(): List[nsc.Global.Tree]

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

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

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

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

    Definition Classes
    Parser
  223. def templateStats(): List[nsc.Global.Tree]

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

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

    Definition Classes
    AnyRef → Any
  226. final def tokenSeparated[T](separator: Parser.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
  227. def topLevelTmplDef: nsc.Global.Tree

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

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

    Definition Classes
    Parser
  228. def topStat: PartialFunction[Parser.Token, List[nsc.Global.Tree]]

    Definition Classes
    QuasiquoteParserParser
  229. def topStatSeq(): List[nsc.Global.Tree]

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

    Definition Classes
    QuasiquoteParserParser
  231. def typ(): 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
  232. def typeBounds(): nsc.Global.TypeBoundsTree

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

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

    Definition Classes
    Parser
  235. def typeParamClauseOpt(owner: nsc.Global.Name, contextBoundBuf: ListBuffer[nsc.Global.Tree]): List[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
  236. def typedOpt(): nsc.Global.Tree

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

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

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

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

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

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

    Definition Classes
    Parser
  243. def wildcardOrIdent(): nsc.Global.Name

    Definition Classes
    Parser
  244. def wildcardType(start: Parser.Offset): nsc.Global.Ident

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

    Definition Classes
    SourceFileParserParser
  246. def xmlLiteralPattern(): nsc.Global.Tree

    Definition Classes
    SourceFileParserParser
  247. object xmlSeqOK extends SeqContextSensitive

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

  248. def xmlSeqPatterns(): List[nsc.Global.Tree]

    Definition Classes
    Parser
  249. def [B](y: B): (QuasiquoteParser, B)

    Implicit information
    This member is added by an implicit conversion from QuasiquoteParser to ArrowAssoc[QuasiquoteParser] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

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

    Definition Classes
    Parser
    Annotations
    @deprecated
    Deprecated

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

Inherited from Parser.SourceFileParser

Inherited from Parser.Parser

Inherited from Parser.ParserCommon

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion StringAdd from QuasiquoteParser to StringAdd[QuasiquoteParser]

Inherited by implicit conversion StringFormat from QuasiquoteParser to StringFormat[QuasiquoteParser]

Inherited by implicit conversion Ensuring from QuasiquoteParser to Ensuring[QuasiquoteParser]

Inherited by implicit conversion ArrowAssoc from QuasiquoteParser to ArrowAssoc[QuasiquoteParser]

Ungrouped