dotty.tools.dotc

parsing

package parsing

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. parsing
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract class CharArrayReader extends AnyRef

  2. class SymbolicXMLBuilder extends AnyRef

    This class builds instance of Tree that represent XML.

    This class builds instance of Tree that represent XML.

    Note from martin: This needs to have its position info reworked. I don't understand exactly what's done here. To make validation pass, I set many positions to be transparent. Not sure this is a good idea for navigating XML trees in the IDE but it's the best I can do right now. If someone who understands this part better wants to give it a shot, please do!

    Version

    1.0

  3. abstract class TokensCommon extends AnyRef

Value Members

  1. object JavaParsers

  2. object JavaScanners

  3. object JavaTokens extends TokensCommon

  4. object MarkupParsers

    This trait ...

    This trait ...

    Version

    1.0

  5. object Parsers

  6. object Scanners

  7. object ScriptParsers

    Performs the following context-free rewritings:

    Performs the following context-free rewritings:

    - Places all pattern variables in Bind nodes. In a pattern, for identifiers x:

                    x  => x @ _
                  x:T  => x @ (_ : T)
    

    • Removes pattern definitions (PatDef's) as follows: If pattern is a simple (typed) identifier:
             val x = e     ==>  val x = e
             val x: T = e  ==>  val x: T = e
      

    if there are no variables in pattern

           val p = e  ==>  e match (case p => ())
    

    if there is exactly one variable in pattern

           val x_1 = e match (case p => (x_1))
    

    if there is more than one variable in pattern

           val p = e  ==>  private synthetic val t$ = e match (case p => (x_1, ..., x_N))
                           val x_1 = t$._1
                           ...
                           val x_N = t$._N
    

    - Removes function types as follows:

           (argtpes) => restpe   ==>   scala.Function_n[argtpes, restpe]
    

    - Wraps naked case definitions in a match as follows:

           { cases }   ==>   (x => x.match {cases}), except when already argument to match
    

  8. object Tokens extends TokensCommon

  9. object Utility

    The Utility object provides utility functions for processing instances of bound and not bound XML classes, as well as escaping text nodes.

  10. def maxPrec: Int

  11. def minInfixPrec: Int

  12. def minPrec: Int

  13. def precedence(operator: Name): Int

Inherited from AnyRef

Inherited from Any

Ungrouped