UsageList class
Represents a list of usage relationships between two ReferenceCode instances.
Constructors
- UsageList.new({required ReferenceCode code, required ReferenceCode reference, bool used = false})
-
Creates a UsageList between
code
andreference
.
Properties
- code ↔ ReferenceCode
-
The code that uses or is referenced.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCyclic → bool
-
Checks if the dependency is cyclic (code depends back on reference).
no setter
- isEmpty → bool
-
Whether the itemList is empty.
no setter
- isNotEmpty → bool
-
Whether the itemList is not empty.
no setter
-
itemList
↔ List<
String> -
List of individual reference names found.
getter/setter pair
- reference ↔ ReferenceCode
-
The referenced code.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- used ↔ bool
-
Whether this represents a "used" relationship (true) or "referenced" (false).
getter/setter pair
Methods
-
addItem(
String ref) → void -
Adds a
ref
to the itemList. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited