Class

scala.reflect.quasiquotes.Parsers.Parser

QuasiquoteParser

Related Doc: package Parser

Permalink

class QuasiquoteParser extends SourceFileParser

Self Type
QuasiquoteParser
Source
Parsers.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QuasiquoteParser
  2. SourceFileParser
  3. Parser
  4. ParserCommon
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new QuasiquoteParser(source0: SourceFile)

    Permalink

Type Members

  1. class ParserTreeBuilder extends TreeBuilder

    Permalink
    Definition Classes
    Parser
  2. trait PatternContextSensitive extends AnyRef

    Permalink

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

    Methods which implicitly propagate the context in which they were called: either in a pattern context or not. Formerly, this was threaded through numerous methods as boolean isPattern.

    Definition Classes
    Parser
  3. trait SeqContextSensitive extends PatternContextSensitive

    Permalink

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

    Methods which implicitly propagate whether the initial call took place in a context where sequences are allowed. Formerly, this was threaded through methods as boolean seqOK.

    Definition Classes
    Parser

Value Members

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

    Permalink

    Test two objects for inequality.

    Test two objects for inequality.

    returns

    true if !(this == that), false otherwise.

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink

    Equivalent to x.hashCode except for boxed numeric types and null.

    Equivalent to x.hashCode except for boxed numeric types and null. For numerics, it returns a hash value which is consistent with value equality: if two value type instances compare as true, then ## will produce the same hash value for each of them. For null returns a hashcode where null.hashCode throws a NullPointerException.

    returns

    a hash value consistent with ==

    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

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

    Permalink
    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()
  5. final def ==(arg0: Any): Boolean

    Permalink

    The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that).

    The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that).

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    Definition Classes
    AnyRef → Any
  6. object InfixMode extends Enumeration

    Permalink

    Modes for infix types.

    Modes for infix types.

    Definition Classes
    Parser
  7. def accept(token: Parser.Token): Parser.Offset

    Permalink

    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

    Permalink

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

    Permalink
    Definition Classes
    Parser
  10. def accessModifierOpt(): tools.nsc.Global.Modifiers

    Permalink

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

    Permalink

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

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

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

    Permalink

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

    Permalink

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

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

    Permalink

    Cast the receiver object to be of type T0.

    Cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression 1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expression List(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested type.

    returns

    the receiver object.

    Definition Classes
    Any
    Exceptions thrown

    ClassCastException if the receiver object is not an instance of the erasure of type T0.

  18. val assumedClosingParens: Map[Int, Int]

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

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

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

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

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

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

    Permalink

    Block ::= BlockStatSeq
    Definition Classes
    Parser
    Note

    Return tree does not carry position.

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

    Permalink

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

    Permalink

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

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

    Permalink
    Definition Classes
    QuasiquoteParserParser
  29. def caseClause(): tools.nsc.Global.CaseDef

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

    Permalink

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

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

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

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

    Permalink
    Definition Classes
    Parser
  35. def checkNotByNameOrVarargs(tpt: tools.nsc.Global.Tree): Unit

    Permalink

    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: Parser.Offset, mods: tools.nsc.Global.Modifiers): tools.nsc.Global.ClassDef

    Permalink

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

    Permalink

    Create a copy of the receiver object.

    Create a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @throws( ... )
    Note

    not specified by SLS as a member of AnyRef

  38. final def commaSeparated[T](part: ⇒ T): List[T]

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

    Permalink

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

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

    Permalink

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

    Permalink

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

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

    Permalink

    Convert tree to formal parameter.

    Convert tree to formal parameter.

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

    Permalink

    Convert tree to formal parameter list.

    Convert tree to formal parameter list.

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

    Permalink

    Convert (qual)ident to type identifier.

    Convert (qual)ident to type identifier.

    Definition Classes
    Parser
  47. def defOrDcl(pos: Parser.Offset, mods: tools.nsc.Global.Modifiers): List[tools.nsc.Global.Tree]

    Permalink

    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: Parser.Offset, msg: String): Unit

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

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

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

    Permalink
    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
  52. def ensuring(cond: (QuasiquoteParser) ⇒ Boolean): QuasiquoteParser

    Permalink
    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
  53. def ensuring(cond: Boolean, msg: ⇒ Any): QuasiquoteParser

    Permalink
    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
  54. def ensuring(cond: Boolean): QuasiquoteParser

    Permalink
    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 enumerator(isFirst: Boolean, allowNestedIf: Boolean = true): List[tools.nsc.Global.Tree]

    Permalink
    Definition Classes
    QuasiquoteParserParser
  56. def enumerators(): List[tools.nsc.Global.Tree]

    Permalink

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

    Permalink

    Tests whether the argument (that) is a reference to the receiver object (this).

    Tests whether the argument (that) is a reference to the receiver object (this).

    The eq method implements an equivalence relation on non-null instances of AnyRef, and has three additional properties:

    • It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false.
    • For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false.
    • null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    returns

    true if the argument is a reference to the receiver object; false otherwise.

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

    Permalink

    The equality method for reference types.

    The equality method for reference types. Default implementation delegates to eq.

    See also equals in scala.Any.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

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

    Permalink
    Definition Classes
    Parser
  60. def errorTermTree: tools.nsc.Global.Literal

    Permalink
    Definition Classes
    Parser
  61. def errorTypeTree: tools.nsc.Global.TypeTree

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

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

    Permalink
    Definition Classes
    Parser
  64. def expr(location: Parser.Location): tools.nsc.Global.Tree

    Permalink
    Definition Classes
    Parser
  65. def expr(): tools.nsc.Global.Tree

    Permalink

    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 `)