object SyntacticBlock extends SyntacticBlockExtractor
Syntactic combinator that abstracts over Block tree.
Apart from providing a more straightforward api that exposes block as a list of elements rather than (stats, expr) pair it also:
- Strips trailing synthetic units which are inserted by the compiler if the block ends with a definition rather than an expression or is empty.
2. Matches non-block term trees and recognizes them as single-element blocks for sake of consistency with compiler's default to treat single-element blocks with expressions as just expressions. The only exception is q"" which is not considered to be a block.
- Definition Classes
- ReificationSupportImpl → ReificationSupportApi
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SyntacticBlock
- SyntacticBlockExtractor
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(stats: List[SymbolTable.Tree]): SymbolTable.Tree
- Definition Classes
- SyntacticBlock → SyntacticBlockExtractor
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unapply(tree: SymbolTable.Tree): Option[List[SymbolTable.Tree]]
- Definition Classes
- SyntacticBlock → SyntacticBlockExtractor
-
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
- @native() @throws( ... )