CachedAliasCounter class
Utility for generating cached incrementally generated aliases using AliasCounter.
- Inheritance
-
- Object
- TypeStringifier
- CachedAliasCounter
Constructors
- CachedAliasCounter(AliasCounter counter)
-
CachedAliasCounter.withImports(AliasCounter counter, List<
AliasImport> imports)
Properties
- counter ↔ AliasCounter
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
importPrefixes
↔ Map<
String, AliasedPrefix> -
getter/setter pair
-
imports
↔ List<
AliasImport> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get(
DartType type, [AliasedPrefix? prefix]) → String -
Retrieves the import alias for
type
.override -
getImportAlias(
String import) → AliasedPrefix -
Retrieves the import alias for
import
. -
getLibraryAlias(
LibraryElement element) → String -
override
-
mapParameter(
ParameterElement element, DartObject? object) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toSource(
DartObject object) → String -
Converts a compile-time evaluated
DartObject
to an aliased source representation where all types are incrementally aliased using this CachedAliasCounter.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited