class QuasiquoteParser extends SourceFileParser
- Alphabetic
- By Inheritance
- QuasiquoteParser
- SourceFileParser
- Parser
- ParserCommon
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new QuasiquoteParser(source0: SourceFile)
Type Members
-
class
ParserTreeBuilder
extends TreeBuilder
- Definition Classes
- Parser
-
trait
PatternContextSensitive
extends AnyRef
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
-
trait
SeqContextSensitive
extends PatternContextSensitive
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
-
final
def
!=(arg0: Any): Boolean
Test two objects for inequality.
Test two objects for inequality.
- returns
true
if !(this == that), false otherwise.
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
Equivalent to
x.hashCode
except for boxed numeric types andnull
.Equivalent to
x.hashCode
except for boxed numeric types andnull
. 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. Fornull
returns a hashcode wherenull.hashCode
throws aNullPointerException
.- returns
a hash value consistent with ==
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from QuasiquoteParser to any2stringadd[QuasiquoteParser] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (QuasiquoteParser, B)
- Implicit
- 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()
-
final
def
==(arg0: Any): Boolean
The expression
x == that
is equivalent toif (x eq null) that eq null else x.equals(that)
.The expression
x == that
is equivalent toif (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
-
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
- Parser → ParserCommon
-
def
acceptStatSep(): Unit
semi = nl {nl} | `;` nl = `\n' // where allowed
- Definition Classes
- Parser
-
def
acceptStatSepOpt(): Unit
- Definition Classes
- Parser
-
def
accessModifierOpt(): tools.nsc.Global.Modifiers
AccessModifier ::= (private | protected) [AccessQualifier]
- Definition Classes
- Parser
-
def
accessQualifierOpt(mods: tools.nsc.Global.Modifiers): tools.nsc.Global.Modifiers
AccessQualifier ::= `[' (Id | this) `]'
- Definition Classes
- Parser
-
def
annotTypeRest(t: tools.nsc.Global.Tree): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
annotationExpr(): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
annotations(skipNewLines: Boolean): List[tools.nsc.Global.Tree]
Annotations ::= {`@' SimpleType {ArgumentExprs}} ConsrAnnotations ::= {`@' SimpleType ArgumentExprs}
- Definition Classes
- Parser
-
def
argumentExprs(): List[tools.nsc.Global.Tree]
ArgumentExprs ::= `(' [Exprs] `)' | [nl] BlockExpr
- Definition Classes
- Parser
-
def
argumentPatterns(): List[tools.nsc.Global.Tree]
- Definition Classes
- Parser
-
final
def
asInstanceOf[T0]: T0
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 aClassCastException
at runtime, while the expressionList(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 typeT0
.
-
val
assumedClosingParens: Map[Int, Int]
- Definition Classes
- Parser
-
def
atInPos[T <: tools.nsc.Global.Tree](t: T): T
- Definition Classes
- Parser
-
def
atPos[T <: tools.nsc.Global.Tree](pos: tools.nsc.Global.Position)(t: T): T
- Definition Classes
- Parser
-
def
atPos[T <: tools.nsc.Global.Tree](start: Parser.Offset, point: Parser.Offset, end: Parser.Offset)(t: T): T
- Definition Classes
- Parser
-
def
atPos[T <: tools.nsc.Global.Tree](start: Parser.Offset, point: Parser.Offset)(t: T): T
- Definition Classes
- Parser
-
def
atPos[T <: tools.nsc.Global.Tree](offset: Parser.Offset)(t: T): T
- Definition Classes
- Parser
-
def
block(): tools.nsc.Global.Tree
Block ::= BlockStatSeq
- Definition Classes
- Parser
- Note
Return tree does not carry position.
-
def
blockExpr(): tools.nsc.Global.Tree
BlockExpr ::= `{' (CaseClauses | Block) `}'
- Definition Classes
- Parser
-
def
blockStatSeq(): List[tools.nsc.Global.Tree]
BlockStatSeq ::= { BlockStat semi } [ResultExpr] BlockStat ::= Import | Annotations [implicit] [lazy] Def | Annotations LocalModifiers TmplDef | Expr1 |
- Definition Classes
- Parser
-
def
bound(tok: Parser.Token): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
caseBlock(): tools.nsc.Global.Tree
- Definition Classes
- QuasiquoteParser → Parser
-
def
caseClause(): tools.nsc.Global.CaseDef
- Definition Classes
- QuasiquoteParser → Parser
-
def
caseClauses(): List[tools.nsc.Global.CaseDef]
CaseClauses ::= CaseClause {CaseClause} CaseClause ::= case Pattern [Guard] `=>' Block
- Definition Classes
- Parser
-
final
def
caseSeparated[T](part: ⇒ T): List[T]
- Definition Classes
- Parser
- Annotations
- @inline()
-
def
checkAssoc(offset: Parser.Offset, op: tools.nsc.Global.Name, leftAssoc: Boolean): Unit
- Definition Classes
- Parser
-
def
checkHeadAssoc(leftAssoc: Boolean): Unit
- Definition Classes
- Parser
-
def
checkNoEscapingPlaceholders[T](op: ⇒ T): T
- Definition Classes
- Parser
-
def
checkNotByNameOrVarargs(tpt: 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
-
def
classDef(start: Parser.Offset, mods: tools.nsc.Global.Modifiers): tools.nsc.Global.ClassDef
ClassDef ::= Id [TypeParamClause] {Annotation} [AccessModifier] ClassParamClauses RequiresTypeOpt ClassTemplateOpt TraitDef ::= Id [TypeParamClause] RequiresTypeOpt TraitTemplateOpt
- Definition Classes
- Parser
-
def
clone(): AnyRef
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
- @throws( ... )
- Note
not specified by SLS as a member of AnyRef
-
final
def
commaSeparated[T](part: ⇒ T): List[T]
- Definition Classes
- Parser
- Annotations
- @inline()
-
def
compilationUnit(): tools.nsc.Global.PackageDef
CompilationUnit ::= {package QualId semi} TopStatSeq
- Definition Classes
- Parser
-
def
condExpr(): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
constrBlock(vparamss: List[List[tools.nsc.Global.ValDef]]): tools.nsc.Global.Tree
ConstrBlock ::= `{' SelfInvocation {semi BlockStat} `}'
- Definition Classes
- Parser
-
def
constrExpr(vparamss: List[List[tools.nsc.Global.ValDef]]): tools.nsc.Global.Tree
ConstrExpr ::= SelfInvocation | ConstrBlock
- Definition Classes
- Parser
-
def
constructorAnnotations(): List[tools.nsc.Global.Tree]
- Definition Classes
- Parser
-
def
convertToParam(tree: tools.nsc.Global.Tree): tools.nsc.Global.ValDef
Convert tree to formal parameter.
Convert tree to formal parameter.
- Definition Classes
- QuasiquoteParser → Parser
-
def
convertToParams(tree: tools.nsc.Global.Tree): List[tools.nsc.Global.ValDef]
Convert tree to formal parameter list.
Convert tree to formal parameter list.
- Definition Classes
- Parser
-
def
convertToTypeId(tree: tools.nsc.Global.Tree): tools.nsc.Global.Tree
Convert (qual)ident to type identifier.
Convert (qual)ident to type identifier.
- Definition Classes
- Parser
-
def
defOrDcl(pos: Parser.Offset, mods: tools.nsc.Global.Modifiers): List[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
-
def
deprecationWarning(offset: Parser.Offset, msg: String, since: String): Unit
- Definition Classes
- SourceFileParser → ParserCommon
-
final
def
dropAnyBraces[T](body: ⇒ T): T
- Definition Classes
- ParserCommon
- Annotations
- @inline()
-
def
ensureEarlyDef(tree: tools.nsc.Global.Tree): tools.nsc.Global.Tree
- Definition Classes
- QuasiquoteParser → Parser
-
def
ensuring(cond: (QuasiquoteParser) ⇒ Boolean, msg: ⇒ Any): QuasiquoteParser
- Implicit
- This member is added by an implicit conversion from QuasiquoteParser to Ensuring[QuasiquoteParser] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (QuasiquoteParser) ⇒ Boolean): QuasiquoteParser
- Implicit
- This member is added by an implicit conversion from QuasiquoteParser to Ensuring[QuasiquoteParser] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): QuasiquoteParser
- Implicit
- This member is added by an implicit conversion from QuasiquoteParser to Ensuring[QuasiquoteParser] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): QuasiquoteParser
- Implicit
- This member is added by an implicit conversion from QuasiquoteParser to Ensuring[QuasiquoteParser] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
enumerator(isFirst: Boolean, allowNestedIf: Boolean = true): List[tools.nsc.Global.Tree]
- Definition Classes
- QuasiquoteParser → Parser
-
def
enumerators(): List[tools.nsc.Global.Tree]
Enumerators ::= Generator {semi Enumerator} Enumerator ::= Generator | Guard | val Pattern1 `=' Expr
- Definition Classes
- Parser
-
final
def
eq(arg0: AnyRef): Boolean
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 ofAnyRef
, and has three additional properties:- It is consistent: for any non-null instances
x
andy
of typeAnyRef
, multiple invocations ofx.eq(y)
consistently returnstrue
or consistently returnsfalse
. - For any non-null instance
x
of typeAnyRef
,x.eq(null)
andnull.eq(x)
returnsfalse
. null.eq(null)
returnstrue
.
When overriding the
equals
orhashCode
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
- It is consistent: for any non-null instances
-
def
equals(arg0: Any): Boolean
The equality method for reference types.
-
def
errorPatternTree: tools.nsc.Global.Ident
- Definition Classes
- Parser
-
def
errorTermTree: tools.nsc.Global.Literal
- Definition Classes
- Parser
-
def
errorTypeTree: tools.nsc.Global.TypeTree
- Definition Classes
- Parser
-
def
expectedMsg(token: Int): String
- Definition Classes
- QuasiquoteParser → Parser
-
def
expectedMsgTemplate(exp: String, fnd: String): String
- Definition Classes
- Parser
-
def
expr(location: Parser.Location): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
expr(): 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
-
def
expr0(location: Parser.Location): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
exprSimpleType(): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
exprTypeArgs(): List[tools.nsc.Global.Tree]
- Definition Classes
- Parser
-
def
finalize(): Unit
Called by the garbage collector on the receiver object when there are no more references to the object.
Called by the garbage collector on the receiver object when there are no more references to the object.
The details of when and if the
finalize
method is invoked, as well as the interaction betweenfinalize
and non-local returns and exceptions, are all platform dependent.- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- Note
not specified by SLS as a member of AnyRef
-
def
finishBinaryOp(isExpr: Boolean, opinfo: Parser.OpInfo, rhs: tools.nsc.Global.Tree): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
finishPostfixOp(start: Int, base: List[Parser.OpInfo], opinfo: Parser.OpInfo): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
formatted(fmtstr: String): String
- Implicit
- 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()
-
implicit
lazy val
fresh: FreshNameCreator
- Definition Classes
- QuasiquoteParser → Parser
-
def
funDefOrDcl(start: Int, mods: tools.nsc.Global.Modifiers): 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
-
def
funDefRest(start: Parser.Offset, nameOffset: Parser.Offset, mods: tools.nsc.Global.Modifiers, name: tools.nsc.Global.Name): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
generator(eqOK: Boolean, allowNestedIf: Boolean = true): List[tools.nsc.Global.Tree]
Generator ::= Pattern1 (`<-' | `=') Expr [Guard]
- Definition Classes
- Parser
-
final
def
getClass(): Class[_]
Returns the runtime class representation of the object.
Returns the runtime class representation of the object.
- returns
a class object corresponding to the runtime type of the receiver.
- Definition Classes
- AnyRef → Any
-
def
guard(): tools.nsc.Global.Tree
Guard ::= if PostfixExpr
- Definition Classes
- Parser
-
def
hashCode(): Int
The hashCode method for reference types.
-
def
ident(): tools.nsc.Global.Name
- Definition Classes
- Parser
-
def
ident(skipIt: Boolean): tools.nsc.Global.Name
Assumed (provisionally) to be TermNames.
Assumed (provisionally) to be TermNames.
- Definition Classes
- Parser
-
def
identForType(skipIt: Boolean): tools.nsc.Global.TypeName
- Definition Classes
- Parser
-
def
identForType(): 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
-
def
identOrMacro(): tools.nsc.Global.Name
- Definition Classes
- Parser
-
def
implicitClosure(start: Parser.Offset, location: Parser.Location): tools.nsc.Global.Tree
Expr ::= implicit Id => Expr
- Definition Classes
- Parser
-
def
importClause(): List[tools.nsc.Global.Tree]
Import ::= import ImportExpr {`,' ImportExpr}
- Definition Classes
- Parser
-
def
importExpr(): tools.nsc.Global.Tree
ImportExpr ::= StableId `.' (Id | `_' | ImportSelectors)
- Definition Classes
- Parser
-
def
importSelector(): tools.nsc.Global.ImportSelector
ImportSelector ::= Id [`=>' Id | `=>' `_']
- Definition Classes
- Parser
-
def
importSelectors(): List[tools.nsc.Global.ImportSelector]
ImportSelectors ::= `{' {ImportSelector `,'} (ImportSelector | `_') `}'
- Definition Classes
- Parser
-
val
in: Parser.Scanner
- Definition Classes
- SourceFileParser → Parser → ParserCommon
-
final
def
inBraces[T](body: ⇒ T): T
- Definition Classes
- ParserCommon
- Annotations
- @inline()
-
final
def
inBracesOrError[T](body: ⇒ T, alt: T): T
- Definition Classes
- ParserCommon
- Annotations
- @inline()
-
final
def
inBracesOrNil[T](body: ⇒ List[T]): List[T]
- Definition Classes
- ParserCommon
- Annotations
- @inline()
-
final
def
inBracesOrUnit[T](body: ⇒ tools.nsc.Global.Tree): tools.nsc.Global.Tree
- Definition Classes
- ParserCommon
- Annotations
- @inline()
-
final
def
inBrackets[T](body: ⇒ T): T
- Definition Classes
- ParserCommon
- Annotations
- @inline()
-
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.g.
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()
-
final
def
inParensOrError[T](body: ⇒ T, alt: T): T
- Definition Classes
- ParserCommon
- Annotations
- @inline()
-
final
def
inParensOrNil[T](body: ⇒ List[T]): List[T]
- Definition Classes
- ParserCommon
- Annotations
- @inline()
-
final
def
inParensOrUnit[T](body: ⇒ tools.nsc.Global.Tree): tools.nsc.Global.Tree
- Definition Classes
- ParserCommon
- Annotations
- @inline()
-
def
incompleteInputError(msg: String): Unit
- Definition Classes
- SourceFileParser → Parser
-
def
isAnnotation: Boolean
- Definition Classes
- QuasiquoteParser → Parser
-
def
isCaseDefEnd: Boolean
- Definition Classes
- Parser
-
def
isDclIntro: Boolean
- Definition Classes
- QuasiquoteParser → Parser
-
def
isDefIntro: Boolean
- Definition Classes
- QuasiquoteParser → Parser
-
def
isExprIntro: Boolean
- Definition Classes
- Parser
-
def
isExprIntroToken(token: Parser.Token): Boolean
- Definition Classes
- Parser
- def isHole(name: tools.nsc.Global.Name): Boolean
- def isHole: Boolean
-
def
isIdent: Boolean
- Definition Classes
- Parser
-
def
isIdentExcept(except: tools.nsc.Global.Name): Boolean
- Definition Classes
- Parser
-
def
isIdentOf(name: tools.nsc.Global.Name): Boolean
- Definition Classes
- Parser
-
final
def
isInstanceOf[T0]: Boolean
Test whether the dynamic type of the receiver object is
T0
.Test whether the dynamic type of the receiver object is
T0
.Note that the result of the test is modulo Scala's erasure semantics. Therefore the expression
1.isInstanceOf[String]
will returnfalse
, while the expressionList(1).isInstanceOf[List[String]]
will returntrue
. 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 specified type.- returns
true
if the receiver object is an instance of erasure of typeT0
;false
otherwise.
- Definition Classes
- Any
-
def
isLiteral: Boolean
- Definition Classes
- Parser
-
def
isLiteralToken(token: Parser.Token): Boolean
- Definition Classes
- Parser
-
def
isLocalModifier: Boolean
- Definition Classes
- QuasiquoteParser → Parser
-
def
isMacro: Boolean
- Definition Classes
- Parser
-
def
isModifier: Boolean
- Definition Classes
- QuasiquoteParser → Parser
-
def
isNumericLit: Boolean
- Definition Classes
- Parser
-
def
isRawBar: Boolean
- Definition Classes
- Parser
-
def
isRawIdent: Boolean
- Definition Classes
- Parser
-
def
isRawStar: Boolean
- Definition Classes
- Parser
-
def
isSimpleExprIntro: Boolean
- Definition Classes
- Parser
-
def
isSimpleExprIntroToken(token: Parser.Token): Boolean
- Definition Classes
- Parser
-
def
isStatSep(token: Int): Boolean
- Definition Classes
- QuasiquoteParser → Parser
-
def
isStatSep: Boolean
- Definition Classes
- Parser
-
def
isStatSeqEnd: Boolean
- Definition Classes
- Parser
-
def
isTemplateIntro: Boolean
- Definition Classes
- QuasiquoteParser → Parser
-
def
isTypeIntroToken(token: Parser.Token): Boolean
- Definition Classes
- Parser
-
def
isTypedParam(tree: tools.nsc.Global.Tree): Boolean
- Definition Classes
- QuasiquoteParser → Parser
-
def
isUnaryOp: Boolean
- Definition Classes
- Parser
-
def
isWildcard(t: tools.nsc.Global.Tree): Boolean
- Definition Classes
- Parser
-
def
joinComment(trees: ⇒ List[tools.nsc.Global.Tree]): List[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
-
def
literal(isNegated: Boolean = false, inPattern: Boolean = false, start: Parser.Offset = in.offset): tools.nsc.Global.Tree
SimpleExpr ::= literal | symbol | null
- Definition Classes
- Parser
-
def
localDef(implicitMod: Int): List[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
-
def
localModifiers(): tools.nsc.Global.Modifiers
LocalModifiers ::= {LocalModifier} LocalModifier ::= abstract | final | sealed | implicit | lazy
- Definition Classes
- Parser
-
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()
-
def
makeBinop(isExpr: Boolean, left: tools.nsc.Global.Tree, op: tools.nsc.Global.TermName, right: tools.nsc.Global.Tree, opPos: tools.nsc.Global.Position, targs: List[tools.nsc.Global.Tree] = Nil): tools.nsc.Global.Tree
Create tree representing (unencoded) binary operation expression or pattern.
Create tree representing (unencoded) binary operation expression or pattern.
- Definition Classes
- Parser
-
def
makeEmptyPackage(start: Parser.Offset, stats: List[tools.nsc.Global.Tree]): tools.nsc.Global.PackageDef
- Definition Classes
- Parser
-
def
makeFilter(start: Parser.Offset, tree: tools.nsc.Global.Tree): tools.nsc.Global.Apply
- Definition Classes
- Parser
-
def
makePackageObject(start: Parser.Offset, objDef: tools.nsc.Global.ModuleDef): tools.nsc.Global.PackageDef
- Definition Classes
- Parser
-
def
makePackaging(start: Parser.Offset, pkg: tools.nsc.Global.Tree, stats: List[tools.nsc.Global.Tree]): tools.nsc.Global.PackageDef
Create a tree representing a packaging.
Create a tree representing a packaging.
- Definition Classes
- Parser
-
final
def
makeParens(body: ⇒ List[tools.nsc.Global.Tree]): 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()
-
def
makeSafeTupleTerm(trees: List[tools.nsc.Global.Tree], offset: Parser.Offset): tools.nsc.Global.Tree
Create a tuple term Tree.
Create a tuple term Tree. If the arity is not supported, a syntax error is emitted.
- Definition Classes
- QuasiquoteParser → Parser
-
def
makeSafeTupleType(trees: List[tools.nsc.Global.Tree], offset: Parser.Offset): tools.nsc.Global.Tree
Create a tuple type Tree.
Create a tuple type Tree. If the arity is not supported, a syntax error is emitted.
- Definition Classes
- QuasiquoteParser → Parser
-
def
mixinQualifierOpt(): tools.nsc.Global.TypeName
MixinQualifier ::= `[' Id `]'
- Definition Classes
- Parser
-
def
modifiers(): tools.nsc.Global.Modifiers
Modifiers ::= {Modifier} Modifier ::= LocalModifier | AccessModifier | override
- Definition Classes
- Parser
-
def
multipleArgumentExprs(): List[List[tools.nsc.Global.Tree]]
A succession of argument lists.
A succession of argument lists.
- Definition Classes
- Parser
-
final
def
ne(arg0: AnyRef): Boolean
Equivalent to
!(this eq that)
.Equivalent to
!(this eq that)
.- returns
true
if the argument is not a reference to the receiver object;false
otherwise.
- Definition Classes
- AnyRef
-
def
newLineOpt(): Unit
- Definition Classes
- Parser
-
def
newLineOptWhenFollowedBy(token: Parser.Offset): Unit
- Definition Classes
- Parser
-
def
newLineOptWhenFollowing(p: (Parser.Token) ⇒ Boolean): Unit
- Definition Classes
- Parser
-
def
newLinesOpt(): Unit
- Definition Classes
- Parser
-
def
newScanner(): Parser.Scanner
- Definition Classes
- SourceFileParser
-
def
nonLocalDefOrDcl: List[tools.nsc.Global.Tree]
- Definition Classes
- Parser
-
final
def
notify(): Unit
Wakes up a single thread that is waiting on the receiver object's monitor.
Wakes up a single thread that is waiting on the receiver object's monitor.
- Definition Classes
- AnyRef
- Note
not specified by SLS as a member of AnyRef
-
final
def
notifyAll(): Unit
Wakes up all threads that are waiting on the receiver object's monitor.
Wakes up all threads that are waiting on the receiver object's monitor.
- Definition Classes
- AnyRef
- Note
not specified by SLS as a member of AnyRef
-
def
o2p(offset: Parser.Offset): tools.nsc.Global.Position
- Definition Classes
- Parser
-
def
objectDef(start: Parser.Offset, mods: tools.nsc.Global.Modifiers): tools.nsc.Global.ModuleDef
ObjectDef ::= Id ClassTemplateOpt
- Definition Classes
- Parser
-
var
opstack: List[Parser.OpInfo]
- Definition Classes
- Parser
-
def
packageObjectDef(start: Parser.Offset): 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
-
def
packageOrPackageObject(start: Parser.Offset): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
param(owner: tools.nsc.Global.Name, implicitmod: Int, caseParam: Boolean): tools.nsc.Global.ValDef
- Definition Classes
- QuasiquoteParser → Parser
-
def
paramClauses(owner: tools.nsc.Global.Name, contextBounds: List[tools.nsc.Global.Tree], ofCaseClass: Boolean): List[List[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
-
def
paramType(useStartAsPosition: Boolean): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
paramType(): tools.nsc.Global.Tree
ParamType ::= Type | `=>' Type | Type `*'
- Definition Classes
- Parser
-
def
parse(): tools.nsc.Global.Tree
This is the general parse entry point.
This is the general parse entry point.
- Definition Classes
- Parser
-
def
parseRule[T](rule: (QuasiquoteParser.this.type) ⇒ T): T
- Definition Classes
- Parser
-
def
parseStartRule: () ⇒ 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
- SourceFileParser → Parser
-
def
parseStats(): List[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
-
def
parseStatsOrPackages(): List[tools.nsc.Global.Tree]
- Definition Classes
- Parser
-
def
patDefOrDcl(pos: Int, mods: tools.nsc.Global.Modifiers): List[tools.nsc.Global.Tree]
PatDef ::= Pattern2 {`,' Pattern2} [`:' Type] `=' Expr ValDcl ::= Id {`,' Id} `:' Type VarDef ::= PatDef | Id {`,' Id} `:' Type `=' `_'
- Definition Classes
- Parser
-
def
path(thisOK: Boolean, typeOK: Boolean): tools.nsc.Global.Tree
Path ::= StableId | [Ident `.'] this AnnotType ::= Path [`.' type]
- Definition Classes
- Parser
-
def
pattern(): tools.nsc.Global.Tree
Default entry points into some pattern contexts.
Default entry points into some pattern contexts.
- Definition Classes
- Parser
-
def
peekingAhead(tree: ⇒ tools.nsc.Global.Tree): 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()
-
var
placeholderParams: List[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
-
def
placeholderTypeBoundary(op: ⇒ tools.nsc.Global.Tree): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
var
placeholderTypes: List[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
-
def
postfixExpr(): tools.nsc.Global.Tree
PostfixExpr ::= InfixExpr [Id [nl]] InfixExpr ::= PrefixExpr | InfixExpr Id [nl] InfixExpr
- Definition Classes
- Parser
-
def
prefixExpr(): tools.nsc.Global.Tree
PrefixExpr ::= [`-' | `+' | `~' | `!'] SimpleExpr
- Definition Classes
- Parser
-
def
qualId(): tools.nsc.Global.Tree
QualId ::= Id {`.' Id}
- Definition Classes
- Parser
-
def
r2p(offset: Parser.Offset): tools.nsc.Global.Position
- Definition Classes
- Parser
-
def
r2p(start: Parser.Offset, mid: Parser.Offset): tools.nsc.Global.Position
- Definition Classes
- Parser
-
def
r2p(start: Parser.Offset, mid: Parser.Offset, end: Parser.Offset): tools.nsc.Global.Position
- Definition Classes
- Parser
-
def
rawIdent(): tools.nsc.Global.Name
- Definition Classes
- Parser
-
def
readAnnots(annot: ⇒ tools.nsc.Global.Tree): List[tools.nsc.Global.Tree]
- Definition Classes
- QuasiquoteParser → Parser
-
def
reduceExprStack(base: List[Parser.OpInfo], top: tools.nsc.Global.Tree): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
reducePatternStack(base: List[Parser.OpInfo], top: tools.nsc.Global.Tree): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
reduceStack(isExpr: Boolean, base: List[Parser.OpInfo], top: tools.nsc.Global.Tree, opPrecedence: Precedence, leftAssoc: Boolean): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
reduceStack(isExpr: Boolean, base: List[Parser.OpInfo], top: tools.nsc.Global.Tree): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
refineStat(): List[tools.nsc.Global.Tree]
- Definition Classes
- QuasiquoteParser → Parser
-
def
refineStatSeq(): List[tools.nsc.Global.Tree]
RefineStatSeq ::= RefineStat {semi RefineStat} RefineStat ::= Dcl | type TypeDef |
- Definition Classes
- Parser
-
def
refinement(): List[tools.nsc.Global.Tree]
Refinement ::= [nl] `{' RefineStat {semi RefineStat} `}'
- Definition Classes
- Parser
-
def
resetPackage(): Unit
- Definition Classes
- Parser
-
def
scriptBody(): tools.nsc.Global.Tree
This is the parse entry point for code which is not self-contained, e.g.
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
-
def
selector(t: tools.nsc.Global.Tree): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
selectors(t: tools.nsc.Global.Tree, typeOK: Boolean, dotOffset: Parser.Offset): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
selfInvocation(vparamss: List[List[tools.nsc.Global.ValDef]]): tools.nsc.Global.Tree
SelfInvocation ::= this ArgumentExprs {ArgumentExprs}
- Definition Classes
- Parser
-
def
seqPatterns(): List[tools.nsc.Global.Tree]
- Definition Classes
- Parser
-
def
setInPos[T <: tools.nsc.Global.Tree](t: T): T
- Definition Classes
- Parser
-
def
simpleExpr(): tools.nsc.Global.Tree
SimpleExpr ::= new (ClassTemplate | TemplateBody) | BlockExpr | SimpleExpr1 [`_'] SimpleExpr1 ::= literal | xLiteral | Path | `(' [Exprs] `)' | SimpleExpr `.' Id | SimpleExpr TypeArgs | SimpleExpr1 ArgumentExprs
- Definition Classes
- Parser
-
def
simpleExprRest(t: tools.nsc.Global.Tree, canApply: Boolean): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
skip(targetToken: Parser.Token): Unit
- Attributes
- protected
- Definition Classes
- Parser
-
val
source: SourceFile
- Definition Classes
- SourceFileParser → Parser
-
def
stableId(): tools.nsc.Global.Tree
StableId ::= Id | Path `.' Id | [id `.'] super [`[' id `]']`.' id
- Definition Classes
- Parser
-
def
startAnnotType(): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
startInfixType(): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
statSeq(stat: PartialFunction[Parser.Token, List[tools.nsc.Global.Tree]], errorMsg: String = "illegal start of definition"): List[tools.nsc.Global.Tree]
- Definition Classes
- Parser
-
def
statement(location: Parser.Location): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
stripParens(t: tools.nsc.Global.Tree): tools.nsc.Global.Tree
Strip the artifitial
Parens
node to create a tuple term Tree.Strip the artifitial
Parens
node to create a tuple term Tree.- Definition Classes
- Parser
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
syntaxError(offset: Parser.Offset, msg: String): Unit
- Definition Classes
- SourceFileParser → Parser
-
def
syntaxError(offset: Parser.Offset, msg: String, skipIt: Boolean): Unit
- Definition Classes
- Parser
-
def
syntaxError(msg: String, skipIt: Boolean): Unit
- Definition Classes
- Parser
-
def
syntaxErrorOrIncomplete(msg: String, skipIt: Boolean): Unit
- Definition Classes
- Parser
-
def
syntaxErrorOrIncompleteAnd[T](msg: String, skipIt: Boolean)(and: T): T
- Definition Classes
- Parser
-
def
template(): (List[tools.nsc.Global.Tree], tools.nsc.Global.ValDef, List[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
-
def
templateBody(isPre: Boolean): (tools.nsc.Global.ValDef, List[tools.nsc.Global.Tree])
TemplateBody ::= [nl] `{' TemplateStatSeq `}'
- isPre
specifies whether in early initializer (true) or not (false)
- Definition Classes
- Parser
-
def
templateBodyOpt(parenMeansSyntaxError: Boolean): (tools.nsc.Global.ValDef, List[tools.nsc.Global.Tree])
- Definition Classes
- Parser
-
def
templateOpt(mods: tools.nsc.Global.Modifiers, name: tools.nsc.Global.Name, constrMods: tools.nsc.Global.Modifiers, vparamss: List[List[tools.nsc.Global.ValDef]], tstart: Parser.Offset): tools.nsc.Global.Template
ClassTemplateOpt ::= `extends' ClassTemplate | [[`extends'] TemplateBody] TraitTemplateOpt ::= TraitExtends TraitTemplate | [[`extends'] TemplateBody] | `<:' TemplateBody TraitExtends ::= `extends' | `<:'
- Definition Classes
- Parser
-
def
templateOrTopStatSeq(): List[tools.nsc.Global.Tree]
- Definition Classes
- Parser
-
def
templateParents(): List[tools.nsc.Global.Tree]
ClassParents ::= AnnotType {`(' [Exprs] `)'} {with AnnotType} TraitParents ::= AnnotType {with AnnotType}
- Definition Classes
- Parser
-
def
templateStat: PartialFunction[Parser.Token, List[tools.nsc.Global.Tree]]
- Definition Classes
- Parser
-
def
templateStatSeq(isPre: Boolean): (tools.nsc.Global.ValDef, List[tools.nsc.Global.Tree])
TemplateStatSeq ::= [id [`:' Type] `=>'] TemplateStats
- isPre
specifies whether in early initializer (true) or not (false)
- Definition Classes
- Parser
-
def
templateStats(): List[tools.nsc.Global.Tree]
TemplateStats ::= TemplateStat {semi TemplateStat} TemplateStat ::= Import | Annotations Modifiers Def | Annotations Modifiers Dcl | Expr1 | super ArgumentExprs {ArgumentExprs} |
- Definition Classes
- Parser
-
def
tmplDef(pos: Parser.Offset, mods: tools.nsc.Global.Modifiers): tools.nsc.Global.Tree
TmplDef ::= [case] class ClassDef | [case] object ObjectDef | [override] trait TraitDef
- Definition Classes
- Parser
-
def
toString(): String
Creates a String representation of this object.
Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.
- returns
a String representation of the object.
- Definition Classes
- AnyRef → Any
-
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
-
def
topLevelTmplDef: tools.nsc.Global.Tree
Hook for IDE, for top-level classes/objects.
Hook for IDE, for top-level classes/objects.
- Definition Classes
- Parser
-
def
topStat: PartialFunction[Parser.Token, List[tools.nsc.Global.Tree]]
- Definition Classes
- QuasiquoteParser → Parser
-
def
topStatSeq(): List[tools.nsc.Global.Tree]
TopStatSeq ::= TopStat {semi TopStat} TopStat ::= Annotations Modifiers TmplDef | Packaging | package object objectDef | Import |
- Definition Classes
- Parser
-
val
treeBuilder: ParserTreeBuilder
- Definition Classes
- QuasiquoteParser → Parser
-
def
typ(): 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
-
def
typeBounds(): tools.nsc.Global.TypeBoundsTree
TypeBounds ::= [`>:' Type] [`<:' Type]
- Definition Classes
- Parser
-
def
typeDefOrDcl(start: Parser.Offset, mods: tools.nsc.Global.Modifiers): tools.nsc.Global.Tree
TypeDef ::= type Id [TypeParamClause] `=' Type | FunSig `=' Expr TypeDcl ::= type Id [TypeParamClause] TypeBounds
- Definition Classes
- Parser
-
def
typeOrInfixType(location: Parser.Location): tools.nsc.Global.Tree
- Definition Classes
- Parser
-
def
typeParamClauseOpt(owner: tools.nsc.Global.Name, contextBoundBuf: ListBuffer[tools.nsc.Global.Tree]): List[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
-
def
typedOpt(): tools.nsc.Global.Tree
TypedOpt ::= [`:' Type]
- Definition Classes
- Parser
-
def
unit: tools.nsc.Global.CompilationUnit
- Definition Classes
- SourceFileParser → Parser
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
warning(offset: Parser.Offset, msg: String): Unit
- Definition Classes
- SourceFileParser → Parser
-
def
warning(msg: String): Unit
- Definition Classes
- Parser
-
def
wildcardOrIdent(): tools.nsc.Global.Name
- Definition Classes
- Parser
-
def
wildcardType(start: Parser.Offset): tools.nsc.Global.Ident
WildcardType ::= `_' TypeBounds
- Definition Classes
- Parser
-
def
xmlLiteral(): tools.nsc.Global.Tree
- Definition Classes
- SourceFileParser → Parser
-
def
xmlLiteralPattern(): tools.nsc.Global.Tree
- Definition Classes
- SourceFileParser → Parser
-
def
xmlSeqPatterns(): List[tools.nsc.Global.Tree]
- Definition Classes
- Parser
-
def
→[B](y: B): (QuasiquoteParser, B)
- Implicit
- This member is added by an implicit conversion from QuasiquoteParser to ArrowAssoc[QuasiquoteParser] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
-
object
InfixMode
extends Enumeration
Modes for infix types.
Modes for infix types.
- Definition Classes
- Parser
-
object
noSeq
extends SeqContextSensitive
The implementation for parsing inside of patterns at points where sequences are disallowed.
The implementation for parsing inside of patterns at points where sequences are disallowed.
- Definition Classes
- Parser
-
object
outPattern
extends PatternContextSensitive
The implementation of the context sensitive methods for parsing outside of patterns.
The implementation of the context sensitive methods for parsing outside of patterns.
- Definition Classes
- Parser
-
object
seqOK
extends SeqContextSensitive
The implementation for parsing inside of patterns at points where sequences are allowed.
The implementation for parsing inside of patterns at points where sequences are allowed.
- Definition Classes
- Parser
-
object
xmlSeqOK
extends SeqContextSensitive
For use from xml pattern, where sequence is allowed and encouraged.
For use from xml pattern, where sequence is allowed and encouraged.
- Definition Classes
- Parser
-
object
symbXMLBuilder
extends SymbolicXMLBuilder
- Definition Classes
- SourceFileParser
Deprecated Value Members
-
def
precedence(operator: tools.nsc.Global.Name): Int
- Definition Classes
- Parser
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) Use
scala.reflect.internal.Precedence
The Scala compiler API.
The following resources are useful for Scala plugin/compiler development: