scala.tools.nsc.typechecker

NamesDefaults

trait NamesDefaults extends AnyRef

Self Type
Analyzer
Source
NamesDefaults.scala
Version

1.0

Linear Supertypes
AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NamesDefaults
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class ConstructorDefaultsAttachment extends AnyRef

  2. class DefaultsOfLocalMethodAttachment extends AnyRef

  3. case class NamedApplyInfo(qual: Option[Global.Tree], targs: List[Global.Tree], vargss: List[List[Global.Tree]], blockTyper: Analyzer.Typer) extends Product with Serializable

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 NamesDefaults to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (NamesDefaults, B)

    Implicit information
    This member is added by an implicit conversion from NamesDefaults to ArrowAssoc[NamesDefaults] performed by method any2ArrowAssoc 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. def addDefaults(givenArgs: List[Global.Tree], qual: Option[Global.Tree], targs: List[Global.Tree], previousArgss: List[List[Global.Tree]], params: List[Global.Symbol], pos: Position, context: Analyzer.Context): (List[Global.Tree], List[Global.Symbol])

    Extend the argument list givenArgs with default arguments.

    Extend the argument list givenArgs with default arguments. Defaults are added as named arguments calling the corresponding default getter.

    Example: given def foo(x: Int = 2, y: String = "def") foo(y = "lt") the argument list (y = "lt") is transformed to (y = "lt", x = foo$default$1())

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def defaultGetter(param: Global.Symbol, context: Analyzer.Context): Global.Symbol

    For a parameter with default argument, find the method symbol of the default getter.

  12. def ensuring(cond: (NamesDefaults) ⇒ Boolean, msg: ⇒ Any): NamesDefaults

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

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

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

    Implicit information
    This member is added by an implicit conversion from NamesDefaults to Ensuring[NamesDefaults] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from NamesDefaults to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. def isIdentity(a: Array[Int]): Boolean

    returns true if every element is equal to its index

  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def isNamed(arg: Global.Tree): Boolean

  25. def missingParams[T](args: List[T], params: List[Global.Symbol], argName: (T) ⇒ Option[Global.Name]): (List[Global.Symbol], Boolean)

  26. def nameOf(arg: Global.Tree): Option[Global.Name]

  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. val noApplyInfo: Analyzer.NamedApplyInfo

  29. final def notify(): Unit

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

    Definition Classes
    AnyRef
  31. def removeNames(typer: Analyzer.Typer)(args: List[Global.Tree], params: List[Global.Symbol]): (List[Global.Tree], Array[Int])

    Removes name assignments from args.

    Removes name assignments from args. Additionally, returns an array mapping argument indices from call-site-order to definition-site-order.

    Verifies that names are not specified twice, positional args don't appear after named ones.

  32. def reorderArgs[T](args: List[T], pos: (Int) ⇒ Int)(implicit arg0: ClassTag[T]): List[T]

    pos

    maps indices from old to new

  33. def reorderArgsInv[T](args: List[T], pos: (Int) ⇒ Int)(implicit arg0: ClassTag[T]): List[T]

    pos

    maps indices from new to old (!)

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. def transformNamedApplication(typer: Analyzer.Typer, mode: Int, pt: Global.Type)(tree: Global.Tree, argPos: (Int) ⇒ Int): Global.Tree

    Transform a function application into a Block, and assigns typer.

    Transform a function application into a Block, and assigns typer.context .namedApplyBlockInfo to the new block as side-effect. If tree has the form Apply(fun, args) first the function "fun" (which might be an application itself!) is transformed into a block of the form { val qual$1 = qualifier_of_fun val x$1 = arg_1_of_fun ... val x$n = arg_n_of_fun qual$1.fun[targs](x$1, ...)...(..., x$n) } then for each argument in args, a value is created and entered into the block. finally the application expression of the block is updated. { val qual$1 = .. ... val x$n = ... > val qual$n+1 = arg(1) > ... > val qual$n+m = arg(m) > qual$1.fun[targs](x$1, ...)...(..., x$n)(x$n+1, ..., x$n+m) }

    typer

    the typer calling this method; this method calls typer.doTypedApply

    mode

    the mode to use for calling typer.doTypedApply

    pt

    the expected type for calling typer.doTypedApply

    returns

    the transformed application (a Block) together with the NamedApplyInfo. if isNamedApplyBlock(tree), returns the existing context.namedApplyBlockInfo

  37. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  40. def [B](y: B): (NamesDefaults, B)

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

Shadowed Implict Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from NamesDefaults to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (namesDefaults: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from NamesDefaults to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (namesDefaults: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: NamesDefaults

    Implicit information
    This member is added by an implicit conversion from NamesDefaults to ArrowAssoc[NamesDefaults] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (namesDefaults: ArrowAssoc[NamesDefaults]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: NamesDefaults

    Implicit information
    This member is added by an implicit conversion from NamesDefaults to Ensuring[NamesDefaults] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (namesDefaults: Ensuring[NamesDefaults]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from NamesDefaults to StringAdd

Inherited by implicit conversion any2stringfmt from NamesDefaults to StringFormat

Inherited by implicit conversion any2ArrowAssoc from NamesDefaults to ArrowAssoc[NamesDefaults]

Inherited by implicit conversion any2Ensuring from NamesDefaults to Ensuring[NamesDefaults]

Ungrouped