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

Initializer
ScopedKey(AnnotatedDeclaration scope, String name)
Parameters:
  • 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
Inherited Methods
Methods inherited from: Key<Type>
Methods inherited from: Object