A Key with an explicitly provided scope, to avoid name collisions.

Usage example:

shared Key<Token[]> tokensKey
        = ScopedKey<Token[]>(`class CeylonParser`, "tokens");

no subtypes hierarchy

ScopedKey(AnnotatedDeclaration scope, String name)
  • scope

    The scope of this key, that is, the declaration of the program element that uses it.

    Most commonly the declaration of the enclosing class, package or module.

  • name

    The name of this key.

    Unlike Key.name, this name shouldn’t include some use-site ID, because that’s already provided by scope.

Inherited Attributes
Attributes inherited from: Key<Type>
Attributes inherited from: Object
hash, string
Inherited Methods
Methods inherited from: Key<Type>
Methods inherited from: Object